Skip to main content
Cookiebot → AppsFlyerIntegration guide

Connecting Cookiebot to AppsFlyer

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

Cookiebot can break AppsFlyer's web-to-app links silently

Cookiebot may file AppsFlyer's Smart Script under marketing, so blocked visitors' download links lose their campaign and installs show as organic. Check the scan classification, decide with counsel whether it can run before consent, and keep a plain OneLink with static campaign parameters as the button default. Web declines do not carry into the app unless passed.

AppsFlyer on the web usually means Smart Script, which rewrites the app-download links on your landing page into OneLink URLs carrying the visitor's original media source. Cookiebot's scanner may file that script under marketing. When it is blocked for a visitor, the download button still works and the install still happens, but the link has lost the campaign, and AppsFlyer records the install as organic or under the wrong source.

Check the scan classification first, then decide with counsel whether Smart Script can run before consent where your legal position allows it. If it must wait, keep a plain OneLink with static campaign parameters as the button's default, so a blocked script degrades to channel-level attribution instead of none. Test by declining marketing in the banner and tapping the download link from a tagged ad URL on a phone.

AppsFlyer's web SDK for people-based attribution is a separate script and a separate classification decision. Neither replaces in-app consent: once the app is installed, the app's own prompt and the AppsFlyer SDK's settings govern device-level data, and a web decline is not carried into the app unless you pass it.

Cookiebot → AppsFlyer · what breaks

Why this join usually fails — Cookiebot → AppsFlyer

  1. 01

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

    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.

Cookiebot → AppsFlyer · the fix

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

Cookiebot → AppsFlyer · architecture

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

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

    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.

Cookiebot → AppsFlyer · normal or broken

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

Normal, not a fault

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

  • Sent from your order system, gated on consent

  • 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

    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

    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

Cookiebot → AppsFlyer · diagnose

Diagnostic order — Cookiebot → AppsFlyer

  1. 01

    Count consent records carrying the AppsFlyer device identifier, appsflyer_id

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

Cookiebot → AppsFlyer · prove

How it gets proven — Cookiebot → AppsFlyer

Source of truth

Your order system, with the visitor's consent categories recorded at the time of the event.

  • 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 script classifications verified against what they collect.

Cookiebot → 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
  • Read the scan results and check how each of your scripts was classified
  • Check what share of your revenue happens in the app at all
  • 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 → AppsFlyer · when not to buy

When you don't need this — Cookiebot → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you have no legal requirement for consent in your markets, adding automatic blocking will cost you data for no compliance benefit.
  • 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.

Cookiebot → AppsFlyer · what we deliver

What gets built — Cookiebot → AppsFlyer

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

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

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

Cookiebot is probably blocking Smart Script for visitors who decline marketing, so the download link loses its campaign parameters. Check the scan classification and add a static OneLink fallback.

Free · 30 min

Get Cookiebot and AppsFlyer joined properly

Free30 minutesNo obligation