Form Setup

Set up SourceTag with Ninja Forms

Ninja Forms has a Hidden field type in its field panel. Add one for each SourceTag data point.

What you need

  • SourceTag installed on your site
  • Ninja Forms (free or Pro)

Step 1: Open the Ninja Forms builder

Go to Ninja Forms > Dashboard and click Edit on the form you want to track.

[IMAGE: Screenshot of Ninja Forms builder]

Step 2: Add hidden fields

  1. In the right-hand field panel, click Add New Field
  2. Search for “Hidden” or find it under Misc fields
  3. Drag it onto your form
  4. Click the field to open its settings
  5. Set the Label to the SourceTag field name (e.g. st_fc_channel)
  6. In the Administration section, set the Field Key to the same name

Repeat for each field.

Core fields

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

st_fc_click_id, st_lc_click_id, st_visits, st_days_to_convert, st_device

[IMAGE: Screenshot of Ninja Forms hidden field settings]

Step 3: Check the field key

The Field Key in Ninja Forms is the HTML name attribute used in the form output. SourceTag matches on this. Make sure it matches the SourceTag field name exactly.

Go to each hidden field’s Administration tab and verify the key.

Step 4: Publish and test

Click Publish to save the form. Visit a page with this form using UTM parameters:

?utm_source=test&utm_medium=cpc&utm_campaign=ninja-test

Submit the form. Check Ninja Forms > Submissions for the attribution data.

[IMAGE: Screenshot of Ninja Forms submission with attribution data]

Tips

  • Ninja Forms free version includes the Hidden field type.
  • If you use Ninja Forms CRM extensions (Salesforce, etc.), map the hidden fields in the extension settings.
  • The Field Key is under the Administration section of each field’s settings.