Skip to main content
Complianz → TikTokIntegration guide

Connecting Complianz to TikTok Events API

Complianz is a WordPress consent plugin that blocks scripts by category automatically, which means a plugin update can change what fires on your site without anyone 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 Complianz consent record 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

Complianz and TikTok: the pixel is blocked, the ttclid is not

The ttclid arrives in the landing URL before consent, so put your capture script in Complianz's marketing category and persist ttclid only after consent. Use Complianz blocking or TikTok's holdConsent and grantConsent methods, not both. Send CompletePayment to the Events API only for consented orders, sharing the pixel's event_id, and test cached mobile pages.

Complianz can block the TikTok pixel under marketing, but the ttclid is in the landing URL before any consent choice and before the pixel runs. Whether your own capture script reads and stores it before consent is the TikTok-specific decision; if it does, you are storing an advertising identifier for visitors who may decline. Put the capture script in the same marketing category and persist the ttclid only after consent.

TikTok's pixel has its own consent methods (look up holdConsent and grantConsent in TikTok's pixel documentation) for setups that load the pixel early and release events once consent is given. If Complianz blocks the script outright you do not need them, but do not combine the two approaches. Server-side, store the Complianz state on the order and send CompletePayment to the Events API only for consented orders, with the same event_id the pixel used.

TikTok traffic is mobile and in-app, and the Complianz banner appears on a small screen to people who came for a product. Measure the marketing consent rate on TikTok-sourced sessions specifically before concluding the integration is broken; it is often lower than on desktop. Test the cached product page inside TikTok's webview too, because some caching plugins serve a separate mobile cache that desktop consent testing never touches.

Complianz → TikTok · what breaks

Why this join usually fails — Complianz → TikTok

  1. 01

    The ttclid never reaches Complianz

    Scripts are blocked before execution, and WordPress caching can serve a page with the wrong consent state entirely.

  2. 02

    Caching serving the wrong consent state

    A full-page cache does not know who is asking. A page cached for a consented visitor and served to one who declined runs scripts that should not have run, which is a compliance problem rather than a measurement one.

  3. 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.

  4. 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.

Complianz → TikTok · the fix

What working looks like — Complianz → 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

Complianz → TikTok · architecture

How Complianz and TikTok actually connect

  1. 1

    Complianz holds the truth

    Automatic script blocking on WordPress interacts with every other plugin. A caching plugin, a tag manager and a consent plugin all touching the same page produce ordering problems nobody planned.

  2. 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. 3

    The identifier is the bridge

    The ttclid, captured at the visit and carried into the Complianz consent record.

  4. 4

    The event source decides reliability

    Send consented conversions with the consent rate stated.

  5. 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.

Complianz → TikTok · normal or broken

Working vs. broken, side by side — Complianz → 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, and WordPress caching can serve a page with the wrong consent state entirely.

  • Sent from the browser

    A full-page cache does not know who is asking. A page cached for a consented visitor and served to one who declined runs scripts that should not have run, which is a compliance problem rather than a measurement one.

  • 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

Complianz → TikTok · diagnose

Diagnostic order — Complianz → TikTok

  1. 01

    Count consent records carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Test consent behaviour with caching enabled, not disabled

    Most consent testing is done with cache off, which is the one configuration that never runs in production.

  4. 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.

  5. 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.

Complianz → TikTok · prove

How it gets proven — Complianz → TikTok

Source of truth

Your order or CRM system, with consent state 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, verified with production caching active.

Complianz → TikTok · free audit

What we check in the free audit

  • Count consent records carrying the ttclid
  • Follow one real conversion end to end
  • Test consent behaviour with caching enabled, not disabled
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Your order or CRM system, with consent state recorded at the time of the event.

Get my free conversion tracking audit

Free30 minutesNo obligation

Complianz → TikTok · when not to buy

When you don't need this — Complianz → TikTok

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the ttclid.
  • Sites without full-page caching avoid the interaction, though the category classification still matters.
  • 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.

Complianz → TikTok · what we deliver

What gets built — Complianz → TikTok

  • Identifier capture into Complianz

    Verify which category your capture script sits in, and check that caching does not serve a consented page to a non-consented visitor.

  • Event source: your order system, gated on consent

    Send consented conversions with the consent rate stated.

  • 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

    Withdrawal stops future sends.

Written guarantee

95%+ tracking accuracy

Measured against Your order or CRM system, with consent state recorded at the time of the event.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Complianz → TikTok questions, answered

The pixel and ttclid capture only run after marketing consent, and in-app browser visitors decline or ignore the banner more often. Measure consent rate on TikTok traffic before blaming the Events API.

Free · 30 min

Get Complianz and TikTok joined properly

Free30 minutesNo obligation