Skip to main content
Complianz → AmplitudeIntegration guide

Connecting Complianz to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Complianz consent record before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Complianz and Amplitude: consent state as a cohort property

Check that Complianz files the Amplitude browser SDK under statistics, not marketing, so product analytics can survive ad-consent refusals. Pre-consent views are lost, so server-side purchases must carry the SDK's user ID and be sent only when the order's stored statistics status was granted. Add consent status as a user property, and test with caching on.

Amplitude is usually filed under statistics while ad pixels sit under marketing, so a Complianz visitor can allow one and refuse the other. That split is useful: product analytics can keep running on visitors who declined advertising. It also means you need to check where Complianz actually puts the Amplitude browser SDK, because if it lands in marketing your behavioral data shrinks to the ad-consent rate for no reason.

The identity problem is timing. While the SDK is blocked, no device ID exists, so pre-consent page views are simply gone and the first device ID is created on the page where consent is given. A server-side purchase from your order system then has to carry the same user ID the SDK set after login, or Amplitude creates a second person with no browsing history. Store the Complianz statistics status on the order and send the server event only when it was granted.

Add the consent status as a user property so cohorts can be split by it. Without that, retention curves mix two populations with different visibility, and the declined group looks like it churns because you stopped seeing it. Test with your caching plugin active: a cached page with the SDK already unblocked creates device IDs for visitors who never agreed.

Complianz → Amplitude · what breaks

Why this join usually fails — Complianz → Amplitude

  1. 01

    The user ID and device ID pair 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

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Complianz → Amplitude · the fix

What working looks like — Complianz → Amplitude

  • The user ID and device ID pair on every consent record

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Complianz → Amplitude · architecture

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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Complianz → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair present on the consent record

  • Sent from your order system, gated on consent

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Complianz → Amplitude · diagnose

Diagnostic order — Complianz → Amplitude

  1. 01

    Count consent records carrying the user ID and device ID pair

  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

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Complianz → Amplitude · prove

How it gets proven — Complianz → Amplitude

Source of truth

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

  • The user ID and device ID pair confirmed present on a live consent record.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Consented conversions reconciled against imported figures, verified with production caching active.

Complianz → Amplitude · free audit

What we check in the free audit

  • Count consent records carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Test consent behaviour with caching enabled, not disabled
  • Check a purchase event for the price and quantity fields 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 → Amplitude · when not to buy

When you don't need this — Complianz → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the user ID and device ID pair.
  • Sites without full-page caching avoid the interaction, though the category classification still matters.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Complianz → Amplitude · what we deliver

What gets built — Complianz → Amplitude

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

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and 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 → Amplitude questions, answered

Usually statistics, unless you forward Amplitude data to ad platforms or build ad audiences from it, in which case marketing is the defensible choice. Confirm with whoever owns your privacy policy.

Free · 30 min

Get Complianz and Amplitude joined properly

Free30 minutesNo obligation