Skip to main content
ReferralCandy → MixpanelIntegration guide

Connecting ReferralCandy to Mixpanel

ReferralCandy serves smaller stores where the referral programme is often the second-largest acquisition channel and is almost never measured against paid media properly. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the ReferralCandy referral before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

ReferralCandy to Mixpanel: referral link to purchase, one distinct_id

Capture the ReferralCandy referral parameter on landing as a super property and first-touch user property, and call identify at signup or checkout so the anonymous landing and purchase join. Send the purchase server-side with the distinct_id stored on the order and $insert_id from the order ID, reading the coupon from the order. Use Purchase with a referred property.

A referral link starts a funnel Mixpanel can show: link opened, landing, account or cart, purchase with the friend's coupon. The trap is identity. The friend usually lands anonymous on a device distinct_id, then signs up or checks out with an email; if that moment is not tied to the anonymous ID through Mixpanel's identify call, the referral landing and the purchase sit on two different people and the funnel reads zero.

Capture the referral parameter on landing as a super property and as a first-touch user property, alongside any paid click IDs on the same visit. That makes the referral-versus-paid conflict measurable inside Mixpanel: filter purchasers who carry both and see which arrived first.

Server-side, send the purchase from your store's order with the distinct_id stored on the order and an $insert_id from the order ID. Read the coupon code from the order rather than querying ReferralCandy, since the store has it at purchase time. If marketing names the event Referral Purchase while product uses Purchase with a referred property, settle on the second now; it gives you referral analysis without splitting every revenue report in two.

ReferralCandy → Mixpanel · what breaks

Why this join usually fails — ReferralCandy → Mixpanel

  1. 01

    The distinct_id 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

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

ReferralCandy → Mixpanel · the fix

What working looks like — ReferralCandy → Mixpanel

  • The distinct_id on every referral

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

ReferralCandy → Mixpanel · architecture

How ReferralCandy and Mixpanel 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

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, 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

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

ReferralCandy → Mixpanel · normal or broken

Working vs. broken, side by side — ReferralCandy → Mixpanel

Normal, not a fault

  • The distinct_id present on the referral

  • Sent from your order feed with referral attribution

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

Actually broken

  • The distinct_id 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

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

ReferralCandy → Mixpanel · diagnose

Diagnostic order — ReferralCandy → Mixpanel

  1. 01

    Count referrals carrying the distinct_id

  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

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

ReferralCandy → Mixpanel · prove

How it gets proven — ReferralCandy → Mixpanel

Source of truth

Store orders flagged by referral, net of both rewards.

  • The distinct_id confirmed present on a live referral.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Non-referral orders reconciled against imported conversions, with referral volume and reward cost stated.

ReferralCandy → Mixpanel · free audit

What we check in the free audit

  • Count referrals carrying the distinct_id
  • Follow one real conversion end to end
  • Count orders carrying both a referral and a paid parameter
  • List every event name in the project and look for near-duplicates
  • 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 → Mixpanel · when not to buy

When you don't need this — ReferralCandy → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the distinct_id.
  • No referral programme, no conflict.
  • If you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

ReferralCandy → Mixpanel · what we deliver

What gets built — ReferralCandy → Mixpanel

  • 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 Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event 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 → Mixpanel questions, answered

The anonymous landing and the identified purchase are on different distinct_ids. Call identify at signup or checkout so they merge.

Free · 30 min

Get ReferralCandy and Mixpanel joined properly

Free30 minutesNo obligation