← All docs

Reference

Captured Fields Reference

SourceTag captures attribution data and populates it into hidden form fields. This page documents every field, organised by group.

How field names work

Every field is prefixed with st_ to avoid clashes with your existing form fields.

For attribution data that differs between first and last click, there are two versions:

  • **st_fc_** fields contain first click data (the visitor’s original touchpoint)
  • **st_lc_fields containlast click** data (the most recent touchpoint before conversion)

For example, st_fc_channel holds the channel from the visitor’s very first visit, while st_lc_channel holds the channel from their most recent visit that had new attribution data.

Fields that aren’t tied to a specific touchpoint (like visit count or device type) use just the st_ prefix.

When a field has no value (e.g. no utm_term was present), the form field is populated with (not set) rather than left blank. This makes it clear in your CRM that the field was captured but had no value.

Core fields (always included)

These 12 fields are always populated. They give you the essential attribution picture for every lead.

Field nameDescription
st_fc_channelFirst click channel (e.g. Paid Search, Organic Social, Direct)
st_fc_detail_1First click detail 1 (content depends on the channel, see below)
st_fc_detail_2First click detail 2
st_fc_detail_3First click detail 3
st_fc_detail_4First click detail 4
st_lc_channelLast click channel
st_lc_detail_1Last click detail 1
st_lc_detail_2Last click detail 2
st_lc_detail_3Last click detail 3
st_lc_detail_4Last click detail 4
st_fc_landing_pageFirst click landing page (path + query string, e.g. /pricing?ref=nav)
st_lc_landing_pageLast click landing page

Note: UTM parameters and click IDs (gclid, fbclid, msclkid, etc.) are stripped from the landing page URL. Only the path and any other query parameters are preserved.

What goes in the smart fields?

The smart fields contain different data depending on the channel. Each channel has its own mapping, configured in the channel editor. The defaults are:

ChannelSmart Field 1Smart Field 2Smart Field 3Smart Field 4
Paid Searchutm_source (e.g. google)utm_campaignutm_termutm_content
Paid Socialutm_source (e.g. facebook)utm_campaignutm_termutm_content
Displayutm_sourceutm_campaignutm_termutm_content
Paid Videoutm_sourceutm_campaignutm_termutm_content
Emailutm_source (e.g. mailchimp)utm_campaignutm_termutm_content
Affiliatesutm_sourceutm_campaignutm_termutm_content
Other Campaignsutm_sourceutm_campaignutm_termutm_content
Organic SocialReferrer domain (e.g. facebook.com)utm_campaignutm_termutm_content
Organic SearchReferrer domain (e.g. google.com)Referrer URLutm_termutm_content
ReferralReferrer domainReferrer URL--
Direct----

These defaults can be customised per channel in the channel editor.

Extended field group: Raw UTMs

Enable the raw_utms group to capture the original UTM parameter values as separate fields, independent of the channel detail mapping.

Field nameDescription
st_fc_sourceFirst click utm_source value
st_lc_sourceLast click utm_source value
st_fc_mediumFirst click utm_medium value
st_lc_mediumLast click utm_medium value
st_fc_campaignFirst click utm_campaign value
st_lc_campaignLast click utm_campaign value
st_fc_termFirst click utm_term value
st_lc_termLast click utm_term value
st_fc_contentFirst click utm_content value
st_lc_contentLast click utm_content value

When to use this: If you want the raw UTM values alongside the channel categorisation. The smart fields are mapped contextually (Smart Field 1 might be utm_source for one channel and referrer domain for another), so having the raw values as well can be useful for reporting.

Extended field group: Click ID (combined)

Enable the click_id_combined group to capture click IDs in a single pair of fields. If multiple click IDs are present, only the first one found is stored.

Field nameDescription
st_fc_click_idFirst click click ID value
st_fc_click_id_typeFirst click click ID type (e.g. gclid, fbclid, msclkid, ttclid)
st_lc_click_idLast click click ID value
st_lc_click_id_typeLast click click ID type

When to use this: If you just need to know whether a click ID was present and what type it was, without breaking them out into individual fields.

Extended field group: Click ID (individual)

Enable the click_id_individual group to capture each click ID in its own dedicated field. SourceTag checks for six click ID parameters: gclid, fbclid, msclkid, ttclid, gbraid, and wbraid.

Field nameDescription
st_fc_gclidFirst click Google Ads click ID
st_lc_gclidLast click Google Ads click ID
st_fc_fbclidFirst click Meta Ads click ID
st_lc_fbclidLast click Meta Ads click ID
st_fc_msclkidFirst click Microsoft Ads click ID
st_lc_msclkidLast click Microsoft Ads click ID
st_fc_gbraidFirst click Google Ads app click ID
st_lc_gbraidLast click Google Ads app click ID
st_fc_wbraidFirst click Google Ads web-to-app click ID
st_lc_wbraidLast click Google Ads web-to-app click ID
st_fc_ttclidFirst click TikTok click ID
st_lc_ttclidLast click TikTok click ID

When to use this: If you’re running ads across multiple platforms and want to send the raw click IDs back to each ad platform for offline conversion tracking. Most CRM integrations that support offline conversions need the individual click ID fields.

Extended field group: Visitor meta

Enable the visitor_meta group to capture contextual data about the visitor and their journey that isn’t tied to a specific touchpoint.

Field nameDescription
st_visitsTotal number of sessions the visitor has had
st_days_to_convertDays between first visit and form submission
st_deviceDevice type at time of submission: Mobile, Tablet, or Desktop
st_submit_pagePage path where the form was submitted
st_referrerReferrer domain for the current page view
st_fc_dateDate of the visitor’s first click (first visit)
st_lc_dateDate of the visitor’s last click (most recent attribution visit)

When to use this: If you want to understand how many visits it took before a lead converted, how long the consideration period was, or which device they used when they finally filled in the form.

Custom parameters

You can configure SourceTag to capture arbitrary URL parameters beyond the standard UTMs and click IDs. These are set up in the Fields page of the SourceTag dashboard.

Custom parameters follow the same first click / last click model as the rest of your attribution data. They’re stored as st_fc_custom_{name} and st_lc_custom_{name}. For example, if you configure brand as a custom parameter, the field names will be st_fc_custom_brand and st_lc_custom_brand.

See Custom Parameters for full setup instructions.

Toggling field groups

Field groups are toggled on or off in the SourceTag dashboard under your site’s Fields page. Each extended group has a toggle switch. Turn on the groups you need, add any custom parameters, then save.

Field names in your CRM

When you create custom fields in your CRM (HubSpot, Salesforce, etc.), the CRM field’s internal name needs to match the SourceTag field name. Most CRMs generate internal names from the label you provide, so naming a field “ST FC Channel” usually produces an internal name like st_fc_channel.

Check the setup guide for your CRM to make sure the internal field names match.

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