Reviewed and updated August 29, 2026 by the binom.courses editorial team · how we test
TikTok tracking has one trap that catches almost everyone, and it does not produce an error — it produces reports that look fine and describe the wrong thing.
__AID__ returns the ad group ID, not the ad ID.
__CID__ returns the creative ID, not the campaign ID.
The campaign ID is __CAMPAIGN_ID__. The ad-level ID is
__ADID_V2__, and only on upgraded Smart+ campaigns.
If you mapped __CID__ into a column called “campaign”
— which is the obvious reading — every campaign-level report you have
is actually creative-level, and the two will never reconcile with TikTok's own
dashboard.
The full macro set
| Macro | What it returns |
|---|---|
| __CAMPAIGN_ID__ | Campaign ID |
| __CAMPAIGN_NAME__ | Campaign name |
| __AID__ | Ad group ID - not the ad ID, despite the name |
| __AID_NAME__ | Ad group name |
| __CID__ | Creative ID - not the campaign ID, despite the name |
| __CID_NAME__ | Creative name |
| __ADID_V2__ | Ad-level ID, Smart+ campaigns only |
| __PLACEMENT__ | Where the ad was displayed |
Double underscores at both ends, uppercase. Again, a different syntax from every other platform in this silo.
ttclid: capture it, do not add it
TikTok automatically appends ttclid to your landing page URL on
every click. This is important and frequently mishandled:
- Do not add
ttclidto your tracking template manually. Doing so overwrites or conflicts with the value TikTok appends, and breaks what the pixel and Events API read. - Do capture it on the landing page and store it alongside your tracker's own click ID, so the server-side conversion can carry it.
- It persists for roughly 30 days, which sets a practical ceiling on server-side attribution regardless of your tracker's window.
- Your tracker must pass it through the redirect rather than stripping unknown parameters.
Verify the macro mapping with one real click before you spend anything. Click your own ad, open the click row, and compare the value in your 'campaign' column against the campaign ID shown in TikTok Ads Manager. If they do not match, you have the __CID__ trap, and every report you have built is mislabelled.
Events API and deduplication
Same structure as Meta's, same failure mode. TikTok's Events API expects
ttclid and an event ID. If your pixel fires a Purchase and your
server fires the same Purchase without a shared event ID, TikTok counts two and
its optimiser learns an inflated conversion rate.
Generate one event ID per conversion
Any stable unique value — an order ID works well because it is naturally unique and already exists.
Send it with both the pixel event and the Events API event
Along with ttclid on the server-side event so TikTok can attribute it to a click.
Fire one real test conversion
Check TikTok Events Manager and confirm exactly one event, marked deduplicated.
Re-check after any funnel change
A new thank-you page, a new checkout flow or a changed order ID format can break deduplication silently.
What TikTok traffic does to your reports
Two behaviours worth planning for:
Creative fatigue is unusually fast
TikTok creatives decay in days rather than weeks. Your reporting needs to be granular enough at creative level to spot the decline early - which requires __CID__ mapped correctly, hence the trap mattering.
In-app browser behaviour
A large share of TikTok clicks open in TikTok's in-app browser, which behaves differently from Chrome or Safari on cookies, redirects and page performance. Segment by browser in your reports; results frequently differ sharply.
Placement values are coarse
__PLACEMENT__ gives you less granularity than native platforms' site IDs. There is less placement-level optimisation available, which shifts the weight of your optimisation onto creative.
Event volume sits between social and native
Roughly 2,000-10,000 billable events per $100 of spend - comfortable on entry-tier metered plans unless you are spending heavily.
Setup checklist
- Tracking template with
__CAMPAIGN_ID__,__AID__,__CID__and__PLACEMENT__, each mapped into a correctly named column. - Column names verified against TikTok Ads Manager with one real click.
ttclidnot in your template, but captured on the landing page.- Tracker configured to pass unknown parameters through the redirect.
- Network postback firing into your tracker.
- Events API configured with
ttclidand a shared event ID. - One test conversion producing exactly one deduplicated event.
- Reports segmented by browser, to separate in-app from external.
If you also run Meta, note that the two platforms' conversion APIs solve the same problem with different field names and different click identifiers — which is precisely why some buyers pay for a tracker that packages both. See Binom vs RedTrack for what that convenience is worth in practice.