Connecting CartHook to AppsFlyer
CartHook does post-purchase one-click upsells specifically, which means every pound it adds arrives after the order was created and after any checkout-time conversion already fired. 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 CartHook post-purchase 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
CartHook to AppsFlyer: upsell revenue happens on the web, not in-app
A CartHook upsell is web revenue with no appsflyer_id, so posting it to AppsFlyer's server-to-server API discards it or inflates organic. Only brands sending app users to the web checkout should build this: carry the device ID as a cart attribute, post the settled total once from the Shopify order webhook, and record the upsell portion as its own value.
AppsFlyer attributes app installs and in-app revenue to the device that installed. A CartHook upsell is charged on Shopify's web checkout, after payment, on the post-purchase page, which means the revenue it adds belongs to a web order with no appsflyer_id behind it. Posting it to the server-to-server events API without a device identifier either gets it discarded or lands it as unattributed revenue that inflates organic.
Where the pair can make sense is a brand with an app whose users are also sent to the web checkout, for example from an in-app link. Then the device identifier has to travel with the shopper into the cart, as a cart attribute set before checkout, so the Shopify order webhook can post the settled order against the right device. Check whether that checkout path actually shows CartHook's post-purchase offer before building this; many app checkouts do not.
If you do send web orders, send the settled total once and record the upsell portion as its own event value, so AppsFlyer cohorts do not count the order twice when the offer is accepted. An upsell-only refund should reduce revenue, not cancel the purchase. For a store without an app, there is no AppsFlyer integration to build here.
CartHook → AppsFlyer · what breaks
Why this join usually fails — CartHook → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches CartHook
The offer runs after order creation, so anything that fired at checkout has already gone.
- 02
Upsell revenue that no campaign ever gets credit for
If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.
- 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.
CartHook → AppsFlyer · the fix
What working looks like — CartHook → 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
CartHook → AppsFlyer · architecture
How CartHook and AppsFlyer actually connect
- 1
CartHook holds the truth
A one-click upsell charges the stored payment method and appends to the same order. The order total changes; the checkout total does not.
- 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 CartHook post-purchase order.
- 4
The event source decides reliability
Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.
- 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.
CartHook → AppsFlyer · normal or broken
Working vs. broken, side by side — CartHook → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the order
Sent from the Shopify order webhook
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
The offer runs after order creation, so anything that fired at checkout has already gone.
Sent from the browser
If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.
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
CartHook → AppsFlyer · diagnose
Diagnostic order — CartHook → AppsFlyer
- 01
Count orders carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Compare checkout total against final settled total
The gap is the revenue 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.
CartHook → AppsFlyer · prove
How it gets proven — CartHook → AppsFlyer
Source of truth
The final Shopify order total after the post-purchase sequence completes.
- 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 for a closed week.
CartHook → 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 total against final settled total
- 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 the post-purchase sequence completes.
Free30 minutesNo obligation
CartHook → AppsFlyer · when not to buy
When you don't need this — CartHook → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
- Stores without post-purchase offers can report checkout 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.
CartHook → AppsFlyer · what we deliver
What gets built — CartHook → AppsFlyer
Identifier capture into CartHook
Send the conversion from the order webhook once the post-purchase window closes, rather than at checkout.
Event source: the Shopify order webhook
Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.
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; an upsell-only refund should reduce rather than reverse the order.
Written guarantee
95%+ tracking accuracy
Measured against The final Shopify order total after the post-purchase sequence completes.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
CartHook → AppsFlyer questions, answered
Only orders tied to an app user's device identifier. Web orders without one cannot be attributed to an install.
Send one purchase event per order, after the post-purchase window closes, with the settled total, not a second purchase for the accepted offer.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the CartHook post-purchase order. The offer runs after order creation, so anything that fired at checkout has already gone. 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. Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.
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 CartHook → AppsFlyer
- Stripe → AppsFlyerConnecting Stripe to AppsFlyer
- PayPal → AppsFlyerConnecting PayPal to AppsFlyer
- Shopify → AppsFlyerConnecting Shopify to AppsFlyer
RELATED GUIDES
Where CartHook → AppsFlyer fits in the rest of your tracking
- AfterSell → AppsFlyerConnecting AfterSell to AppsFlyer
- ReConvert → AppsFlyerConnecting ReConvert to AppsFlyer
- Rebuy → AppsFlyerConnecting Rebuy to AppsFlyer
- BeautyConversion tracking for beauty brands, including the second order
- Zipify OCU → AppsFlyerConnecting Zipify OneClickUpsell to AppsFlyer
- ReConvert → BranchConnecting ReConvert to Branch
- Rebuy → BranchConnecting Rebuy to Branch
- Checkout Champ → BranchConnecting Checkout Champ to Branch
Free · 30 min
Get CartHook and AppsFlyer joined properly
Free30 minutesNo obligation
