# Set up SourceTag with Fluent Forms

Canonical: https://sourcetag.io/docs/fields-fluent-forms

Fluent Forms (WP Starter and above) has a Hidden Field element you can drag into your form. You add one per SourceTag data point and set the name attribute to match.

## What you need

- SourceTag installed on your site (script tag or WordPress plugin)
- Fluent Forms (free version includes hidden fields)

## Step 1: Open your form in the Fluent Forms editor

Go to **Fluent Forms > All Forms** and click **Edit** on the form you want to track.
## Step 2: Add hidden fields

1. In the form editor, click the **Add Field** button (or look at the field panel on the right)
2. Under **Advanced Fields**, find **Hidden Field**
3. Click or drag it into your form
4. Repeat for each SourceTag field


### Core fields (add these)

Add a hidden field for each of the following:

- `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)

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

## Step 3: Set the field name attribute

For each hidden field:

1. Click on the hidden field in the form editor
2. In the field settings panel (right side or in a popup), find the **Name Attribute** setting
3. Set it to the SourceTag field name exactly (e.g. `st_fc_channel`)
4. Leave the **Default Value** empty

In some versions of Fluent Forms, the name attribute is under the **Admin Label** or in the **Input Customization** tab. The key thing is that the HTML `name` attribute on the rendered field matches the SourceTag field name.


## Step 4: Save and test

Save your form. Visit a page with this form using UTM parameters:

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

Submit the form. Go to **Fluent Forms > Entries** and open the test submission. The hidden fields should contain your attribution data.
## Tips

- You can copy field names from the Fields page in your SourceTag dashboard (each name has a copy button).
- Hidden fields are invisible to visitors on the front end.
- If the name attribute field is not obvious, check the **Advanced Options** or **Input Customization** tab within the hidden field settings.
- Fluent Forms integrations (Zapier, webhooks, email notifications) will include hidden field values. Make sure your integration maps them correctly.
