Meta ads URL parameters: the dynamic list, UTM examples, and why names freeze at publish
Meta's nine dynamic URL parameters, its UTM example, the parameters it adds itself, and why a renamed campaign keeps its old name in analytics.
- Hristijan Jankulovski
- 7 min read
- Terrads makes image, video and audio ads from your brand. Your first image ad is free.
Meta offers nine dynamic URL parameters, from {{campaign.name}} to
{{placement}}, and you add them in the URL parameters field under
Tracking when you build the ad. For Google Analytics, Meta's own example is
utm_campaign={{campaign.name}}&utm_content={{ad.name}}. Two rules catch
people out. Name-based values are set to the name the campaign, ad set or ad had
"when the ad was first published", so renaming it later doesn't change what
your analytics shows. And changing URL parameters after publishing "may cause
your ad set to re-enter the learning phase."
Which dynamic URL parameters does Meta support?
Meta's Specifications for dynamic URL parameters page lists them in this form:
| Parameter | What it fills in |
|---|---|
ad_id={{ad.id}} | The ad's ID |
adset_id={{adset.id}} | The ad set's ID |
campaign_id={{campaign.id}} | The campaign's ID |
ad_name={{ad.name}} | The ad's name at first publish |
adset_name={{adset.name}} | The ad set's name at first publish |
campaign_name={{campaign.name}} | The campaign's name at first publish |
placement={{placement}} | Where the ad was shown |
site_source_name={{site_source_name}} | Which app it was shown in |
media_type={{media_type}} | "For Advantage+ catalog ads only" |
Meta says dynamic parameters "automatically populate the values of your parameters based on information you provide when setting up your ad and information about how your ads are delivered. They also work with any mobile app deep links."
The keys on the left side of each = are only Meta's suggestions. A
parameter is a key and a value joined by =, with several joined by &, and
you can name the key whatever your analytics tool expects. That is how
utm_campaign ends up carrying {{campaign.name}}.
What values does {{placement}} return?
The placement value comes back as one of these, per the same page:
| Placement | Value in your analytics |
|---|---|
| Facebook Feed | facebook_feed |
| Facebook in-stream reels | facebook_instream |
| Facebook Marketplace | facebook_marketplace |
| Facebook Right Column | facebook_right_column |
| Instagram Feed | instagram_feed |
| Instagram Stories | instagram_stories |
| Messenger Inbox | messenger_inbox |
| Messenger Sponsored Messages | messenger_sponsored_messages |
| Threads | threads_stream |
| Audience Network native, banner and interstitial | audience_network_classic |
| Audience Network Rewarded Video | audience_network_rewarded_video |
Meta adds a note to the Facebook Feed row: "Starting in March 2026, the
Facebook Feed placement will include Facebook Friends tab." So Friends tab
traffic arrives as facebook_feed.
{{site_source_name}} is coarser. It returns an for Audience Network, fb
for Facebook, ig for Instagram, msg for Messenger and th for Threads.
Check two gaps before you build a report on these. The table has no separate row for Instagram Reels, Facebook Stories or Facebook Reels. And Meta says "Dynamic URL parameters are not supported for ads in collection format on Instagram placements." If your placement settings put ads in places the table doesn't list, don't expect a clean value for every click.
What UTM parameters should you use for Meta ads?
Meta's page gives one example for Google Analytics, and it covers the campaign and the ad:
utm_campaign={{campaign.name}}&utm_content={{ad.name}}
Meta says: "If you're using Google Analytics, you should input a UTM parameter for tracking." When the values come through, "you can see which campaign and ad name generated traffic or conversions on your website."
Meta doesn't publish a full recommended string beyond that example. Source and medium need care, because Meta may already be adding them (next section). If you set them yourself, your value wins for any key that appears twice.
Which URL parameters does Meta add automatically?
The Add URL parameters page says that "As of January 1, 2024, you may have the below URL parameters automatically added to your ad traffic":
- Campaign Source = Facebook or Instagram
- Campaign Medium = paid
- Ad ID
- Campaign ID
- Adset ID
- Campaign Tracking Group ID
For Shopify merchants the list is shorter: source = Facebook, medium = paid, Ad ID and Campaign ID.
Meta says these "may" be added, so check a live click before you assume they are there. The page also says adding your own parameters in Ads Manager "will override any parameters you have set elsewhere, such as in Instagram's default URL parameters."
Where do you add URL parameters in Ads Manager?
At the ad level. Meta's steps: create or open a campaign, "Complete the ad creation steps until you reach Tracking for the ad", then "Below Tracking, enter the URL parameters in the URL parameters field or click Build a URL parameter."
Parameters can also go straight onto the end of the website URL. When the same key appears in both places, the URL parameters field wins:
For example, if you have 2 parameters, one named utm_source=1 in the website URL field and the other named utm_source=2 in the URL parameters field, only utm_source=2 will be in the final URL.
Meta also warns against empty values. In
https://www.example.com/page?background=&foo=bar, the background key has
no value. "Always include a value for each parameter key ... or remove the
parameter."
The field isn't on every objective in the same form. Meta's list:
| Objective | Where dynamic parameters work |
|---|---|
| Awareness | Reach, ThruPlay or Ad Recall Lift goals. With Store Locations, "you'll only see the URL parameters field" |
| Traffic | Supported |
| Engagement | Messaging Apps, On your ad or Website conversion locations |
| Leads | Instant forms, Website, Messenger, or Instant forms and Messenger |
| Sales | Website, Website and app, or Messenger. With a catalog, only the URL parameters field |
| App promotion | "Add your dynamic URL parameters to the end of your deferred deep link. There is no separate URL parameters field." |
Why does {{campaign.name}} show the old campaign name?
Because Meta fixes the value at the first publish:
Name-based parameters like ad.name are set to the campaign, ad set or ad name used when the ad was first published. Campaign, ad set or ad names can still be changed, but the parameters will refer to the original names.
If you rename a campaign from "Test 3" to "Black Friday", your analytics keeps
saying "Test 3". Meta's fix is blunt: "If you want to change the parameter
value, you need to create and publish a new campaign, ad set or ad." The ID
parameters don't have this problem, since an ID never changes. If your naming
habits are loose, track {{campaign.id}} alongside the name and map IDs to
names in your own sheet.
Spaces are encoded, so a campaign called "Prospecting 2026" arrives as
Prospecting%202026.
Does changing URL parameters reset the learning phase?
It can. Meta's dynamic parameters page says: "You can change URL parameters after you publish the campaign, but this may cause your ad set to re-enter the learning phase."
That line goes further than Meta's guidance on significant edits, which names targeting, creative and the optimization event and doesn't mention tracking. Set parameters before launch. If you must change them on a running ad set, expect the learning phase to start again.
What URL parameters don't track
Meta is plain that the parameters only label the click: "you'll need to use a website analytics tool to track the results." Two more limits from the same page:
- On a boosted post that links off Facebook, "your URL parameters will only apply to URL clicks on the ad and not on clicks that may happen if someone sees the post organically."
- "A URL parameter is only applicable to the first product page." If someone leaves and comes back on their own later, "the URL parameter will be lost."
Parameters also don't replace Meta's own conversion tracking. They tell your analytics where a visit came from; the attribution setting decides what Ads Manager counts.
Sources
- Specifications for dynamic URL parameters in Meta Ads Manager — Meta Business Help Center (accessed November 25, 2026)
- Add URL parameters to your Meta ads in Meta Ads Manager — Meta Business Help Center (accessed November 25, 2026)
Meta revises these pages without notice, so check the source before acting on any of it.
Terrads makes a separate ad for each angle you want to test, so the names in your UTM report map to real differences between ads.