Connecting RudderStack to AppsFlyer
RudderStack routes events from your applications to every downstream tool, which makes it the single point where a naming mistake propagates simultaneously to every ad platform you run. 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 RudderStack event 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
RudderStack to AppsFlyer: the device ID on server events
AppsFlyer's server-to-server API needs the appsflyer_id, so have the app read it from the AppsFlyer SDK and store it against the user for backend events sent through RudderStack. Pick one source per purchase, SDK or RudderStack, and enforce it with event filtering. Filter the destination to app sources or events with a device ID, keeping web orders out.
RudderStack's server-side sources know your user ID; AppsFlyer's server-to-server API needs appsflyer_id, which only exists inside the app where the AppsFlyer SDK generated it. If the app never hands that ID to your backend, a purchase sent through RudderStack from the server cannot be tied to an install. Have the app read the ID from the AppsFlyer SDK and store it against the user, then attach it to backend events; check RudderStack's AppsFlyer documentation for exactly where it expects the ID.
Decide which side sends in-app revenue. If the AppsFlyer SDK already logs purchases in the app and RudderStack also forwards server-side Order Completed to AppsFlyer, every purchase arrives twice, and AppsFlyer forwards both to the ad networks. Pick one source per event and enforce it with event filtering on the RudderStack destination.
Web purchases are the other trap. A RudderStack pipeline carries web and app events on one stream, and it is easy to route every Order Completed to AppsFlyer. Web orders have no device ID and land as organic or vanish. Filter the AppsFlyer destination to app sources or events carrying a device ID, and send web purchases to the ad platforms directly. For refunds, check whether AppsFlyer accepts negative revenue on your refund event.
RudderStack → AppsFlyer · what breaks
Why this join usually fails — RudderStack → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches RudderStack
Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application.
- 02
One schema change, every destination wrong at once
Centralization is the point and the risk. Rename an event property in one place and every ad platform, warehouse table and email tool receives the new shape on the same afternoon.
- 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.
RudderStack → AppsFlyer · the fix
What working looks like — RudderStack → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every event
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
RudderStack → AppsFlyer · architecture
How RudderStack and AppsFlyer actually connect
- 1
RudderStack holds the truth
The warehouse copy is what makes a pipeline like this auditable. You can ask what was actually sent, rather than inferring it from what each destination decided to display.
- 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 RudderStack event.
- 4
The event source decides reliability
Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
- 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.
RudderStack → AppsFlyer · normal or broken
Working vs. broken, side by side — RudderStack → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the event
Sent from the RudderStack server-side source
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 sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application.
Sent from the browser
Centralization is the point and the risk. Rename an event property in one place and every ad platform, warehouse table and email tool receives the new shape on the same afternoon.
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
RudderStack → AppsFlyer · diagnose
Diagnostic order — RudderStack → AppsFlyer
- 01
Count events carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Compare warehouse event counts against each destination's reported counts
Divergence localizes the fault immediately — to a transformation, to a filter, or to the destination's own deduplication.
- 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.
RudderStack → AppsFlyer · prove
How it gets proven — RudderStack → AppsFlyer
Source of truth
Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live event.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- Warehouse purchase counts reconciled against each destination's received count for a closed window.
RudderStack → AppsFlyer · free audit
What we check in the free audit
- Count events carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Compare warehouse event counts against each destination's reported counts
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.
Free30 minutesNo obligation
RudderStack → AppsFlyer · when not to buy
When you don't need this — RudderStack → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred events and count how many carry the AppsFlyer device identifier, appsflyer_id.
- If you have one website and one ad platform, a pipeline is infrastructure you will maintain for a benefit you do not yet have.
- 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.
RudderStack → AppsFlyer · what we deliver
What gets built — RudderStack → AppsFlyer
Identifier capture into RudderStack
Capture on the web source, persist against the user identity, and attach it to server-side events so a purchase recorded by your backend still knows which click preceded it.
Event source: the RudderStack server-side source
Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
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
Emit an explicit reversal event on refund and route it to every destination that accepted the original.
Written guarantee
95%+ tracking accuracy
Measured against Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
RudderStack → AppsFlyer questions, answered
Capture appsflyer_id in the app, store it against the user, and attach it to backend events routed to AppsFlyer. Without it the purchase cannot be attributed to an install.
The SDK and RudderStack are both sending the same purchase. Choose one source per event and filter the other out.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the RudderStack event. Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application. 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.
The RudderStack server-side source. Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
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 RudderStack → AppsFlyer
- RudderStack → Google AdsConnecting RudderStack to Google Ads
- RudderStack → MetaConnecting RudderStack to Meta Conversions API
- RudderStack → GA4Connecting RudderStack to GA4
RELATED GUIDES
Where RudderStack → AppsFlyer fits in the rest of your tracking
- mParticle → AppsFlyerConnecting mParticle to AppsFlyer
- Optimizely → AppsFlyerConnecting Optimizely to AppsFlyer
- Dynamic Yield → AppsFlyerConnecting Dynamic Yield to AppsFlyer
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- VWO → AppsFlyerConnecting VWO to AppsFlyer
- Tealium → AppsFlyerConnecting Tealium to AppsFlyer
Free · 30 min
Get RudderStack and AppsFlyer joined properly
Free30 minutesNo obligation
