Skip to main content
Optimizely → AppsFlyerIntegration guide

Connecting Optimizely to AppsFlyer

Optimizely deliberately shows different people different experiences, which means every conversion figure your ad platform reports is an average across variants it knows nothing about. 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 Optimizely variant assignment 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

Optimizely and AppsFlyer: variant on in-app events, never in SKAN

With Optimizely Feature Experimentation in your app, attach the variation key as a parameter on AppsFlyer in-app events from both the SDK and server-to-server API, bucketing on your own user ID. Keep one event name rather than one per variant, and freeze SKAdNetwork conversion value mapping during tests, since SKAN has no variant dimension.

AppsFlyer meets Optimizely when you run Feature Experimentation inside the app. The variation key returned by the decision should be attached as a parameter on the in-app events AppsFlyer receives, both from the SDK and from your server-to-server events API, so install cohorts can be read per variant. Bucket on your own user ID rather than appsflyer_id, so a user who reinstalls stays in the same variation.

Be careful with what the variant changes. If an onboarding or paywall test changes how quickly users reach the events your SKAdNetwork conversion value schema is built on, aggregate iOS results shift for all campaigns at once, and there is no variant dimension in SKAN to explain it. Freeze conversion value mapping changes during a test, and note the test start date wherever the media team reads SKAN results.

AppsFlyer forwards in-app events to ad networks. Do not create a separate event name per variant to make reporting easier, such as one purchase event for control and another for the treatment; networks will see them as different conversions and optimization will split. Keep one event name and carry the variant as a parameter.

Optimizely → AppsFlyer · what breaks

Why this join usually fails — Optimizely → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Optimizely

    Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants.

  2. 02

    An experiment silently confounding every campaign result

    A test that moves conversion rate by fifteen percent will move every campaign's measured performance by some fraction of that, and the media team will attribute it to bidding, creative or seasonality. Anything but the test.

  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.

Optimizely → AppsFlyer · the fix

What working looks like — Optimizely → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every assignment

  • 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

Optimizely → AppsFlyer · architecture

How Optimizely and AppsFlyer actually connect

  1. 1

    Optimizely holds the truth

    The variant is the missing dimension. Without it, a campaign's performance is confounded by an experiment nobody told the media team about, and both teams will draw confident, wrong conclusions.

  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 Optimizely variant assignment.

  4. 4

    The event source decides reliability

    Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.

  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.

Optimizely → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the assignment

  • Sent from your order system with variant attached

  • 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

    Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants.

  • Sent from the browser

    A test that moves conversion rate by fifteen percent will move every campaign's measured performance by some fraction of that, and the media team will attribute it to bidding, creative or seasonality. Anything but the test.

  • 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

Optimizely → AppsFlyer · diagnose

Diagnostic order — Optimizely → AppsFlyer

  1. 01

    Count assignments carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check for running experiments before diagnosing a performance change

    First question, not last. It costs one minute and explains a surprising share of unexplained movements.

  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.

Optimizely → AppsFlyer · prove

How it gets proven — Optimizely → AppsFlyer

Source of truth

Your order system, joined to the variant each customer was assigned.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live assignment.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Orders reconciled per variant against imported conversions over the full experiment window.

Optimizely → AppsFlyer · free audit

What we check in the free audit

  • Count assignments carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Check for running experiments before diagnosing a performance change
  • 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, joined to the variant each customer was assigned.

Get my free conversion tracking audit

Free30 minutesNo obligation

Optimizely → AppsFlyer · when not to buy

When you don't need this — Optimizely → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
  • 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.

Optimizely → AppsFlyer · what we deliver

What gets built — Optimizely → AppsFlyer

  • Identifier capture into Optimizely

    Capture the identifier before the experiment framework initializes, and pass the variant assignment as a dimension alongside it.

  • Event source: your order system with variant attached

    Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.

  • 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

    Refunds reverse and should retain the variant dimension.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, joined to the variant each customer was assigned.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Optimizely → AppsFlyer questions, answered

Attach the variation key as a parameter on in-app events from the SDK and server, and break down cohorts by that parameter.

Free · 30 min

Get Optimizely and AppsFlyer joined properly

Free30 minutesNo obligation