← All docs

CRM Setup

Set up SourceTag with Salesforce

When a visitor submits a form with SourceTag data, the attribution fields need somewhere to go in Salesforce. You need to create custom contact fields that match the SourceTag field names.

What you need

  • SourceTag installed and form hidden fields set up
  • Salesforce account with admin access

Step 1: Go to custom fields settings

In Salesforce, navigate to Setup > Object Manager > Contact > Fields & Relationships.

Step 2: Create custom fields

Create a new custom text field for each SourceTag data point:

Core fields (create these)

Field nameLabelType
st_fc_channelFirst Click ChannelText
st_fc_detail_1First Click Smart Field 1Text
st_fc_detail_2First Click Smart Field 2Text
st_fc_detail_3First Click Smart Field 3Text
st_fc_detail_4First Click Smart Field 4Text
st_lc_channelLast Click ChannelText
st_lc_detail_1Last Click Smart Field 1Text
st_lc_detail_2Last Click Smart Field 2Text
st_lc_detail_3Last Click Smart Field 3Text
st_lc_detail_4Last Click Smart Field 4Text
st_fc_landing_pageFirst Click Landing PageText
st_lc_landing_pageLast Click Landing PageText

Optional extended fields

Field nameLabelType
st_fc_click_idFirst Click Click IDText
st_lc_click_idLast Click Click IDText
st_visitsVisit CountNumber
st_days_to_convertDays to ConvertNumber
st_deviceDevice TypeText

See Captured Fields for the full list of available fields.

Step 3: Map form fields to CRM fields

If your form builder sends data to Salesforce via an integration (Zapier, native feed, webhook, etc.), make sure the SourceTag form fields are mapped to the corresponding Salesforce custom fields.

Step 4: Test

Submit a form with UTM parameters and check the contact record in Salesforce. The custom fields should be populated with attribution data.

Tips

  • Add SourceTag fields to a dedicated page layout section (e.g. “SourceTag Attribution”) to keep the contact record tidy.
  • Salesforce appends __c to custom field API names automatically. When mapping form fields to Salesforce in your integration tool (Zapier, Make, etc.), look for st_fc_channel__c rather than st_fc_channel. This is a Salesforce convention and doesn’t affect your form HTML or SourceTag.
  • Test with a fresh contact (not one that already exists) for the cleanest test.

Doesn't answer your question or need more help? Get in touch.