Connecting Rebuy to AppsFlyer
Rebuy adds personalised upsells across the cart, checkout and post-purchase, which means the order value at checkout is frequently not the order value that settles. 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 Rebuy-influenced order 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
Rebuy upsell revenue in AppsFlyer for Shopify mobile apps
In a Shopify-based app, the AppsFlyer SDK logs af_purchase before a Rebuy post-purchase upsell exists. Put the appsflyer_id into a cart attribute at checkout, then after the post-purchase window send af_purchase server-to-server with the final total and Shopify order ID, stopping the SDK purchase. Send the upsell separately as a custom event if wanted.
AppsFlyer only belongs in this pair if you sell through a mobile app built on Shopify, where the in-app checkout is Shopify's own and Rebuy's offers may run inside it. In that setup the AppsFlyer SDK usually logs af_purchase when the app sees the order created, which is before a post-purchase upsell exists. Every ad network AppsFlyer forwards to then optimizes on the smaller figure.
Move the purchase to the server. Put the device's appsflyer_id into the cart as a cart attribute when the app starts checkout; Shopify carries cart attributes onto the order as note attributes. When the order has settled after the post-purchase window, send af_purchase server-to-server with the final total and the Shopify order ID, and stop logging the same purchase from the SDK, or AppsFlyer counts both. If you want the upsell visible on its own, send it as a separate custom event with its revenue, not as a second purchase.
Check whether Rebuy's post-purchase offers actually render in your app's checkout before doing any of this. If your app hands off to a browser for checkout, or you have no app, send web conversions to ad platforms directly and leave AppsFlyer to installs.
Rebuy → AppsFlyer · what breaks
Why this join usually fails — Rebuy → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches Rebuy
Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.
- 02
Upsell revenue missing from every conversion
Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.
- 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.
Rebuy → AppsFlyer · the fix
What working looks like — Rebuy → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every order
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
Rebuy → AppsFlyer · architecture
How Rebuy and AppsFlyer actually connect
- 1
Rebuy holds the truth
A post-purchase upsell creates additional revenue on the same order, seconds to minutes after the original conversion fired. If the conversion was sent at checkout, that revenue is missing from every report.
- 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 Rebuy-influenced order.
- 4
The event source decides reliability
Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
- 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.
Rebuy → AppsFlyer · normal or broken
Working vs. broken, side by side — Rebuy → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the order
Sent from the Shopify order webhook, after post-purchase
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
Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.
Sent from the browser
Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.
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
Rebuy → AppsFlyer · diagnose
Diagnostic order — Rebuy → AppsFlyer
- 01
Count orders carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Compare checkout-time order value against final settled order value
The gap is your upsell revenue, and it is the amount your conversion reporting is currently discarding.
- 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.
Rebuy → AppsFlyer · prove
How it gets proven — Rebuy → AppsFlyer
Source of truth
The final Shopify order total after any post-purchase upsell has been accepted.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live order.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- Settled order totals reconciled against imported conversions, with upsell contribution stated separately.
Rebuy → AppsFlyer · free audit
What we check in the free audit
- Count orders carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Compare checkout-time order value against final settled order value
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
The final Shopify order total after any post-purchase upsell has been accepted.
Free30 minutesNo obligation
Rebuy → AppsFlyer · when not to buy
When you don't need this — Rebuy → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
- If you run no post-purchase offers, checkout-time value is the final value and the timing question does not arise.
- 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.
Rebuy → AppsFlyer · what we deliver
What gets built — Rebuy → AppsFlyer
Identifier capture into Rebuy
Send the conversion from the order webhook after the post-purchase window closes, or send an adjustment when the upsell is accepted.
Event source: the Shopify order webhook, after post-purchase
Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
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, including refunded upsells specifically.
Written guarantee
95%+ tracking accuracy
Measured against The final Shopify order total after any post-purchase upsell has been accepted.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Rebuy → AppsFlyer questions, answered
The SDK logs the purchase at order creation, before the post-purchase upsell is added. Send the settled order total server-side instead.
Add the appsflyer_id as a cart attribute at checkout. Shopify copies it onto the order, where the webhook can read it.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Rebuy-influenced order. Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists. 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 Shopify order webhook, after post-purchase. Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
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 Rebuy → AppsFlyer
- Stripe → AppsFlyerConnecting Stripe to AppsFlyer
- PayPal → AppsFlyerConnecting PayPal to AppsFlyer
- Shopify → AppsFlyerConnecting Shopify to AppsFlyer
RELATED GUIDES
Where Rebuy → AppsFlyer fits in the rest of your tracking
- CartHook → AppsFlyerConnecting CartHook to AppsFlyer
- Checkout Champ → AppsFlyerConnecting Checkout Champ to AppsFlyer
- AfterSell → AppsFlyerConnecting AfterSell to AppsFlyer
- FashionConversion tracking for fashion brands, reported net of returns
- Zipify OCU → AppsFlyerConnecting Zipify OneClickUpsell to AppsFlyer
- Zipify OCU → BranchConnecting Zipify OneClickUpsell to Branch
- AfterSell → BranchConnecting AfterSell to Branch
- ReConvert → BranchConnecting ReConvert to Branch
Free · 30 min
Get Rebuy and AppsFlyer joined properly
Free30 minutesNo obligation
