Form Setup
Set up SourceTag with GoHighLevel Forms
GoHighLevel (GHL) has a form builder with hidden field support. You create custom fields in GHL first, then add them as hidden fields in the form builder and configure the field mapping.
What you need
- SourceTag installed on your website or GHL funnel/website page
- A GoHighLevel account with access to custom fields and forms
Step 1: Create custom contact fields in GHL
- In GoHighLevel, go to Settings > Custom Fields (under the Contacts section)
- Click Add Field
- For each SourceTag field:
- Set the Field Name to something descriptive (e.g. “ST First Click Channel”)
- Set the Field Key to the SourceTag field name (e.g.
st_fc_channel) - Set the Type to Single Line Text
- Save
[IMAGE: Screenshot of GoHighLevel custom fields settings showing field creation]
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 GoHighLevel custom fields list showing all SourceTag fields created]
Step 2: Add hidden fields to your form
- Go to Sites > Forms (or open the form from your funnel/website page)
- Edit the form you want to track
- In the form builder, add a new field element
- Set the field type to Hidden
- In the field settings, map it to the custom contact field you created (e.g.
st_fc_channel) - Repeat for all SourceTag fields
[IMAGE: Screenshot of GoHighLevel form builder showing hidden field being added]
Step 3: Configure field mapping
GHL forms have a field mapping step that connects form fields to contact fields:
- Click on the hidden field in the form builder
- In the settings panel, find the Custom Field or Map to Field option
- Select the corresponding custom contact field
- Make sure the HTML field name matches the SourceTag field name
The field mapping ensures that when the form is submitted, the hidden field value is saved to the correct contact field in GHL.
[IMAGE: Screenshot of GoHighLevel form field mapping settings]
Step 4: Add SourceTag to the page
If you are using GHL’s built-in website or funnel builder:
- Go to the page settings or funnel step settings
- Find the Custom Code or Tracking Code section
- Add the SourceTag script tag in the Head section
If the form is embedded on an external website, make sure SourceTag is installed on that site.
[IMAGE: Screenshot of GoHighLevel page settings showing custom code section]
Step 5: Test
Visit the page with UTM parameters:
?utm_source=test&utm_medium=cpc&utm_campaign=ghl-test Submit the form. In GoHighLevel, go to Contacts and find the test contact. Check the custom fields. They should contain your attribution data.
[IMAGE: Screenshot of GoHighLevel contact record showing populated SourceTag fields]
Tips
- GHL custom field keys are the important bit. Make sure they match the SourceTag field names exactly.
- Attribution data stored in GHL custom fields is available in workflows, automations, and reporting. You can trigger different workflows based on channel (e.g. route paid search leads differently from organic).
- If you are using GHL’s funnel builder, add the hidden fields to each form step in the funnel.
- GHL’s built-in form builder renders forms as standard HTML on the page, so SourceTag can detect and populate hidden fields directly.