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

  1. Open your site in the Wix Editor
  2. Click on your form to select it
  3. 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

  1. Click Add New Field
  2. Choose a Short Text field type (or similar text input)
  3. Set the Field Label to the SourceTag field name (e.g. st_fc_channel)
  4. Repeat for each SourceTag field

[IMAGE: Screenshot of Wix form field creation dialog]

Core fields (add these)

  • 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 extended fields

If you have enabled extended field groups in your SourceTag dashboard, also add:

  • st_fc_click_id and st_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:

  1. Click on the field in the form builder
  2. Go to the field’s settings
  3. Find the Field Visibility or Show in Form toggle
  4. 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:

  1. Publish or preview your site
  2. Open your browser’s dev tools (right-click > Inspect)
  3. Find the hidden input in the form HTML
  4. Check that the name attribute 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.