# Track campaigns with UTM tags

> Tag the links you share with UTM tags, so each campaign's visitors, sales and channel show on your dashboard.

Add UTM tags to the links you share, so the visitors each campaign brings, and what they buy, show on your dashboard under its own name.

## 1. Tag your link

1. Start from the address you share, like `https://example.com/pricing`.
2. Add `?` and the tags, joined by `&`. If the address already has a `?`, add the tags after an `&` instead.

```text
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring-sale
```

3. Spell each value the same way every time: `Spring` and `spring` count as two campaigns.

Each tag does one thing on your dashboard:

| Tag | What it sets | Example |
|---|---|---|
| `utm_source` | The visit's row in **Sources**, in lower case. | `newsletter` |
| `utm_medium` | Its channel: `cpc`, `ppc` or a value with `paid` in it is `paid`, and `email`, `social`, `referral` and `organic` are those channels. Any other value leaves the channel to the linking site. | `email` |
| `utm_campaign` | Its row in **Campaigns**, as written. | `spring-sale` |

The script also sends `utm_term` and `utm_content`, up to 200 characters each like the others, and CentPath stores them with the page view. No report lists them.

## 2. Share the link

Put the tagged link in your email, ad or post. The tags count when the link opens the first page of a visit: they set its source, channel and campaign for the whole visit, its sales included. A tagged link opened during a visit that has already started changes nothing.

If your link goes through a redirect, check that the page it lands on still has the tags in its address: a redirect that drops them leaves the visit with no campaign.

## 3. Read your campaigns

1. Open your site's dashboard and pick your dates.
2. In the **Sources** card, open the **Campaigns** tab: each campaign is a row, with its visitors, and its revenue once your site has sold.
3. Click a campaign to filter the whole dashboard to its visits. See [Filter your dashboard](https://centpath.app/docs/filters).

To set what a campaign cost against what it brought, enter its spend in **Setup** → **Advanced** under **Ad spend**. **Campaigns** can then show its **Spend**, **ROAS** and **Cost/order**: tick them with the sliders button beside the card's title. See [Add your ad spend](https://centpath.app/docs/ad-spend).

## Verify the setup

Open your tagged link in a private window. Then open your dashboard, pick **Today** and open **Campaigns** in the **Sources** card: your campaign is there, usually within a minute, and its source is in the **Sources** tab.

## Troubleshooting

### A campaign shows under two names

Values count as written, so `Spring` and `spring` are two rows. Use one spelling in every link.

### The visit counts as direct, with no campaign

The tags weren't in the address of the visit's first page. Open the link again and check the address the page lands on: a redirect, a link shortener or a form on your site can drop what follows the `?`.

### An ad's visits count as social

Facebook and Instagram mark every link they open, from an ad or a post alike, so CentPath can't tell their ads apart by that mark. Add `utm_medium=cpc` to your ad's link, so its visits count as `paid`.
