# Set up SourceTag with Brevo

Canonical: https://sourcetag.io/docs/setup-brevo

When a visitor submits a form with SourceTag data, the attribution fields need somewhere to go in Brevo. You need to create contact attributes that match the SourceTag field names.

## What you need

- SourceTag installed and form hidden fields set up
- Brevo account with admin access

## Step 1: Go to contact attribute settings

In Brevo, navigate to Contacts > Settings > Contact Attributes.
## Step 2: Create contact attributes

Create a new contact attribute for each SourceTag data point:

### Core fields (create these)

| Field name | Label | Type |
|-----------|-------|------|
| `ST_FC_CHANNEL` | First Click Channel | Text |
| `ST_FC_DETAIL_1` | First Click Smart Field 1 | Text |
| `ST_FC_DETAIL_2` | First Click Smart Field 2 | Text |
| `ST_FC_DETAIL_3` | First Click Smart Field 3 | Text |
| `ST_FC_DETAIL_4` | First Click Smart Field 4 | Text |
| `ST_LC_CHANNEL` | Last Click Channel | Text |
| `ST_LC_DETAIL_1` | Last Click Smart Field 1 | Text |
| `ST_LC_DETAIL_2` | Last Click Smart Field 2 | Text |
| `ST_LC_DETAIL_3` | Last Click Smart Field 3 | Text |
| `ST_LC_DETAIL_4` | Last Click Smart Field 4 | Text |
| `ST_FC_LANDING_PAGE` | First Click Landing Page | Text |
| `ST_LC_LANDING_PAGE` | Last Click Landing Page | Text |

### Optional extended fields

| Field name | Label | Type |
|-----------|-------|------|
| `ST_FC_CLICK_ID` | First Click Click ID | Text |
| `ST_LC_CLICK_ID` | Last Click Click ID | Text |
| `ST_VISITS` | Visit Count | Number |
| `ST_DAYS_TO_CONVERT` | Days to Convert | Number |
| `ST_DEVICE` | Device Type | Text |

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

## Step 3: Map form fields to Brevo attributes

If your form builder sends data to Brevo via an integration (Zapier, native feed, webhook, etc.), make sure the SourceTag form fields are mapped to the corresponding Brevo contact attributes.
## Step 4: Test

Submit a form with UTM parameters and check the contact record in Brevo. The contact attributes should be populated with attribution data.
## Tips

- Brevo attribute names are automatically converted to uppercase. The attribute names in the table above reflect this convention.
- Make sure you create attributes under the "Normal" category (not "Transactional" or "Calculated").
- Test with a fresh contact (not one that already exists) for the cleanest test.
