Meta Ads UTM Parameters: URL Parameters and Dynamic Values
How to add UTM parameters to Meta ads: the URL parameters field, Build a URL parameter, dynamic values like {{campaign.name}}, and where UTMs don’t work.

To add UTM parameters to a Meta ad, go to the ad level in Ads Manager, find Tracking, and type them into the URL parameters field, or click Build a URL parameter. Use Meta’s dynamic values, such as utm_campaign={{campaign.name}}&utm_content={{ad.name}}, and Meta fills in the real names when someone clicks. Your website analytics tool then shows which campaign and ad brought each visit.
This guide covers the field, every dynamic value Meta offers, a template you can paste, the rules that trip people up, and which ad types UTMs actually work for. One point up front: UTMs don’t reach WhatsApp chats, so Click-to-WhatsApp ads need a different method.
Key takeaways
- URL parameters go in the ad’s Tracking section: type them or use Build a URL parameter.
- Write them as key=value, joined with &, and never leave a value empty.
- Dynamic values like {{campaign.name}}, {{ad.id}} and {{placement}} are filled in by Meta when the ad is delivered.
- Name-based values use the name the ad had when first published; renaming later doesn’t change them.
- Changing URL parameters after publishing may restart the learning phase.
- UTMs only track website visits. A WhatsApp chat doesn’t load a page, so use the ad data Meta sends with the message instead.
What URL parameters do in Meta ads
A URL parameter is a short tag added to the end of your ad’s link, like ?utm_source=facebook. When someone clicks, the tag arrives with them, and your analytics tool reads it. Meta says you can use them to see where ad traffic comes from and which ads helped drive a conversion.
Two things to know before you start:
- Meta doesn’t report them. You add the parameters in Ads Manager, but you need a website analytics tool to see the results.
- There are two kinds. Static parameters are fixed text you type, such as
utm_medium=paid. Dynamic parameters are placeholders in double curly brackets, such as{{ad.name}}, that Meta fills in from your ad’s set-up and delivery.
UTM is simply the naming convention most analytics tools understand: utm_source, utm_medium, utm_campaign, utm_content and utm_term. Meta’s own example for Google Analytics uses utm_campaign and utm_content.
How to add UTM parameters in Ads Manager
- Create a campaign in Ads Manager, or open a draft.
- Work through to the ad level until you reach Tracking.
- Type your parameters into the URL parameters field, or click Build a URL parameter to fill them in field by field.
- Write each one as key=value and join them with &, for example
utm_source=facebook&utm_medium=paid. - Click Apply. The parameters show in the field.
- Preview and publish the ad, then click it once and check the address bar on the page that opens.
Meta’s rules for the field:
- No empty values.
background=&foo=baris wrong; give every key a value or remove it. - The field wins over the website URL. Parameters in the URL parameters field are added to your website URL, and if the same key appears in both, the field’s value is used. With
utm_source=1in the website URL andutm_source=2in the field, onlyutm_source=2is in the final link. - It also overrides elsewhere. Meta says parameters added in Ads Manager override ones set in other places, such as Instagram’s default URL parameters.
The dynamic values you can use
These are the dynamic parameters Meta lists for ads across its apps:
| Dynamic value | What Meta fills in | Example result (sample data) |
|---|---|---|
{{campaign.name}} | Campaign name at first publish | Winter%20sale |
{{adset.name}} | Ad set name at first publish | Pune%2025-45 |
{{ad.name}} | Ad name at first publish | Video%201 |
{{campaign.id}} | Campaign ID | A long number |
{{adset.id}} | Ad set ID | A long number |
{{ad.id}} | Ad ID | A long number |
{{placement}} | Where the ad was shown | instagram_stories |
{{site_source_name}} | Which app | fb, ig, msg, th or an |
{{media_type}} | Media type | Advantage+ catalogue ads only |
Placement values in Meta’s list include facebook_feed, facebook_instream, facebook_marketplace, facebook_right_column, instagram_feed, instagram_stories, messenger_inbox, messenger_sponsored_messages, threads_stream and the Audience Network values. Spaces in names come through as %20, which most analytics tools show as spaces.
A UTM template you can paste
This set covers the questions most advertisers ask: which app, which campaign, which ad and which placement.
utm_source={{site_source_name}}&utm_medium=paid&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{placement}}
| Key | Value | Answers |
|---|---|---|
utm_source | {{site_source_name}} | Facebook, Instagram, Messenger, Threads or Audience Network? |
utm_medium | paid | Separates paid clicks from your free posts |
utm_campaign | {{campaign.name}} | Which campaign? |
utm_content | {{ad.name}} | Which ad? |
utm_term | {{placement}} | Feed, Stories, Reels and so on |
If you prefer IDs, which never change, swap the names for {{campaign.id}} and {{ad.id}}. Names are easier to read in reports; IDs are safer if you rename things. A consistent naming scheme helps either way: see how to structure Meta ad campaigns.
Rules that catch people out
| Rule | What it means for you |
|---|---|
| Name-based values are fixed at first publish | Rename a campaign or ad later and the reports still show the old name. To change it, you’d need to publish a new campaign, ad set or ad |
| Editing parameters after publishing | Meta says this may send the ad set back into the learning phase |
| Only the first page is tagged | If a visitor leaves and comes back on their own later, the parameters are lost |
| Ads from existing posts | Parameters apply to clicks on the ad, not to people who see the post organically and click its link |
| Collection ads on Instagram | Dynamic parameters aren’t supported there |
The first two rules together mean it pays to get names and parameters right before you publish. If you duplicate ads to test variations, rename each copy before it goes live, or {{ad.name}} will record whatever name the copy had when it was published, such as one ending in “- Copy”. See how to duplicate a Meta ads campaign. Why restarting learning hurts is in our learning phase guide.
Website ads, lead ads and WhatsApp ads: where UTMs work
Meta lists dynamic parameters as available for Awareness, Traffic, Engagement, Leads, Sales and App promotion campaigns, with conditions for each. But a parameter can only be read where the click opens a web page. Here’s how that plays out:
| Ad type | Do UTMs track it? | Use instead or as well |
|---|---|---|
| Website traffic or sales ads | Yes: the visit arrives tagged | Your analytics tool, plus Meta’s own reports |
| Catalogue sales ads | Yes, but Meta shows only the URL parameters field, no website URL field | The same |
| Lead ads with Instant Forms | Only for clicks that land on your website; a form filled in on Facebook or Instagram never opens your site | The leads themselves, from Meta or a CRM connection |
| App promotion | Add the values to your deferred deep link; there’s no separate field | Your app’s attribution tool |
| Click-to-WhatsApp ads | No | The ad data Meta sends with the first message |
Why UTMs don’t reach WhatsApp chats
A Click-to-WhatsApp ad opens a chat, not a web page, so there’s nothing for your analytics tool to read. When the customer writes, WhatsApp does attach a referral object to the message with the ad’s ID, headline, link and usually a click ID, but not your URL parameters. That’s the data to use for these ads, along with a different prefilled message per ad as a simple backup. Our guide on tracking which ads bring WhatsApp buyers explains both, plus how to report sales back to Meta.
Choosing between the three destinations in the first place? See Click-to-WhatsApp vs website vs lead forms.
UTM tracking and ad tracking in Automate AI
Meta Ads in Automate AI’s main menu creates ads in your own ad account, on every plan for account owners and managers. What it does with tracking depends on where the ad sends people:
- Ads that send people to your website have an optional Tracking tags box. Use standard UTM tags fills in
utm_source=facebook&utm_medium=paid&utm_campaign={{campaign.name}}&utm_content={{ad.name}}, and you can edit it. The tags are added to the ad’s link at Meta. - Click-to-WhatsApp ads don’t take tracking tags, since they don’t open a web page. Instead, Automate AI reads the ad data on the customer’s message: the chat list labels the lead as coming from an Instagram or Facebook ad with the first words of the post or ad, and by default the message shows a card with the ad’s picture, headline and text.
- Results per ad: Meta Ads shows spend, clicks, chats started, cost per chat and new contacts for every ad in the connected account, including ones made in Ads Manager.
- Sales back to Meta: Integrations › Conversions API sends Lead and Purchase events from those chats to Meta.
For lead forms, the Facebook Lead Ads integration makes each lead with a phone number a contact and can send them an approved WhatsApp template (AI + Automation Plan and Series 4). See Click-to-WhatsApp ads in Automate AI and the Meta Ads hub for more.
Frequently asked questions
Where do I add UTM parameters in Meta Ads Manager?
At the ad level, under Tracking. Type them in the URL parameters field or click Build a URL parameter, then click Apply.
What are dynamic URL parameters in Meta ads?
Placeholders in double curly brackets, such as {{campaign.name}}, {{ad.id}} or {{placement}}, that Meta replaces with the real value when someone clicks the ad.
Why does my report show an old campaign name?
Meta fills name-based values with the name used when the ad was first published. Renaming afterwards doesn’t change them. Use ID-based values if you rename often.
Will changing URL parameters reset the learning phase?
It may. Meta says changing URL parameters after you publish may cause the ad set to re-enter the learning phase, so set them before publishing.
Do UTM parameters work on Click-to-WhatsApp ads?
No. The ad opens a WhatsApp chat, not a web page, so there’s nothing to read the tags. Use the referral data Meta attaches to the customer’s first message instead.
What if the same parameter is in my website URL and the URL parameters field?
The value in the URL parameters field is used. Meta’s example: utm_source=1 in the URL and utm_source=2 in the field ends up as utm_source=2.
Does Meta add any parameters automatically?
Meta says some may be added automatically since 1 January 2024, including source, medium and the ad, ad set and campaign IDs. Adding your own keeps the names consistent in your reports.
Sources
- Meta Business Help Centre: Add URL parameters to your Meta ads
- Meta Business Help Centre: Specifications for dynamic URL parameters
- Meta Business Help Centre: About the learning phase for ad sets in Meta Ads Manager
- Meta Business Help Centre: How to create ads from existing posts in Meta Ads Manager
- Meta for Developers: Messages webhook reference (referral object)
- Meta for Developers: Ads that click to WhatsApp
WhatsApp rules and prices change. We check these guides against Meta’s documentation, but always confirm current terms with Meta before you rely on them. Questions? Message us on WhatsApp at +91 836 977 8812.


