Skip to main content
OneTrust → AppsFlyerIntegration guide

Connecting OneTrust to AppsFlyer

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. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the OneTrust consent record before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

OneTrust and AppsFlyer: in-app consent before the SDK starts

Gate AppsFlyer with in-app consent: initialize OneTrust's mobile SDK, wait for the user's choice, then start AppsFlyer or start it with user-level data restricted, passing DMA consent fields if supported. Never copy web consent into the app. Store in-app consent against the appsflyer_id and skip server-to-server purchases for declined devices. Sequence ATT and OneTrust prompts deliberately.

AppsFlyer's SDK starts measuring at app launch, and the consent that should gate it is collected in the app, not on your website. If you use OneTrust's mobile SDK, the order of operations is the whole integration: initialize OneTrust, wait for the user's choice, then start AppsFlyer, or start it with user-level data restricted. AppsFlyer documents ways to delay the SDK start and to pass consent for its DMA consent fields; check which your SDK version supports before wiring anything.

Web consent and app consent are separate records for the same person. A customer who accepted cookies on your site and then installs through a OneLink has not consented in the app, and a customer who declined on the web may accept in the app. Do not copy one into the other. If you also run AppsFlyer's web SDK for web-to-app attribution, that tag needs its own OneTrust category on the website.

Server-to-server events from your billing system need the same gate. Store the in-app consent state against the appsflyer_id you hold for the device and skip S2S purchases for devices whose user declined, or AppsFlyer forwards revenue to ad networks for people who said no. On iOS, ATT and your OneTrust prompt are two separate questions; decide their sequence deliberately with whoever owns the app rather than stacking both on first launch.

OneTrust → AppsFlyer · what breaks

Why this join usually fails — OneTrust → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id 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

    Web conversions sent to a mobile attribution platform

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  4. 04

    Nothing reconciles afterwards

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

OneTrust → AppsFlyer · the fix

What working looks like — OneTrust → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every consent record

  • Conversions arriving in AppsFlyer

    The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.

  • Reconciled against the source

OneTrust → AppsFlyer · architecture

How OneTrust and AppsFlyer 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

    AppsFlyer needs a click to match

    AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.

  3. 3

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_id, 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

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

OneTrust → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the consent record

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

  • Deduplicated correctly

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

  • Reconciles with the source

Actually broken

  • The AppsFlyer device identifier, appsflyer_id 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

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  • Nobody has reconciled it

OneTrust → AppsFlyer · diagnose

Diagnostic order — OneTrust → AppsFlyer

  1. 01

    Count consent records carrying the AppsFlyer device identifier, appsflyer_id

  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 what share of your revenue happens in the app at all

    If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.

  5. 05

    Read the match rate, not the success message

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

OneTrust → AppsFlyer · prove

How it gets proven — OneTrust → AppsFlyer

Source of truth

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

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live consent record.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Consented conversions reconciled against imported figures, with the consent rate stated explicitly in the report.

OneTrust → AppsFlyer · free audit

What we check in the free audit

  • Count consent records carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Correlate conversion drops against the consent change log first
  • Check what share of your revenue happens in the app at all
  • 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 → AppsFlyer · when not to buy

When you don't need this — OneTrust → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • 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 you have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.

OneTrust → AppsFlyer · what we deliver

What gets built — OneTrust → AppsFlyer

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

    The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.

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

Not if your policy requires opt-in for measurement in the regions you serve. Delay the SDK start until OneTrust returns a choice, and confirm in AppsFlyer's docs how a delayed start affects install attribution.

Free · 30 min

Get OneTrust and AppsFlyer joined properly

Free30 minutesNo obligation