# How do I build an audience from UTM parameters?

Asked by MiguelT on 2024-05-15. Tags: cql, audiences, campaigns.

I run paid campaigns and our landing URLs look like this:

```
https://example.com/promo?utm_source=google&utm_medium=cpc&utm_campaign=summer-sale
```

I want visitors from these google cpc ads to see a headline that matches the ad
copy. I am not a developer and cant touch the site code. Can I target these UTM
values directly in an audience, or does someone need to set up tracking for
them first?

## 1 answer

### Answer from Owen McAllister (2024-05-15)

No tracking setup needed. UTM parameters map straight to the campaign context
variable, and campaign detection is tracked automatically the moment someone
lands with UTMs on the URL. For your example URL the audience is:

```cql
campaign's source is "google" and campaign's medium is "cpc"
```

If you want to scope it to that specific campaign, add a name condition.
`matches` does partial matching, handy when your campaign names share a
prefix:

```cql
campaign's name matches "sale"
```

The full set of campaign attributes you can query is name, source, medium,
content, and term, mirroring the standard utm_ parameters. So the only
"tagging work" is the UTMs you already put on the ads. Build the audience in
the editor, attach it to an experience with the matching headline, and you
are done, no code involved.
