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
- 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.
- 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.
- 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.
- 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
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
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
The identifier is the bridge
The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the Optimizely variant assignment.
- 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
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
- 01
Count assignments carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 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.
- 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.
- 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.
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.
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.
Yes. A test that changes how fast users reach events in your conversion value schema shifts aggregate iOS results with no variant visible in SKAN.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Optimizely variant assignment. 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. Measure coverage before debugging the dispatch.
AppsFlyer assigns its own device ID and matches installs to clicks through referrer data on Android and Apple's frameworks on iOS. There is no durable cross-device identifier. On iOS without ATT consent, attribution falls back to SKAdNetwork, which returns aggregated conversion values on a delay with no user-level detail at all — so a share of your installs will be attributable only in aggregate, permanently.
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.
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.
More on Optimizely → AppsFlyer
- Optimizely → Google AdsConnecting Optimizely to Google Ads
- Optimizely → MetaConnecting Optimizely to Meta Conversions API
- Optimizely → GA4Connecting Optimizely to GA4
RELATED GUIDES
Where Optimizely → AppsFlyer fits in the rest of your tracking
- Tealium → AppsFlyerConnecting Tealium to AppsFlyer
- VWO → AppsFlyerConnecting VWO to AppsFlyer
- Dynamic Yield → AppsFlyerConnecting Dynamic Yield to AppsFlyer
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- mParticle → AppsFlyerConnecting mParticle to AppsFlyer
- RudderStack → AppsFlyerConnecting RudderStack to AppsFlyer
Free · 30 min
Get Optimizely and AppsFlyer joined properly
Free30 minutesNo obligation
