Skip to main content
Cookiebot → AmplitudeIntegration guide

Connecting Cookiebot to Amplitude

Cookiebot scans your site and blocks scripts automatically by category, which means it can stop a tag you rely on without anybody 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 Cookiebot consent state 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

Cookiebot and Amplitude: keep analytics consent and identity apart

Amplitude usually sits in Cookiebot's statistics category, so keep analytics for ad decliners but store ad click IDs only with marketing consent. Load the SDK opted out and call setOptOut(false) on Cookiebot's accept event to keep one device ID, send Cookiebot categories as user properties, and stop server-side sends after withdrawal.

Amplitude usually lands in Cookiebot's statistics category, not marketing, so it is the one destination in this list a visitor can permit while refusing all advertising. That split is useful: you keep behavioral analytics for people who said no to ads, as long as the Amplitude stream does not carry ad click identifiers for those same visitors. Store gclid or fbclid as a user property only when marketing was granted too.

The breakage is in the timing. Cookiebot's automatic blocking holds the Amplitude Browser SDK until consent, so anything the visitor did before accepting never reaches Amplitude, and the device ID is created after the session actually began. Funnels then show users appearing mid-journey. If you load Amplitude yourself instead of letting Cookiebot block it, start with tracking opted out and call setOptOut(false) on Cookiebot's accept event, which keeps one device ID across the decision.

Send consent itself to Amplitude as user properties, the Cookiebot categories as booleans, updated on every change. The consented population becomes a cohort you can size, and drops in event volume stop getting blamed on the last release. When a visitor withdraws statistics consent, stop server-side sends to Amplitude for that user ID as well; a browser opt-out your backend ignores is not an opt-out.

Cookiebot → Amplitude · what breaks

Why this join usually fails — Cookiebot → Amplitude

  1. 01

    The user ID and device ID pair never reaches Cookiebot

    Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.

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

  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.

Cookiebot → Amplitude · the fix

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

Cookiebot → Amplitude · architecture

How Cookiebot and Amplitude actually connect

  1. 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. 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 Cookiebot consent state.

  4. 4

    The event source decides reliability

    Send consented conversions, with the consent rate and the blocked-category mix reported alongside.

  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.

Cookiebot → Amplitude · normal or broken

Working vs. broken, side by side — Cookiebot → 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, 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

    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

Cookiebot → Amplitude · diagnose

Diagnostic order — Cookiebot → 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

    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.

  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.

Cookiebot → Amplitude · prove

How it gets proven — Cookiebot → Amplitude

Source of truth

Your order system, with the visitor's consent categories 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, with script classifications verified against what they collect.

Cookiebot → 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
  • Read the scan results and check how each of your scripts was classified
  • Check a purchase event for the price and quantity fields 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.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cookiebot → Amplitude · when not to buy

When you don't need this — Cookiebot → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the user ID and device ID pair.
  • If you have no legal requirement for consent in your markets, adding automatic blocking will cost you data for no compliance benefit.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Cookiebot → Amplitude · what we deliver

What gets built — Cookiebot → Amplitude

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

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cookiebot → Amplitude questions, answered

Statistics, if you use it only for product analytics. If you sync Amplitude cohorts to ad networks, that use is marketing and the classification should reflect it.

Free · 30 min

Get Cookiebot and Amplitude joined properly

Free30 minutesNo obligation