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

> Click ID and tracking macros for 29 ad platforms: Google, Meta, TikTok, Taboola, MGID, PropellerAds, Zeropark, Adsterra and more. Checked Nov 2026.

Source: https://hoplytic.com/blog/ad-platform-macros · Updated 2026-11-19 · Hoplytic Guides

## Key points

- Search and social platforms add their own click ID (gclid, fbclid, ttclid…) automatically; push and native networks need a click ID macro in the URL.
- Copy macros exactly: brackets and case matter, and a macro that arrives literally means the platform didn't fill it.
- The click ID is what you send back with each sale, so the platform's bidding learns from real conversions.

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

| Platform | Click ID | Other macros |
| --- | --- | --- |
| [Google Ads](https://hoplytic.com/blog/google-ads-macros) | `gclid` (automatic) | `{campaignid}` campaign ID; `{adgroupid}` ad group ID; `{keyword}` keyword; `{device}` device |
| [Microsoft Ads](https://hoplytic.com/blog/microsoft-ads-macros) | `msclkid` (automatic) | `{CampaignId}` campaign ID; `{AdGroupId}` ad group ID; `{keyword}` keyword |
| [Facebook Ads (Meta)](https://hoplytic.com/blog/facebook-ads-macros) | `fbclid` (automatic) | `{{campaign.id}}` campaign ID; `{{adset.id}}` ad set ID; `{{ad.id}}` ad ID; `{{placement}}` placement |
| [TikTok Ads](https://hoplytic.com/blog/tiktok-ads-macros) | `ttclid` (automatic) | `__CAMPAIGN_ID__` campaign ID; `__CID__` ad ID |
| [Snapchat Ads](https://hoplytic.com/blog/snapchat-ads-macros) | `ScCid` (automatic) | `{{campaign.id}}` campaign ID; `{{ad.id}}` ad ID |
| [Reddit Ads](https://hoplytic.com/blog/reddit-ads-macros) | `rdt_cid` (automatic) | `{{CAMPAIGN_ID}}` campaign ID; `{{AD_ID}}` ad ID |
| [Pinterest Ads](https://hoplytic.com/blog/pinterest-ads-macros) | `epik` (automatic) | `{campaignid}` campaign ID; `{adgroupid}` ad group ID |
| [LinkedIn Ads](https://hoplytic.com/blog/linkedin-ads-macros) | `li_fat_id` (automatic) | — |
| [X (Twitter) Ads](https://hoplytic.com/blog/x-ads-macros) | `twclid` (automatic) | — |
| [Quora Ads](https://hoplytic.com/blog/quora-ads-macros) | `qclid` (automatic) | — |
| [NewsBreak](https://hoplytic.com/blog/newsbreak-macros) | `__CALLBACK_PARAM__` | — |

## Native

| Platform | Click ID | Other macros |
| --- | --- | --- |
| [Taboola](https://hoplytic.com/blog/taboola-macros) | `{click_id}` | `{site}` site; `{campaign_id}` campaign ID |
| [Outbrain](https://hoplytic.com/blog/outbrain-macros) | `{{ob_click_id}}` | `{{publisher_name}}` publisher; `{{section_name}}` section |
| [MGID](https://hoplytic.com/blog/mgid-macros) | `{click_id}` | `{widget_id}` widget (placement); `{teaser_id}` ad |
| [RevContent](https://hoplytic.com/blog/revcontent-macros) | not published | `{widget_id}` widget (placement); `{content_id}` ad; `{boost_id}` campaign (boost) |

## Push, pop and display

| Platform | Click ID | Other macros |
| --- | --- | --- |
| [PropellerAds](https://hoplytic.com/blog/propellerads-macros) | `${SUBID}` | `{zoneid}` zone; `{campaignid}` campaign ID |
| [Zeropark](https://hoplytic.com/blog/zeropark-macros) | `{cid}` | `{target}` target (placement); `{campaign_id}` campaign ID |
| [Adsterra](https://hoplytic.com/blog/adsterra-macros) | `##SUB_ID_SHORT(action)##` | `##PLACEMENT_ID##` placement; `##CAMPAIGN_ID##` campaign ID |
| [ExoClick](https://hoplytic.com/blog/exoclick-macros) | `{conversions_tracking}` | `{zone_id}` zone; `{src_hostname}` site |
| [Evadav](https://hoplytic.com/blog/evadav-macros) | `{CLICKID}` | `{CAMPAIGN_ID}` campaign ID; `{CREATIVE_ID}` creative |
| [HilltopAds](https://hoplytic.com/blog/hilltopads-macros) | `{{ctoken}}` | `{{zoneid}}` zone; `{{campaignid}}` campaign ID |
| [Clickadu](https://hoplytic.com/blog/clickadu-macros) | `${SUBID}` | `{zoneid}` zone; `{campaignid}` campaign ID |
| [TrafficStars](https://hoplytic.com/blog/trafficstars-macros) | `{click_id}` | `{site_id}` site; `{adspot_id}` ad spot; `{campaign_id}` campaign ID |
| [Kadam](https://hoplytic.com/blog/kadam-macros) | `{click_id}` | `{site_id}` site; `{campaign_id}` campaign ID |
| [AdMaven](https://hoplytic.com/blog/admaven-macros) | `{:click_id}` | `{:source_id}` traffic source; `{:country_code}` country |
| [RollerAds](https://hoplytic.com/blog/rollerads-macros) | not published | — |
| [RichAds](https://hoplytic.com/blog/richads-macros) | `[CLICK_ID]` | — |
| [Galaksion](https://hoplytic.com/blog/galaksion-macros) | `[:click_id]` | `{zoneid}` zone |
| [PopAds](https://hoplytic.com/blog/popads-macros) | `[IMPRESSIONID]` | `[WEBSITEID]` website; `[CAMPAIGNID]` campaign ID |

## How to use macros

- Put the macros in your ad's destination URL or the platform's tracking-template field, as values of your own parameters: `?zone={zoneid}`.
- The platform replaces them on each click; your tracker stores the values with the click.
- 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.
- 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).
