Skip to main content
OneTrust → AmplitudeIntegration guide

Connecting OneTrust to Amplitude

OneTrust sits upstream of every tag on the site, which makes it the single system most able to change your conversion volume overnight without anybody touching a tag. 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 OneTrust 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

OneTrust consent and Amplitude: analytics on, ads off

Have Amplitude's Browser SDK read OnetrustActiveGroups on load and on consent change, switching its opt-out setting on when the analytics group is absent. Store analytics consent with each backend record and skip server-side sends when denied. Let earlier pages before a late accept stay missing, and record consent state as a user property so analysts can explain coverage gaps.

Amplitude is usually classified as analytics, the performance category in OneTrust's defaults, which means a visitor can opt out of targeting and still be measured in Amplitude, or opt out of analytics and drop out entirely. The Browser SDK should read OnetrustActiveGroups on load and on OneTrust's consent-change event, and switch Amplitude's opt-out setting on when the analytics group is absent, rather than relying only on blocking the script.

Server-side events to Amplitude need the consent state too. If your backend sends purchases or signups, store the analytics consent at the time of the event alongside the record and skip the send when it was denied. Otherwise users who opted out appear in Amplitude with server events and no browser activity, which looks like a tracking bug in every funnel and is in fact a privacy one.

Timing is the other issue. A visitor who declines analytics and accepts on a later page is only measured from that page onward; the earlier pages are missing and should stay missing. Record the consent state as an Amplitude user property so analysts can filter cohorts by it and explain why acquisition-source coverage sits below 100 percent instead of chasing it.

OneTrust → Amplitude · what breaks

Why this join usually fails — OneTrust → Amplitude

  1. 01

    The user ID and device ID pair never reaches OneTrust

    The identifier can only be captured after consent is given, so a visitor who consents on the second page has already lost the parameter from the first.

  2. 02

    A governance change that looks like broken tracking

    A privacy team tightens a banner on a Tuesday and a fifth of conversions disappear. The marketing team spends a week debugging tags that are working exactly as configured, because nobody connects the two systems.

  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.

OneTrust → Amplitude · the fix

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

OneTrust → Amplitude · architecture

How OneTrust and Amplitude actually connect

  1. 1

    OneTrust holds the truth

    Consent is not a tracking detail, it is the gate. A conversion from a visitor who declined cannot lawfully be sent to an ad platform, and the share who decline is the ceiling on everything you report.

  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 OneTrust consent record.

  4. 4

    The event source decides reliability

    Send only conversions where consent for advertising purposes was actually granted, and report the unconsented share as a stated number rather than a gap.

  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.

OneTrust → Amplitude · normal or broken

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

Normal, not a fault

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

  • Sent from your order system, gated on the consent record

  • 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

    The identifier can only be captured after consent is given, so a visitor who consents on the second page has already lost the parameter from the first.

  • Sent from the browser

    A privacy team tightens a banner on a Tuesday and a fifth of conversions disappear. The marketing team spends a week debugging tags that are working exactly as configured, because nobody connects the two systems.

  • 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

OneTrust → Amplitude · diagnose

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

    Correlate conversion drops against the consent change log first

    Before touching a tag. In governed environments this explains the drop more often than any technical fault does.

  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.

OneTrust → Amplitude · prove

How it gets proven — OneTrust → Amplitude

Source of truth

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

  • 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 the consent rate stated explicitly in the report.

OneTrust → 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
  • Correlate conversion drops against the consent change log first
  • 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 the consent state at the time of the event recorded alongside.

Get my free conversion tracking audit

Free30 minutesNo obligation

OneTrust → Amplitude · when not to buy

When you don't need this — OneTrust → 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 your consent rate is very low, improving the banner experience will do more for your reporting than any tracking build — and that is a design and legal conversation, not a tagging one.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

OneTrust → Amplitude · what we deliver

What gets built — OneTrust → Amplitude

  • Identifier capture into OneTrust

    Capture into a pending buffer on landing and only persist and dispatch once consent is recorded — never the reverse, and never 'capture now, ask later'.

  • Event source: your order system, gated on the consent record

    Send only conversions where consent for advertising purposes was actually granted, and report the unconsented share as a stated number rather than a gap.

  • Dispatch to Amplitude

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

  • Reversals where they exist

    Withdrawal of consent should stop future sends and, where the platform supports it, trigger a deletion request.

Written guarantee

95%+ tracking accuracy

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

OneTrust → Amplitude questions, answered

That depends on how your privacy team classifies it; most place it in analytics or performance rather than targeting. Wire Amplitude's opt-out to that OneTrust group and apply the same rule to server-side events.

Free · 30 min

Get OneTrust and Amplitude joined properly

Free30 minutesNo obligation