Form Setup
Set up SourceTag with WPForms
WPForms has a built-in Hidden Field type. You add one for each SourceTag field you want to capture.
What you need
- SourceTag installed on your site
- WPForms (Lite or Pro)
Step 1: Open the form builder
Go to WPForms > All Forms and click Edit on the form you want to track.
Step 2: Add hidden fields
In the left panel, scroll to Fancy Fields (Pro) or search for “Hidden Field”. Drag a Hidden Field onto your form.
In WPForms Lite, you may need the Pro version for hidden fields. Alternatively, you can use the HTML field to add a raw <input type="hidden"> tag.
For each SourceTag field:
- Drag a Hidden Field onto the form
- Click on it to open field settings
- In the Label field, enter the SourceTag field name (e.g.
st_fc_channel) - Leave the Default Value empty (SourceTag fills it in)
Core fields (add these)
Add a hidden field for each of the following:
st_fc_channelst_fc_detail_1st_fc_detail_2st_fc_detail_3st_fc_detail_4st_lc_channelst_lc_detail_1st_lc_detail_2st_lc_detail_3st_lc_detail_4st_fc_landing_pagest_lc_landing_page
Optional extended fields
If you’ve enabled extended field groups in your SourceTag dashboard, also add:
st_fc_click_idandst_lc_click_id(click IDs)st_visits(visit count)st_days_to_convert(days to convert)st_device(device type)
See Captured Fields for the full list of available fields.
Step 3: Check the field name mapping
Click on each hidden field and check the Advanced tab. Make sure the CSS Classes or Name attribute matches the label. WPForms uses the field ID internally, but the label is used in email notifications and integrations.
If you’re sending WPForms data to a CRM or Zapier, the field labels are what get passed through.
Step 4: Save and test
Save your form. Visit a page with this form using UTM parameters:
?utm_source=test&utm_medium=cpc&utm_campaign=test-campaign Submit the form. Check the WPForms entry (WPForms > Entries) for the attribution data in the hidden fields.
Tips
- WPForms Lite doesn’t have hidden fields natively. Use the HTML field to add
<input type="hidden" name="st_fc_channel">instead. - Hidden fields don’t count towards your form’s visible field count.
- Copy field names from your SourceTag dashboard for accuracy.
Doesn't answer your question or need more help? Get in touch.
