Form Setup
Set up SourceTag with Wix Forms
Wix Forms supports hidden fields through the form builder’s field settings. You add fields to the form and set their visibility to “Hidden”, then SourceTag populates them with attribution data.
What you need
- SourceTag installed on your Wix site (added via Settings > Custom Code, or the Wix header code injection)
- A Wix Form on your page
Step 1: Open the form in the Wix Editor
- Open your site in the Wix Editor
- Click on your form to select it
- Click Manage Fields or the settings icon on the form
[IMAGE: Screenshot of Wix Editor with a form selected and Manage Fields option visible]
Step 2: Add form fields
- Click Add New Field
- Choose a Short Text field type (or similar text input)
- Set the Field Label to the SourceTag field name (e.g.
st_fc_channel) - Repeat for each SourceTag field
[IMAGE: Screenshot of Wix form field creation dialog]
Core fields (add 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
If you have 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 since first visit)st_device(device type)
Step 3: Set fields to Hidden
For each SourceTag field:
- Click on the field in the form builder
- Go to the field’s settings
- Find the Field Visibility or Show in Form toggle
- Set it to Hidden
This ensures the field is part of the form submission but not visible to visitors.
[IMAGE: Screenshot of Wix form field settings showing the visibility toggle set to Hidden]
Step 4: Check the field name attribute
The field’s name attribute in the rendered HTML needs to match the SourceTag field name. In Wix, the field name is typically derived from the label.
To verify:
- Publish or preview your site
- Open your browser’s dev tools (right-click > Inspect)
- Find the hidden input in the form HTML
- Check that the
nameattribute matches (e.g.st_fc_channel)
If Wix modifies the name (adds a prefix or changes formatting), you may need to use a custom HTML embed with Wix’s HTML iframe component instead.
[IMAGE: Screenshot of browser dev tools showing the hidden input element with correct name attribute]
Step 5: Test
Visit the page with UTM parameters:
?utm_source=test&utm_medium=cpc&utm_campaign=wix-test Submit the form. Check the form submissions in the Wix dashboard (Inbox or Form Submissions). The hidden fields should contain your attribution data.
[IMAGE: Screenshot of Wix form submission showing populated hidden fields]
Alternative: HTML embed approach
If Wix’s form builder does not let you set custom field names, you can use the HTML iframe component (or Velo/Wix Code) to add a custom HTML form with hidden inputs, similar to the Squarespace Code Block method. See the HTML forms guide for the raw HTML approach.
Tips
- Field names are case-sensitive. Copy them from the Fields page in your SourceTag dashboard.
- Wix forms may render inside a nested iframe depending on the template. If SourceTag cannot reach the form, try the HTML embed alternative.
- Wix’s Automations and integrations receive hidden field data along with visible fields.
- If you are using Wix’s new responsive editor (Editor X / Studio), the process is similar but the interface may look slightly different.