Skip to main content
ReferralCandy → AmplitudeIntegration guide

Connecting ReferralCandy to Amplitude

ReferralCandy serves smaller stores where the referral programme is often the second-largest acquisition channel and is almost never measured against paid media properly. 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 ReferralCandy 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

ReferralCandy in Amplitude: referred customers as a cohort

Set an Amplitude user property at first purchase, referred true plus the referrer's customer ID, read from the friend's ReferralCandy code on the store order. Send the purchase server-side with the same user ID as the browser SDK and price net of the coupon. Record the referrer's reward as an event on their profile, then compare cohorts.

Amplitude is the right tool for a question ReferralCandy raises but cannot answer: do referred customers behave differently after the first order? Set a user property at first purchase, referred true plus the referrer's customer ID, then compare retention and repeat purchase for referred and paid-acquired cohorts over the same months. That comparison is what decides how large a reward a referral is worth.

The join is the order. Your store records which coupon code was used, and the friend's ReferralCandy code identifies the referral. Read it from the store order rather than from ReferralCandy after the fact, and send it on the server-side purchase event with the same user ID the browser SDK used. If the friend clicked the referral link on a phone and checked out signed in on a laptop, the user ID is the only thing joining the two.

Keep the reward economics on the right person. The friend's discount reduces revenue on their purchase event, so send price net of the coupon. The referrer's reward is a cost attached to the referrer: send a reward issued event on their profile, not the friend's. Put both on the friend and referred cohorts look worse than they are; leave both off and they look better.

ReferralCandy → Amplitude · what breaks

Why this join usually fails — ReferralCandy → Amplitude

  1. 01

    The user ID and device ID pair never reaches ReferralCandy

    Referral links land with their own parameters on a store that may already hold a paid identifier.

  2. 02

    Referral and paid competing for the same orders

    Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.

  3. 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.

  4. 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.

ReferralCandy → Amplitude · the fix

What working looks like — ReferralCandy → 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

ReferralCandy → Amplitude · architecture

How ReferralCandy and Amplitude actually connect

  1. 1

    ReferralCandy holds the truth

    At small-store scale the referral programme can rival paid acquisition in volume. Pooling them means neither channel's true cost per acquisition is knowable.

  2. 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. 3

    The identifier is the bridge

    The user ID and device ID pair, captured at the visit and carried into the ReferralCandy referral.

  4. 4

    The event source decides reliability

    Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.

  5. 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.

ReferralCandy → Amplitude · normal or broken

Working vs. broken, side by side — ReferralCandy → 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 land with their own parameters on a store that may already hold a paid identifier.

  • Sent from the browser

    Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.

  • 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

ReferralCandy → Amplitude · diagnose

Diagnostic order — ReferralCandy → Amplitude

  1. 01

    Count referrals carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Count orders carrying both a referral and a paid parameter

    It is usually a meaningful share, and every one of them is currently credited by luck.

  4. 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.

  5. 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.

ReferralCandy → Amplitude · prove

How it gets proven — ReferralCandy → Amplitude

Source of truth

Store orders flagged by referral, net of both rewards.

  • 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 stated.

ReferralCandy → 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
  • Count orders carrying both a referral and a paid parameter
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Store orders flagged by referral, net of both rewards.

Get my free conversion tracking audit

Free30 minutesNo obligation

ReferralCandy → Amplitude · when not to buy

When you don't need this — ReferralCandy → 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, no conflict.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

ReferralCandy → Amplitude · what we deliver

What gets built — ReferralCandy → Amplitude

  • Identifier capture into ReferralCandy

    Set precedence explicitly and record both identifiers on the order.

  • Event source: your order feed with referral attribution

    Send orders net of rewards, with referral orders marked and excluded from 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 reclaim rewards.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by referral, net of both rewards.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ReferralCandy → Amplitude questions, answered

Set a referred user property from the coupon code on the first order and build cohorts on it. Send it server-side with the same user ID as the browser.

Free · 30 min

Get ReferralCandy and Amplitude joined properly

Free30 minutesNo obligation