# Set up SourceTag with Ninja Forms

Canonical: https://sourcetag.io/docs/fields-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.
## 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 (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've 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 to convert)
- `st_device` (device type)

See [Captured Fields](https://sourcetag.io/docs/captured-fields) for the full list of available fields.

## 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:

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

Submit the form. Check Ninja Forms > Submissions for the 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.
