Skip to main content
Complianz → X AdsIntegration guide

Connecting Complianz to X Ads

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. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Complianz consent record before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Complianz and X Ads: consent banners in the in-app browser

X's in-app browser often loses the Complianz consent cookie, so consented X traffic runs below average. Hold twclid in a page variable at landing and write it to storage and the order only when Complianz's marketing event fires. Send server events from consented orders sharing a conversion ID with the pixel, and test inside X's in-app browser with caching on.

Most X traffic opens in X's in-app browser, where storage is short-lived, so the Complianz consent cookie often does not survive between visits. The visitor sees the banner again, many ignore it, and the X pixel stays blocked. Expect the consented share of X traffic to sit below your site average, and measure it by source rather than assuming the site-wide rate applies.

The twclid also arrives in the landing URL before any consent is given. If the visitor clicks through to a second page before accepting, the parameter is gone, and a pixel that unblocks later has nothing to attach. Read twclid on landing, keep it in a page variable, and write it to first-party storage and your order record only when the Complianz marketing event fires. Check whether Complianz knows the X pixel or whether you must add it to the marketing category yourself.

Server events to X should come from orders with marketing consent stored at checkout, sharing a conversion ID with the pixel. Because X volumes are small, a cache that serves an unblocked pixel to decliners can visibly move your numbers; test a declined visit through the X in-app browser with production caching on.

Complianz → X Ads · what breaks

Why this join usually fails — Complianz → X Ads

  1. 01

    The twclid click identifier 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

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Complianz → X Ads · the fix

What working looks like — Complianz → X Ads

  • The twclid click identifier on every consent record

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

Complianz → X Ads · architecture

How Complianz and X Ads 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

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, 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

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

Complianz → X Ads · normal or broken

Working vs. broken, side by side — Complianz → X Ads

Normal, not a fault

  • The twclid click identifier present on the consent record

  • Sent from your order system, gated on consent

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

Actually broken

  • The twclid click identifier 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

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

Complianz → X Ads · diagnose

Diagnostic order — Complianz → X Ads

  1. 01

    Count consent records carrying the twclid click identifier

  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

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Complianz → X Ads · prove

How it gets proven — Complianz → X Ads

Source of truth

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

  • The twclid click identifier confirmed present on a live consent record.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Consented conversions reconciled against imported figures, verified with production caching active.

Complianz → X Ads · free audit

What we check in the free audit

  • Count consent records carrying the twclid click identifier
  • Follow one real conversion end to end
  • Test consent behaviour with caching enabled, not disabled
  • Compare engagement rate against conversion rate by campaign
  • 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 → X Ads · when not to buy

When you don't need this — Complianz → X Ads

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the twclid click identifier.
  • Sites without full-page caching avoid the interaction, though the category classification still matters.
  • If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

Complianz → X Ads · what we deliver

What gets built — Complianz → X Ads

  • 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 X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • 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 → X Ads questions, answered

The in-app browser often discards cookies between sessions, so the stored consent is lost. That is a property of the browser, not a Complianz setting.

Free · 30 min

Get Complianz and X Ads joined properly

Free30 minutesNo obligation