Connecting Friendbuy to Amplitude
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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Friendbuy referral before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Friendbuy in Amplitude: referred customers as a retention cohort
Set an acquisition-source user property on first order so Amplitude retention splits referral from paid. Record shares on the advocate and orders on the friend, with the advocate's user ID on the friend's first-order event. Send price net of the friend's discount, record the advocate reward separately, use the order ID as insert_id, and send refunds as negative revenue.
Amplitude is where a referral program can prove something the ad accounts cannot: whether referred customers stay longer and buy more often than paid ones. Set an acquisition-source user property on first order, with values for referral and for each paid channel, decided by the same precedence rule you apply to identifiers. Then the retention chart splits by that property and the referral program has a number of its own.
There are two users in every referral and both matter. The advocate shares; the friend lands on your store from a Friendbuy link with a new device ID and no history. Record the share on the advocate's user, record the friend's order on the friend's user, and put the advocate's user ID as a property on the friend's first-order event so the pair can be joined. Without it you can count referrals but not see which advocates produce customers who last.
On the purchase event, populate price and quantity net of the friend's discount, and record the advocate's reward as a separate event or property rather than subtracting it from the friend's revenue. Use the order ID as insert_id. Refunds should land as negative revenue on the friend's user, because a referral that refunds should also reclaim the reward.
Friendbuy → Amplitude · what breaks
Why this join usually fails — Friendbuy → Amplitude
- 01
The user ID and device ID pair 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
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Friendbuy → Amplitude · the fix
What working looks like — Friendbuy → Amplitude
The user ID and device ID pair on every referral
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
Friendbuy → Amplitude · architecture
How Friendbuy and Amplitude 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
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, 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
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Friendbuy → Amplitude · normal or broken
Working vs. broken, side by side — Friendbuy → Amplitude
Normal, not a fault
The user ID and device ID pair present on the referral
Sent from your order feed with referral attribution
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair 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
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
Friendbuy → Amplitude · diagnose
Diagnostic order — Friendbuy → Amplitude
- 01
Count referrals carrying the user ID and device ID pair
- 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 a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Friendbuy → Amplitude · prove
How it gets proven — Friendbuy → Amplitude
Source of truth
Orders flagged by whether a referral produced them, with both reward costs recorded.
- The user ID and device ID pair confirmed present on a live referral.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- Non-referral orders reconciled against imported conversions, with referral volume and reward cost reported separately.
Friendbuy → Amplitude · free audit
What we check in the free audit
- Count referrals carrying the user ID and device ID pair
- Follow one real conversion end to end
- Check precedence between referral and paid parameters
- Check a purchase event for the price and quantity fields specifically
- 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 → Amplitude · when not to buy
When you don't need this — Friendbuy → Amplitude
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the user ID and device ID pair.
- No referral programme means no conflict and this is an ordinary store integration.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Friendbuy → Amplitude · what we deliver
What gets built — Friendbuy → Amplitude
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 Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
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 → Amplitude questions, answered
Set an acquisition-source user property at first order, using one precedence rule between Friendbuy parameters and paid click identifiers, and split retention or revenue charts by it.
Add the advocate's user ID as a property on the friend's first-order event. They are separate users with separate device IDs.
Almost always because the user ID and device ID pair 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.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
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.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on Friendbuy → Amplitude
- Stripe → AmplitudeConnecting Stripe to Amplitude
- PayPal → AmplitudeConnecting PayPal to Amplitude
- Shopify → AmplitudeConnecting Shopify to Amplitude
RELATED GUIDES
Where Friendbuy → Amplitude fits in the rest of your tracking
- ReferralCandy → AmplitudeConnecting ReferralCandy to Amplitude
- Talkable → AmplitudeConnecting Talkable to Amplitude
- Extole → AmplitudeConnecting Extole to Amplitude
- Friendbuy → MatomoConnecting Friendbuy to Matomo
- Friendbuy → PostHogConnecting Friendbuy to PostHog
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
Free · 30 min
Get Friendbuy and Amplitude joined properly
Free30 minutesNo obligation
