Ad platform macros: every click ID and tracking token in one table

November 19, 2026 · Hoplytic team · 2 min read

Key points

Every ad platform has its own way of telling your tracker where a click came from. This is the reference we keep for the link maker, checked against each platform's documentation in November 2026.

Short answer: search and social platforms add a click ID to the URL by themselves (gclid, fbclid, ttclid…). Push, pop and native networks need you to put their click ID macro in the URL, for example ${SUBID} on PropellerAds or {cid} on Zeropark, plus placement and campaign macros.

Search and social

PlatformClick IDOther macros
Google Adsgclid (automatic){campaignid} campaign ID
{adgroupid} ad group ID
{keyword} keyword
{device} device
Microsoft Adsmsclkid (automatic){CampaignId} campaign ID
{AdGroupId} ad group ID
{keyword} keyword
Facebook Ads (Meta)fbclid (automatic){{campaign.id}} campaign ID
{{adset.id}} ad set ID
{{ad.id}} ad ID
{{placement}} placement
TikTok Adsttclid (automatic)__CAMPAIGN_ID__ campaign ID
__CID__ ad ID
Snapchat AdsScCid (automatic){{campaign.id}} campaign ID
{{ad.id}} ad ID
Reddit Adsrdt_cid (automatic){{CAMPAIGN_ID}} campaign ID
{{AD_ID}} ad ID
Pinterest Adsepik (automatic){campaignid} campaign ID
{adgroupid} ad group ID
LinkedIn Adsli_fat_id (automatic)—
X (Twitter) Adstwclid (automatic)—
Quora Adsqclid (automatic)—
NewsBreak__CALLBACK_PARAM__—

Native

PlatformClick IDOther macros
Taboola{click_id}{site} site
{campaign_id} campaign ID
Outbrain{{ob_click_id}}{{publisher_name}} publisher
{{section_name}} section
MGID{click_id}{widget_id} widget (placement)
{teaser_id} ad
RevContentnot published{widget_id} widget (placement)
{content_id} ad
{boost_id} campaign (boost)

Push, pop and display

PlatformClick IDOther macros
PropellerAds${SUBID}{zoneid} zone
{campaignid} campaign ID
Zeropark{cid}{target} target (placement)
{campaign_id} campaign ID
Adsterra##SUB_ID_SHORT(action)####PLACEMENT_ID## placement
##CAMPAIGN_ID## campaign ID
ExoClick{conversions_tracking}{zone_id} zone
{src_hostname} site
Evadav{CLICKID}{CAMPAIGN_ID} campaign ID
{CREATIVE_ID} creative
HilltopAds{{ctoken}}{{zoneid}} zone
{{campaignid}} campaign ID
Clickadu${SUBID}{zoneid} zone
{campaignid} campaign ID
TrafficStars{click_id}{site_id} site
{adspot_id} ad spot
{campaign_id} campaign ID
Kadam{click_id}{site_id} site
{campaign_id} campaign ID
AdMaven{:click_id}{:source_id} traffic source
{:country_code} country
RollerAdsnot published—
RichAds[CLICK_ID]—
Galaksion[:click_id]{zoneid} zone
PopAds[IMPRESSIONID][WEBSITEID] website
[CAMPAIGNID] campaign ID

How to use macros

  1. Put the macros in your ad's destination URL or the platform's tracking-template field, as values of your own parameters: ?zone={zoneid}.
  2. The platform replaces them on each click; your tracker stores the values with the click.
  3. The tracker passes its own click ID to the affiliate network in a sub-ID, so each sale comes back to the right zone, campaign or ad.
  4. Send the sale back to the ad platform with its click ID, so its bidding optimises for sales.

Platform names change now and then. If a value arrives empty or as the literal macro, check the platform's current list. Pages marked "check" are from third-party guides because the platform doesn't document them.

Questions people ask

What is a tracking macro?

A placeholder in your ad's URL, like {zoneid} or ${SUBID}, that the ad platform replaces with a real value on each click. Trackers store those values so you can report sales by zone, campaign or ad.

Which ad platforms add a click ID automatically?

Google Ads (gclid), Microsoft Ads (msclkid), Meta (fbclid), TikTok (ttclid), Snapchat (ScCid), Reddit (rdt_cid), Pinterest (epik), LinkedIn (li_fat_id), X (twclid) and Quora (qclid, with its Conversion API).

More in Traffic sources and macros

Also: tracking glossary · ad platform macros · Markdown copy