Guide
Dynamic URL parameters: each ad platform's macros and a UTM template
Dynamic URL parameters are placeholders an ad platform fills in on each click, like {{ad.name}} on Meta or {keyword} on Google Ads. Each platform has its own spelling, so a parameter written for one platform stays as plain text on another. Below is each platform's spelling, a UTM template to copy, and where it goes.
Tell the platform by its brackets
| Looks like | Platform | Example |
|---|---|---|
| Double braces, lowercase with a dot | Meta | {{ad.name}} |
| Double braces, capitals | {{AD_NAME}} | |
| Double braces, lowercase with underscores | Outbrain | {{publisher_name}} |
| Single braces, lowercase | Google Ads (ValueTrack), Taboola | {keyword}, {site} |
| Single braces, capital first letters | Microsoft Ads | {AdGroup} |
| Two underscores each side, capitals | TikTok | __CID_NAME__ |
| Dollar sign and braces, capitals | DV360 | ${CREATIVE_ID} |
%e and !, lowercase | Campaign Manager 360 | %ecid! |
Google Ads and Taboola both use single lowercase braces but different names, so check the name, not only the brackets.
Campaign, ad set and ad parameters on each platform
| Platform | Campaign | Ad set / ad group | Ad |
|---|---|---|---|
| Google Ads | {campaignid} (ID only) | {adgroupid} (ID only) | {creative} (ID only) |
| Meta | {{campaign.name}} | {{adset.name}} | {{ad.name}} |
| Microsoft Ads | {Campaign} | {AdGroup} | {AdId} (ID only) |
| TikTok | __CAMPAIGN_NAME__ | __AID_NAME__ | __CID_NAME__ |
{{CAMPAIGN_NAME}} | {{AD_SET_NAME}} | {{AD_NAME}} | |
| Outbrain | {{campaign_name}} | none | {{ad_title}} (headline), {{ad_id}} |
| Taboola | {campaign_name} | none | {campaign_item_id}, {title} (headline) |
| DV360 | ${INSERTION_ORDER_ID} | ${CAMPAIGN_ID} (line item) | ${CREATIVE_ID} |
| Campaign Manager 360 | %ebuy! | %epid! (placement) | %ecid! (creative) |
Search platforms also fill in the keyword: {keyword} on Google Ads and {keyword:default} on Microsoft Ads, where the word after the colon is used when there is no keyword. Outbrain and Taboola fill in the publisher site: {{publisher_name}} and {site}.
UTM templates to copy, by platform
Each template keeps utm_source and utm_medium typed in, because GA4 picks the channel from them, and lets the platform fill in the rest. Swap the example campaign names for your own.
Google Ads
utm_source=google&utm_medium=cpc&utm_campaign=acme_google_sales_us_brand_202612&utm_term={keyword}&utm_content={creative}&utm_id={campaignid}Where it goes: The final URL suffix. Google calls these ValueTrack parameters. There is none for the campaign name, so type the name in. Google Ads help page.
Meta
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}}&utm_id={{campaign.id}}Where it goes: The ad's URL parameters field, under Tracking. Names fill in as they were when the ad was first published. Meta help page.
Microsoft Ads
utm_source=bing&utm_medium=cpc&utm_campaign={Campaign}&utm_term={AdGroup}&utm_content={AdId}&utm_id={CampaignId}Where it goes: The final URL suffix. Microsoft fills in campaign and ad group names, but only the ad ID. Microsoft Ads help page.
TikTok
utm_source=tiktok&utm_medium=paid_social&utm_campaign=__CAMPAIGN_NAME__&utm_term=__AID_NAME__&utm_content=__CID_NAME__&utm_id=__CAMPAIGN_ID__Where it goes: The ad's URL parameters, next to its destination URL. AID is the ad group and CID is the ad. Upgraded Smart+ campaigns use __ADID_V2_NAME__ for the ad. TikTok help page.
utm_source=linkedin&utm_medium=paid_social&utm_campaign={{CAMPAIGN_NAME}}&utm_term={{AD_SET_NAME}}&utm_content={{AD_NAME}}&utm_id={{CAMPAIGN_ID}}Where it goes: Ad set tracking parameters, or account level parameters. Capitals in double braces, with the names LinkedIn uses since its October 2025 rename. LinkedIn help page.
Outbrain
utm_source=outbrain&utm_medium=paid_native&utm_campaign={{campaign_name}}&utm_term={{publisher_name}}_{{section_name}}&utm_content={{ad_title}}&utm_id={{campaign_id}}Where it goes: The campaign's Tracking section. Outbrain also accepts square brackets, like [publisher_name]. Outbrain help page.
Taboola
utm_source=taboola&utm_medium=paid_native&utm_campaign={campaign_name}&utm_term={site}&utm_content={campaign_item_id}&utm_id={campaign_id}Where it goes: Tracking Code, at the bottom of the campaign page. Replace the default utm_medium=referral, which GA4 counts as a free referral. Taboola help page.
DV360
utm_source=dv360&utm_medium=display&utm_campaign=acme_dv360_awareness_us_prospecting_202612&utm_term=${CAMPAIGN_ID}&utm_content=${CREATIVE_ID}&utm_id=${INSERTION_ORDER_ID}Where it goes: Click-through URLs in third-party ad tags. ${CAMPAIGN_ID} is the line item ID, despite its name. IDs only, no names, and not for YouTube ads: click one test ad to confirm they fill in. DV360 help page.
Step-by-step setup for the busiest platforms: Google Ads tracking template, Meta ads URL parameters and LinkedIn ads UTM parameters. For Outbrain, Taboola and sponsored posts, see publisher UTM tracking.
Which parameter goes in which UTM tag?
| UTM tag | Fill it with |
|---|---|
utm_source | Typed in: the platform, like facebook or bing |
utm_medium | Typed in: the kind of traffic, like cpc or paid_social |
utm_campaign | The campaign name parameter, or the name typed in where there is none |
utm_term | The keyword on search; the ad set or publisher elsewhere |
utm_content | The ad |
utm_id | The campaign ID |
A dynamic source, like Meta's {{site_source_name}}, can fill in values GA4 doesn't know and push clicks out of Paid Social. Which source and medium values GA4 expects is in UTM source vs medium.
Why a dynamic parameter shows up as text in your reports
- Wrong brackets.
{ad.name}on Meta or{{keyword}}on Google Ads stays as typed. - Wrong case. LinkedIn needs capitals,
{{AD_NAME}}. Campaign Manager 360 needs lowercase:%EBUY!does not work. - Another platform's parameter. A Meta template pasted into TikTok reports
{{ad.name}}as the ad name on every click. - An old name. LinkedIn renamed its parameters in October 2025:
{{CREATIVE_NAME}}is now{{AD_NAME}}. - A typo.
{{adset_name}}in place of{{adset.name}}is enough.
Check dynamic parameters before launch
Paste your links or URL parameters into the free UTM link checker. It flags the wrong brackets, a misspelt parameter and a parameter from the wrong platform for Google Ads, Meta, Microsoft Ads, TikTok, LinkedIn, DV360 and Campaign Manager 360. It doesn't know Outbrain or Taboola parameters yet and leaves them exactly as typed. It runs in your browser, so nothing you paste is sent to us.