Skip to main content
Complianz → MixpanelIntegration guide

Connecting Complianz to Mixpanel

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. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Complianz consent record before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Complianz and Mixpanel: wire consent to opt-in, not page load

Don't let Complianz blocking and Mixpanel's own opt-in compete: load Mixpanel opted out by default and call its opt-in, and later opt-out, from Complianz's consent event. Server-side purchases must use the identified user's ID, carry the Complianz category status as a property, and set an $insert_id per order. Test declined visits with caching on.

Mixpanel's browser SDK has its own opt-in and opt-out methods, and Complianz has its own script blocking. Running both without connecting them is the usual mistake: Complianz unblocks the SDK, the SDK initializes with whatever default you set, and nobody is sure which one decides. Pick one control. The cleaner route is to load Mixpanel opted out by default and call its opt-in from Complianz's consent event, so a later withdrawal can call opt-out too.

That choice matters for the distinct_id. Before opt-in there is no anonymous ID, so the pre-consent part of the visit is lost and the first anonymous ID appears mid-session. Your server-side purchase event must use the identified user's ID, not a guess, or Mixpanel files the order on a new profile and the signup funnel splits in two.

Add the Complianz category status as a property on the server event and set an $insert_id per order, so a retry after a consent check does not create a second purchase. Then run a declined visit with production caching on and watch the live view: any event from that session means a cached page ran the SDK for someone who said no.

Complianz → Mixpanel · what breaks

Why this join usually fails — Complianz → Mixpanel

  1. 01

    The distinct_id 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

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Complianz → Mixpanel · the fix

What working looks like — Complianz → Mixpanel

  • The distinct_id on every consent record

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

Complianz → Mixpanel · architecture

How Complianz and Mixpanel 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

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, 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

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Complianz → Mixpanel · normal or broken

Working vs. broken, side by side — Complianz → Mixpanel

Normal, not a fault

  • The distinct_id present on the consent record

  • Sent from your order system, gated on consent

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

Actually broken

  • The distinct_id 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

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

Complianz → Mixpanel · diagnose

Diagnostic order — Complianz → Mixpanel

  1. 01

    Count consent records carrying the distinct_id

  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

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Complianz → Mixpanel · prove

How it gets proven — Complianz → Mixpanel

Source of truth

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

  • The distinct_id confirmed present on a live consent record.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Consented conversions reconciled against imported figures, verified with production caching active.

Complianz → Mixpanel · free audit

What we check in the free audit

  • Count consent records carrying the distinct_id
  • Follow one real conversion end to end
  • Test consent behaviour with caching enabled, not disabled
  • List every event name in the project and look for near-duplicates
  • 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 → Mixpanel · when not to buy

When you don't need this — Complianz → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the distinct_id.
  • Sites without full-page caching avoid the interaction, though the category classification still matters.
  • If you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Complianz → Mixpanel · what we deliver

What gets built — Complianz → Mixpanel

  • 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 Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

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

Not on its own. You connect them by calling Mixpanel's opt-in or opt-out from Complianz's consent events with a small custom script; confirm the event names in your Complianz version.

Free · 30 min

Get Complianz and Mixpanel joined properly

Free30 minutesNo obligation