Connecting Friendbuy to AppsFlyer
Friendbuy runs customer-to-customer referral, which means the acquisition was produced by an existing customer and paid for with a reward on both sides. 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 Friendbuy referral 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
Friendbuy referral installs in AppsFlyer, not lost as organic
Friendbuy referral installs show up in AppsFlyer as organic or paid unless share links pass through an AppsFlyer link carrying a referral media source and code. Confirm redirect order with both vendors. Then send referred purchases server-side with the AppsFlyer device ID, revenue net of the friend's discount and a referral flag, excluded from partner postbacks where possible.
AppsFlyer and Friendbuy collide at the install. If Friendbuy share links point at a web page, a friend who then installs the app arrives in AppsFlyer as organic, or worse, is credited to a paid network by whatever click or view it can match. Your referral program produced the customer and AppsFlyer reports it as something else.
The fix is to make the share link something AppsFlyer recognizes. AppsFlyer has its own link and user-invite tooling for app referrals; check whether Friendbuy's share URLs can be wrapped in or redirected through an AppsFlyer link that carries a referral media source and the referral code. Then the install is attributed to referral, and the code can be read on first open so the app can credit the advocate. Confirm with both vendors before building, because the ordering of redirects is easy to get wrong.
Once referral installs are attributed, send referred purchases from your server to AppsFlyer with the AppsFlyer device ID, revenue net of the friend's discount, and a flag marking them as referral. Remember AppsFlyer forwards in-app events to the ad networks you connect, and a referral purchase forwarded as an ordinary purchase gives those networks a conversion they did not earn. Exclude referral-flagged events from partner postbacks where you can.
Friendbuy → AppsFlyer · what breaks
Why this join usually fails — Friendbuy → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches Friendbuy
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
- 02
Word of mouth billed to the ad account
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
- 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.
Friendbuy → AppsFlyer · the fix
What working looks like — Friendbuy → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every referral
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
Friendbuy → AppsFlyer · architecture
How Friendbuy and AppsFlyer actually connect
- 1
Friendbuy holds the truth
A double-sided referral costs you two discounts to acquire one customer. That is a real and known acquisition cost, and it sits nowhere near the ad account that will otherwise claim the sale.
- 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 Friendbuy referral.
- 4
The event source decides reliability
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
- 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.
Friendbuy → AppsFlyer · normal or broken
Working vs. broken, side by side — Friendbuy → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the referral
Sent from your order feed with referral attribution
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
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
Sent from the browser
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
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
Friendbuy → AppsFlyer · diagnose
Diagnostic order — Friendbuy → AppsFlyer
- 01
Count referrals carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Check precedence between referral and paid parameters
Whichever wins decides who gets credit, and almost nobody has decided it deliberately.
- 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.
Friendbuy → AppsFlyer · prove
How it gets proven — Friendbuy → AppsFlyer
Source of truth
Orders flagged by whether a referral produced them, with both reward costs recorded.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live referral.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- Non-referral orders reconciled against imported conversions, with referral volume and reward cost reported separately.
Friendbuy → AppsFlyer · free audit
What we check in the free audit
- Count referrals carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Check precedence between referral and paid parameters
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
Orders flagged by whether a referral produced them, with both reward costs recorded.
Free30 minutesNo obligation
Friendbuy → AppsFlyer · when not to buy
When you don't need this — Friendbuy → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the AppsFlyer device identifier, appsflyer_id.
- No referral programme means no conflict and this is an ordinary store integration.
- 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.
Friendbuy → AppsFlyer · what we deliver
What gets built — Friendbuy → AppsFlyer
Identifier capture into Friendbuy
Apply an explicit precedence rule between referral and paid parameters and record both on the order.
Event source: your order feed with referral attribution
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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 reclaim rewards.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by whether a referral produced them, with both reward costs recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Friendbuy → AppsFlyer questions, answered
The referral link opened a web page and nothing carried the referral context through the install. Route share links through an AppsFlyer link that sets a referral media source.
Preferably not as ordinary purchases. They were produced by the referral program, and forwarding them lets networks claim them.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the Friendbuy referral. Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier. 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 feed with referral attribution. Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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 Friendbuy → AppsFlyer
- Stripe → AppsFlyerConnecting Stripe to AppsFlyer
- PayPal → AppsFlyerConnecting PayPal to AppsFlyer
- Shopify → AppsFlyerConnecting Shopify to AppsFlyer
RELATED GUIDES
Where Friendbuy → AppsFlyer fits in the rest of your tracking
- Talkable → AppsFlyerConnecting Talkable to AppsFlyer
- Extole → AppsFlyerConnecting Extole to AppsFlyer
- ReferralCandy → AppsFlyerConnecting ReferralCandy to AppsFlyer
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
- Extole → BranchConnecting Extole to Branch
- Talkable → BranchConnecting Talkable to Branch
- ReferralCandy → BranchConnecting ReferralCandy to Branch
Free · 30 min
Get Friendbuy and AppsFlyer joined properly
Free30 minutesNo obligation
