Short answer
You add UTM parameters in the Tracking section of each ad in Meta Ads Manager, in the field called URL parameters. Type them there, or click Build a URL parameter, then click Apply. Each parameter is a key and a value joined by an equals sign, and an ampersand separates one parameter from the next, as in utm_source=facebook&utm_medium=paid. Meta also offers dynamic parameters, such as {{campaign.name}} and {{ad.name}}, which take their values from your campaign when the ad is delivered. What you type in this field is added to your website URL, and when the same key appears in both, the URL parameters field wins. Meta does not track the results for you: you read them in a website analytics tool such as Google Analytics. Set them before you publish, since Meta warns that changing them later may send the ad set back into the learning phase.
TL;DR
- Add UTM parameters at the ad level, in the URL parameters field of the Tracking section, or with Build a URL parameter.
- Dynamic values such as {{campaign.name}}, {{ad.name}} and {{placement}} fill themselves in when the ad is delivered.
- Name-based values keep the name used when the ad was first published, even if you rename it later.
- Meta may add a source, a medium and your campaign, ad set and ad IDs to the traffic on its own.
- You read the results in your analytics tool, not in Ads Manager.
Which dynamic parameters does Meta fill in?
| Dynamic parameter | What Meta fills in | Good to know |
|---|---|---|
| {{campaign.name}} | The campaign name | Keeps the name used when the ad was first published |
| {{adset.name}} | The ad set name | Same rule: renaming it later changes nothing |
| {{ad.name}} | The ad name | Meta’s Google Analytics example puts it in utm_content |
| {{campaign.id}}, {{adset.id}}, {{ad.id}} | The ID numbers | Among the values Meta may also add on its own |
| {{placement}} | Where the ad ran | Values such as facebook_feed or instagram_stories |
| {{site_source_name}} | The app that showed the ad | fb, ig, msg, an (Audience Network) or th (Threads) |
| {{media_type}} | The type of media | Advantage+ catalog ads only |
Where is the URL parameters field in Ads Manager?
The field sits at the ad level, in the Tracking section near the end of ad creation, not in the campaign or the ad set. The steps are the same for a new campaign and for a draft you saved earlier. You can type the parameters yourself or let Ads Manager assemble the string for you.
- Create a campaign in Ads Manager, or open one saved as a draft.
- Go through the ad creation steps until you reach Tracking, at the ad level.
- Type your parameters in the URL parameters field, or click Build a URL parameter.
- Click Apply: the parameters now show in the field.
You can also change them after the campaign is published, but Meta warns that this may put the ad set back into the learning phase.
What should a UTM template for Meta ads look like?
Meta’s own example for Google Analytics sends the campaign name to utm_campaign and the ad name to utm_content, with dynamic parameters. Add {{site_source_name}} as the source and paid as the medium, and every ad reports where its traffic came from, Facebook and Instagram kept apart, without a manual edit per ad.
Template to copy
utm_source={{site_source_name}}&utm_medium=paid&utm_campaign={{campaign.name}}&utm_content={{ad.name}}When the ad runs, Meta replaces each value in braces, and spaces in names become %20 in the URL. Since these names are what your analytics reports will show, keep them short and readable. The medium paid also matches the one Meta may add on its own.
Does Meta add UTM parameters automatically?
It may. Since January 1, 2024, Meta says it may add these values to your ad traffic on its own: a source (Facebook or Instagram), a medium (paid), and the ad ID, ad set ID, campaign ID and campaign tracking group ID. None of them carries a campaign or ad name.
For Shopify merchants, Meta lists a shorter set: source Facebook, medium paid, ad ID and campaign ID. If you want names in your reports, add name-based parameters yourself.
What breaks UTM tracking on Meta ads?
Most problems come from overrides and empty values. A key typed in the URL parameters field replaces the same key written in the website URL, and parameters set in Ads Manager override other defaults, such as Instagram’s default URL parameters. Meta also asks you never to leave a key without a value.
Two limits are built in. The parameter only follows the first visit: if someone leaves your product page and comes back later on their own, it is gone. And on an ad made from an existing post, it only applies to clicks on the ad, not to people who click the post organically.
Renaming does not fix old values either. A name-based parameter keeps the name used when the ad was first published; to change it, Meta says you need to publish a new campaign, ad set or ad.
