# TikTok Ads macros: the full list for tracking

> Every TikTok Ads tracking macro: click ID, campaign and placement tokens, an example tracking link, and how to send conversions back. Checked November 2026.

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

TikTok Ads fills in macros on every click, so your tracker knows which campaign, ad group and ad it came from. Here is the full list we use, where it comes from, and how to set it up.

**Short answer:** TikTok Ads adds its own click ID (`ttclid`) to every ad click by itself. For campaign and ad details, add macros to the URL: `__CAMPAIGN_ID__` (campaign ID), `__CID__` (ad ID).

## TikTok Ads macros

| Parameter on your link | TikTok Ads macro | Filled with |
| --- | --- | --- |
| `campaign` | `__CAMPAIGN_ID__` | Campaign ID |
| `ad` | `__CID__` | Ad ID |

The parameter names on the left are your choice; the macros on the right must be copied exactly, brackets included.

## The automatic click ID

TikTok Ads appends `ttclid` to the landing URL on its own. You don't add a macro for it: your tracker reads it from the URL and stores it with the click. Keep it intact: link shorteners or redirects that drop query strings will lose it.

## Example tracking link

`https://go.yoursite.com/vpn-offer?campaign=__CAMPAIGN_ID__&ad=__CID__`

TikTok Ads replaces each macro when someone clicks. Your tracker stores the values, creates its own click ID, and passes it to the affiliate network's sub-ID so the sale can be matched back to this exact ad.

## Sending conversions back to TikTok Ads

TikTok Ads learns which clicks bought through the Events API with the ttclid.

## Where this list comes from

Checked against TikTok Ads' own documentation () in November 2026. Platforms rename macros now and then: if a value arrives empty or literal, check TikTok Ads' current list.

## On Hoplytic

Pick **TikTok Ads** in the link maker and these macros are added for you, and `ttclid` is stored automatically. Reports can then group by any of them, for example campaign → ad → country, with cost, profit and ROAS. See [every ad platform's macros](https://hoplytic.com/blog/ad-platform-macros) or the guide to [sub-ID tracking](https://hoplytic.com/blog/sub-id-tracking).

## Questions people ask

### What is the TikTok Ads click ID?

TikTok Ads adds ttclid to the landing URL by itself. A tracker stores it with the click so the sale can be reported back to TikTok Ads later.

### Why does my tracker show __CAMPAIGN_ID__ literally instead of a value?

The ad platform didn't fill it in. Usually the macro is misspelled, uses the wrong brackets, or the ad was created before the parameter was added. Copy the macro exactly as TikTok Ads writes it and check a live click.
