# Set up SourceTag with Growform

Canonical: https://sourcetag.io/docs/fields-growform

Growform builds multi-step forms that can include hidden fields. SourceTag populates these with attribution data when visitors complete your forms.

## What you need

- SourceTag installed on your website
- A Growform form embedded on your site

## Step 1: Open your form in Growform

Log in to Growform and open the form you want to track.

## Step 2: Add hidden fields

1. In the Growform builder, add a **Hidden Field** element for each SourceTag field
2. Set the field name to match the SourceTag field name exactly

### 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: Embed on your site

Embed your Growform on a page that already has the SourceTag script installed. SourceTag detects the form and populates the hidden fields automatically.

Make sure the form renders as part of the page's HTML (not inside a cross-origin iframe). Growform's standard embed methods should work.

## Step 4: Test

Visit the page with UTM parameters:

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

Complete the form. Check the submission in Growform (or wherever your form data is sent). The hidden fields should contain attribution data.

## Tips

- Hidden field names are case-sensitive. Make sure they match the SourceTag field names exactly.
- You can copy field names from the Fields page in your SourceTag dashboard (each name has a copy button).
- If hidden fields are not populating, inspect the rendered form HTML in your browser dev tools. The hidden input `name` attribute must match the SourceTag field name.
- Multi-step forms work fine. Place the hidden fields on any step — SourceTag populates them as soon as it detects the form, regardless of which step the visitor is on.
