Connecting Cookiebot to TikTok Events API
Cookiebot scans your site and blocks scripts automatically by category, which means it can stop a tag you rely on without anybody deciding to. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Cookiebot consent state before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Cookiebot to TikTok: consent inside the in-app browser
TikTok clicks land in an in-app browser where Cookiebot accept rates run low, and the ttclid exists only in the landing URL, so hold it until Cookiebot's accept event fires. Send CompletePayment from your server only for orders with stored marketing consent, reusing the pixel's event_id, and never fall back to hashed contact data for declined visitors.
TikTok traffic opens in an in-app browser on a small screen, and a full Cookiebot banner there gets a different response than on desktop. Measure your marketing accept rate on TikTok sessions separately; it is often the lowest of any channel, and it caps what the TikTok pixel and the Events API can legitimately send.
Timing is the specific trap. The ttclid exists only in the landing page URL, and the _ttp cookie is not written until the TikTok pixel is allowed to run. If the visitor accepts the banner after tapping to a second page, both are gone. Either hold the landing URL's ttclid in memory and write it when Cookiebot's accept event fires, or accept that consent given after the first pageview produces conversions TikTok cannot match by click. Check whether the TikTok pixel's own consent controls are configured to wait for Cookiebot rather than firing before the banner resolves.
On the server side, send CompletePayment only for orders where the stored Cookiebot marketing consent was granted, with the same event_id the pixel used so TikTok deduplicates them. Because TikTok's fallback match is hashed email and phone, a declined visitor's order must not be sent with contact data just because the click ID is missing. Report the consented share next to TikTok's numbers so a low count is read as consent, not as a broken integration.
Cookiebot → TikTok · what breaks
Why this join usually fails — Cookiebot → TikTok
- 01
The ttclid never reaches Cookiebot
Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.
- 02
Automatic classification blocking the wrong script
The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.
- 03
The ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Cookiebot → TikTok · the fix
What working looks like — Cookiebot → TikTok
The ttclid on every consent record
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Cookiebot → TikTok · architecture
How Cookiebot and TikTok actually connect
- 1
Cookiebot holds the truth
Automatic blocking classifies scripts by scanning. A misclassified tag gets blocked for visitors who would have consented, and the loss is invisible because everything looks configured correctly.
- 2
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, captured at the visit and carried into the Cookiebot consent state.
- 4
The event source decides reliability
Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
- 5
Deduplication at the destination
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Cookiebot → TikTok · normal or broken
Working vs. broken, side by side — Cookiebot → TikTok
Normal, not a fault
The ttclid present on the consent record
Sent from your order system, gated on consent
Deduplicated correctly
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
Actually broken
The ttclid missing on most records
Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.
Sent from the browser
The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.
Counted twice, or not at all
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
Cookiebot → TikTok · diagnose
Diagnostic order — Cookiebot → TikTok
- 01
Count consent records carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Read the scan results and check how each of your scripts was classified
This takes ten minutes and it is the first thing to check when conversions drop after a CMP deployment.
- 04
Measure ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Cookiebot → TikTok · prove
How it gets proven — Cookiebot → TikTok
Source of truth
Your order system, with the visitor's consent categories recorded at the time of the event.
- The ttclid confirmed present on a live consent record.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Consented conversions reconciled against imported figures, with script classifications verified against what they collect.
Cookiebot → TikTok · free audit
What we check in the free audit
- Count consent records carrying the ttclid
- Follow one real conversion end to end
- Read the scan results and check how each of your scripts was classified
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
Your order system, with the visitor's consent categories recorded at the time of the event.
Free30 minutesNo obligation
Cookiebot → TikTok · when not to buy
When you don't need this — Cookiebot → TikTok
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the ttclid.
- If you have no legal requirement for consent in your markets, adding automatic blocking will cost you data for no compliance benefit.
- If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
Cookiebot → TikTok · what we deliver
What gets built — Cookiebot → TikTok
Identifier capture into Cookiebot
Verify which category your capture script is classified into, and keep capture in a category that matches what you actually collect.
Event source: your order system, gated on consent
Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
Dispatch to TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
Reversals where they exist
Consent withdrawal stops future sends.
Written guarantee
95%+ tracking accuracy
Measured against Your order system, with the visitor's consent categories recorded at the time of the event.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Cookiebot → TikTok questions, answered
TikTok in-app browser visitors often decline or dismiss the banner, and consent given after the first page loses the ttclid from the landing URL. Check the accept rate on TikTok sessions specifically.
Yes, it is advertising tracking. Make sure your server-side Events API calls follow the same consent state rather than firing for every order.
Almost always because the ttclid never reached the Cookiebot consent state. Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all. Measure coverage before debugging the dispatch.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
Your order system, gated on consent. Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on Cookiebot → TikTok
- TikTok · Lead → booked callHow to track lead to booked call for TikTok Ads
- TikTok · Booked call → closed wonHow to track booked call to closed won for TikTok Ads
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
RELATED GUIDES
Where Cookiebot → TikTok fits in the rest of your tracking
- TikTok · Healthcare clinicsTikTok Ads conversion tracking for healthcare clinics
- TikTok · Financial servicesTikTok Ads conversion tracking for financial services firms
- TikTok × CRM DealsHow to reconcile TikTok Ads against your CRM's closed-won deals
- TikTok · Checkout → purchaseHow to track checkout to purchase for TikTok Ads
- Complianz → TikTokConnecting Complianz to TikTok Events API
- Cookiebot → PinterestConnecting Cookiebot to Pinterest
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- Osano → TikTokConnecting Osano to TikTok Events API
Free · 30 min
Get Cookiebot and TikTok joined properly
Free30 minutesNo obligation
