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 likePlatformExample
Double braces, lowercase with a dotMeta{{ad.name}}
Double braces, capitalsLinkedIn{{AD_NAME}}
Double braces, lowercase with underscoresOutbrain{{publisher_name}}
Single braces, lowercaseGoogle Ads (ValueTrack), Taboola{keyword}, {site}
Single braces, capital first lettersMicrosoft Ads{AdGroup}
Two underscores each side, capitalsTikTok__CID_NAME__
Dollar sign and braces, capitalsDV360${CREATIVE_ID}
%e and !, lowercaseCampaign Manager 360%ecid!

Google Ads and Taboola both use single lowercase braces but different names, so check the name, not only the brackets.

Add the right parameters for each platform, free

Campaign, ad set and ad parameters on each platform

PlatformCampaignAd set / ad groupAd
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__
LinkedIn{{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.

LinkedIn

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 tagFill it with
utm_sourceTyped in: the platform, like facebook or bing
utm_mediumTyped in: the kind of traffic, like cpc or paid_social
utm_campaignThe campaign name parameter, or the name typed in where there is none
utm_termThe keyword on search; the ad set or publisher elsewhere
utm_contentThe ad
utm_idThe 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

  1. Wrong brackets. {ad.name} on Meta or {{keyword}} on Google Ads stays as typed.
  2. Wrong case. LinkedIn needs capitals, {{AD_NAME}}. Campaign Manager 360 needs lowercase: %EBUY! does not work.
  3. Another platform's parameter. A Meta template pasted into TikTok reports {{ad.name}} as the ad name on every click.
  4. An old name. LinkedIn renamed its parameters in October 2025: {{CREATIVE_NAME}} is now {{AD_NAME}}.
  5. 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.

Check your parameters Open the builder

FAQ

Questions, answered

Dynamic URL parameters, in plain words.

Still stuck? Email hello@weekendproof.com

What are dynamic URL parameters?

Placeholders an ad platform fills in on each click, like {{ad.name}} on Meta, {keyword} on Google Ads or __CID_NAME__ on TikTok. One template then works on every ad, and each click reports its own campaign, ad set and ad. Each platform has its own spelling, and one platform's parameter stays as plain text on another.

What are ValueTrack parameters?

Google Ads' name for its dynamic URL parameters. They use single braces and lowercase, like {campaignid}, {adgroupid}, {creative}, {keyword} and {device}. There is no ValueTrack parameter for the campaign name, so type the name into utm_campaign.

What dynamic parameters does TikTok support?

TikTok uses capitals with two underscores on each side: __CAMPAIGN_NAME__, __CAMPAIGN_ID__, __AID_NAME__ and __AID__ for the ad group, __CID_NAME__ and __CID__ for the ad, and __PLACEMENT__. Upgraded Smart+ campaigns use __ADID_V2_NAME__ and __ADID_V2__ for the ad.

Why does my dynamic parameter show as text in GA4?

The platform did not recognise it, so it sent it as typed. The usual causes are the wrong brackets ({ad.name} on Meta needs double braces), the wrong case (LinkedIn needs capitals), another platform's parameter, an old name or a typo. Check the links before launch, because clicks already counted keep the text.

Can I use one UTM template on every platform?

Not with dynamic parameters, because each platform spells them differently. Keep one pattern instead: the platform in utm_source, the kind of traffic in utm_medium, and the campaign, ad set and ad parameters in utm_campaign, utm_term and utm_content, using each platform's own spelling.

Do Outbrain and Taboola have dynamic parameters?

Yes. Outbrain uses double braces or square brackets, like {{publisher_name}}, {{section_name}}, {{ad_title}} and {{campaign_name}}. Taboola uses single braces, like {site}, {campaign_name}, {campaign_id} and {campaign_item_id}. Both fill in the publisher site, which is how you see each publisher in GA4.