Form Setup
Set up SourceTag with ActiveCampaign Forms
ActiveCampaign forms work differently from standalone form builders. You need to create custom contact fields in ActiveCampaign first, then add those fields as hidden fields in the form builder.
What you need
- SourceTag installed on your website (where the ActiveCampaign form is embedded)
- An ActiveCampaign account with access to custom fields and forms
Step 1: Create custom contact fields
You need to create a custom field in ActiveCampaign for each SourceTag data point. The form fields map to these contact fields.
- In ActiveCampaign, go to Settings > Data Management > Contact Fields (or Lists > Manage Fields in older versions)
- Click Add Field
- For each field:
- Set the Field Label to the SourceTag field name (e.g.
st_fc_channel) - Set the Field Type to Text Input
- Set the Group to something like “SourceTag Attribution” to keep things organised
- Set the Field Label to the SourceTag field name (e.g.
- Save
Repeat for all the fields below.
[IMAGE: Screenshot of ActiveCampaign custom field creation screen]
Core fields (create these)
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
st_fc_click_idandst_lc_click_id(click IDs)st_visits(visit count)st_days_to_convert(days since first visit)st_device(device type)
[IMAGE: Screenshot of ActiveCampaign contact fields list showing all SourceTag fields]
Step 2: Add hidden fields to your form
- Go to Website > Forms (or Marketing > Forms)
- Edit the form you want to track (or create a new one)
- In the form editor, drag a field onto the form
- Choose one of the custom contact fields you created (e.g.
st_fc_channel) - Once added, click on the field and set it to Hidden
- Repeat for all SourceTag fields
The hidden toggle is in the field settings panel. When a field is set to hidden, it will not be visible to visitors but will still be submitted with the form.
[IMAGE: Screenshot of ActiveCampaign form builder showing a field being set to hidden]
Step 3: Check the field mapping
Each form field maps directly to the custom contact field you created. When a form is submitted, ActiveCampaign updates the contact record with the field values.
Verify:
- Click on each hidden field in the form builder
- Confirm it is linked to the correct custom contact field
- The field name in the rendered HTML should match the SourceTag field name
[IMAGE: Screenshot of ActiveCampaign form field settings showing the linked contact field]
Step 4: Embed the form on your site
Use ActiveCampaign’s embed code to add the form to your page. The page must also have the SourceTag script installed.
ActiveCampaign offers several embed options. The inline embed (JavaScript) works best with SourceTag:
- In the form editor, go to Integrate or Embed
- Choose the Simple embed or JavaScript embed option
- Copy the code and paste it onto your page
Avoid the iframe embed if possible.
[IMAGE: Screenshot of ActiveCampaign form embed options]
Step 5: Test
Visit the page with UTM parameters:
?utm_source=test&utm_medium=cpc&utm_campaign=activecampaign-test Submit the form. In ActiveCampaign, go to Contacts and find the test contact. Check the custom fields. They should contain the attribution data.
[IMAGE: Screenshot of ActiveCampaign contact record showing populated SourceTag fields]
Tips
- ActiveCampaign custom field labels sometimes get modified (spaces, special characters). Check that the HTML field name in the rendered form matches the SourceTag field name.
- Custom fields are available across all ActiveCampaign features: automations, segments, reports, and integrations. You can build segments based on attribution data (e.g. “all contacts from paid search”).
- If you have multiple forms, add the hidden fields to each one.
- ActiveCampaign’s built-in attribution tracking is separate from SourceTag. SourceTag provides first-click and last-click attribution with full channel detail.