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.
[IMAGE: Screenshot of WPForms form builder]
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)
Fields to add
Add a hidden field for each:
Core (always add): st_fc_channel, st_fc_detail_1, st_fc_detail_2, st_fc_detail_3, st_fc_detail_4, st_lc_channel, st_lc_detail_1, st_lc_detail_2, st_lc_detail_3, st_lc_detail_4, st_fc_landing_page, st_lc_landing_page
Optional (if enabled in SourceTag): st_fc_click_id, st_lc_click_id, st_visits, st_days_to_convert, st_device
[IMAGE: Screenshot of WPForms hidden field settings]
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.
[IMAGE: Screenshot of WPForms entry showing attribution data]
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.