Connecting SamCart to AppsFlyer
SamCart is a checkout platform built for conversion optimisation, which means order bumps and upsells are the point — and they complicate the value on every order. 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 SamCart 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
SamCart to AppsFlyer: only for buyers who already have the app
Web-only SamCart orders have no device identifier, so AppsFlyer has no role. When an app user taps an upgrade link to SamCart, put their app account ID on the checkout link, store it in a custom field, look up their AppsFlyer device ID on the webhook, and post the purchase server-side. Send refunds too, if accepted.
AppsFlyer measures app installs and what happens inside the app. A SamCart order placed in a desktop browser by someone who has never installed your app has no device identifier, and posting it to AppsFlyer's server-to-server API either fails or attaches revenue to nothing. If your product is a course or coaching program delivered on the web, AppsFlyer has no role, whatever the pitch about total revenue in one dashboard.
The pair is real when an existing app user buys on SamCart, for example by tapping an upgrade link inside your app that opens a SamCart checkout in the browser. The app knows the device, so put the user's app account ID on that checkout link, store it in a SamCart custom field, and when the order webhook fires, look up that user's AppsFlyer device ID in your backend and post the purchase server-side with revenue and currency. Make sure the SDK does not also log the purchase when the user returns to the app.
AppsFlyer forwards in-app revenue to the ad networks you have connected, so a SamCart refund that never reaches AppsFlyer keeps inflating ROAS downstream. Check whether your AppsFlyer setup accepts a refund or negative-revenue event and send it from the refund webhook. Web purchases by people without the app belong in your web ad platforms, not here.
SamCart → AppsFlyer · what breaks
Why this join usually fails — SamCart → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches SamCart
SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.
- 02
Upsells counted as separate acquisitions
A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.
- 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.
SamCart → AppsFlyer · the fix
What working looks like — SamCart → 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
SamCart → AppsFlyer · architecture
How SamCart and AppsFlyer actually connect
- 1
SamCart holds the truth
The headline product price is rarely what the customer paid. Order bumps and one-click upsells are the platform's core feature, so the order total and the product price routinely differ substantially.
- 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 SamCart order.
- 4
The event source decides reliability
Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.
- 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.
SamCart → AppsFlyer · normal or broken
Working vs. broken, side by side — SamCart → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the order
Sent from the SamCart 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
SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.
Sent from the browser
A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.
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
SamCart → AppsFlyer · diagnose
Diagnostic order — SamCart → AppsFlyer
- 01
Count orders carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Follow one purchase with upsells through to the conversions sent
If three orders produced three acquisition conversions, you have found the inflation.
- 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.
SamCart → AppsFlyer · prove
How it gets proven — SamCart → AppsFlyer
Source of truth
SamCart's order records for the same window, including bumps and upsells.
- 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.
- A purchase with two upsells confirmed to produce one acquisition conversion at the combined value.
SamCart → 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
- Follow one purchase with upsells through to the conversions sent
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
SamCart's order records for the same window, including bumps and upsells.
Free30 minutesNo obligation
SamCart → AppsFlyer · when not to buy
When you don't need this — SamCart → 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 a single product with no bumps or upsells, the standard checkout approach applies and none of this complexity is relevant.
- 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.
SamCart → AppsFlyer · what we deliver
What gets built — SamCart → AppsFlyer
Identifier capture into SamCart
Pass the identifier into the SamCart checkout URL and confirm it lands on the order, then decide how upsell orders relate to the parent purchase before sending anything.
Event source: the SamCart order webhook
Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.
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 are recorded and, on aggressive upsell funnels, refund rates are high enough that ignoring them materially overstates performance.
Written guarantee
95%+ tracking accuracy
Measured against SamCart's order records for the same window, including bumps and upsells.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
SamCart → AppsFlyer questions, answered
Only for buyers who already use your app, where you can look up their AppsFlyer device ID. A browser-only purchase has no device to attribute and will be dropped or misattributed.
If it is posted against an app user, AppsFlyer can forward it to connected networks, so send refunds as well or ROAS stays inflated downstream.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the SamCart order. SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition. 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 SamCart order webhook. Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.
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 SamCart → AppsFlyer
- SamCart → Google AdsConnecting SamCart to Google Ads
- SamCart → MetaConnecting SamCart to Meta Conversions API
- SamCart → GA4Connecting SamCart to GA4
RELATED GUIDES
Where SamCart → AppsFlyer fits in the rest of your tracking
- Thinkific → AppsFlyerConnecting Thinkific to AppsFlyer
- ClickFunnels → AppsFlyerConnecting ClickFunnels to AppsFlyer
- Circle → AppsFlyerConnecting Circle to AppsFlyer
- MembershipsConversion tracking for membership communities, past the first month
- Podia → AppsFlyerConnecting Podia to AppsFlyer
- Teachable → AppsFlyerConnecting Teachable to AppsFlyer
- Patreon → AppsFlyerConnecting Patreon to AppsFlyer
- MemberPress → AppsFlyerConnecting MemberPress to AppsFlyer
Free · 30 min
Get SamCart and AppsFlyer joined properly
Free30 minutesNo obligation
