Skip to main content
Complianz → AppsFlyerIntegration guide

Connecting Complianz to AppsFlyer

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

Complianz and AppsFlyer: web-to-app links under cookie consent

Complianz should classify AppsFlyer's Smart Script or web SDK, usually as marketing; OneLink URLs themselves are just links. Visitors who decline get links without campaign parameters, so their installs look organic, a consent effect, not a campaign failure. Give every button a working default href, and don't treat website consent as permission for the app.

AppsFlyer touches a WordPress site in two ways: OneLink links in buttons and banners that send visitors to the app stores, and, if you use it, AppsFlyer's Smart Script or web SDK reading campaign parameters from the landing URL to build those links. The links themselves are just URLs. The scripts that read the page and set identifiers are what Complianz has to classify, and marketing is the usual category.

The consequence is specific. If Complianz blocks the Smart Script until consent, opt-in visitors who decline get a generic app link without campaign parameters, and their installs show up as organic or credited to the wrong media source. That is the correct outcome for someone who declined, but report it as a consent effect, not a campaign failure. Check that every button still has a working default link when the script never runs; a button whose href is written only by the script is a dead button for everyone who said no.

Do not carry the website choice into the app. AppsFlyer's in-app attribution depends on the app's own consent handling, including Apple's tracking permission on iOS, and a yes on your cookie banner is not permission for the app to share a device ID. Keep the two records separate and let each govern its own data.

Complianz → AppsFlyer · what breaks

Why this join usually fails — Complianz → AppsFlyer

  1. 01

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

    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.

Complianz → AppsFlyer · the fix

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

Complianz → AppsFlyer · architecture

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

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

  4. 4

    The event source decides reliability

    Send consented conversions with the consent rate stated.

  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.

Complianz → AppsFlyer · normal or broken

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

    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

Complianz → AppsFlyer · diagnose

Diagnostic order — Complianz → AppsFlyer

  1. 01

    Count consent records carrying the AppsFlyer device identifier, appsflyer_id

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

Complianz → AppsFlyer · prove

How it gets proven — Complianz → AppsFlyer

Source of truth

Your order or CRM system, with consent state 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, verified with production caching active.

Complianz → 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
  • Test consent behaviour with caching enabled, not disabled
  • 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 consent state recorded at the time of the event.

Get my free conversion tracking audit

Free30 minutesNo obligation

Complianz → AppsFlyer · when not to buy

When you don't need this — Complianz → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • Sites without full-page caching avoid the interaction, though the category classification still matters.
  • 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.

Complianz → AppsFlyer · what we deliver

What gets built — Complianz → AppsFlyer

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

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

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

For opt-in visitors, typically yes, under marketing, since it reads campaign data and builds tracking links. Make sure buttons keep a working default app link when the script is blocked.

Free · 30 min

Get Complianz and AppsFlyer joined properly

Free30 minutesNo obligation