Skip to main content
Yotpo → MixpanelIntegration guide

Connecting Yotpo to Mixpanel

Yotpo runs reviews, loyalty points and SMS off one customer record, and the loyalty half generates real redemptions — which means it is one of the few review platforms that genuinely touches revenue. 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 Yotpo loyalty redemption 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

Yotpo to Mixpanel: referral and reward flags on every purchase

Set the Mixpanel distinct_id to your store customer ID at login or checkout and use it on server-side orders. Capture the referral parameter on landing and put referral_code on Order Completed. Send loyalty events without revenue, keep revenue on purchases with the reward code, and use order ID or Yotpo activity ID as $insert_id.

Mixpanel can show Yotpo's loyalty program as a funnel: visitor joins, earns points, redeems, buys again. The distinct_id has to become your store customer ID once the customer logs in or checks out, set through identify in the browser SDK and used for server-side order events, so loyalty actions and purchases land on one profile instead of an email-keyed profile and a customer-ID-keyed one.

The referral flow needs its own handling. The first page view from a referral link is anonymous, and the referral parameter is the only thread. Capture it on landing on your own domain (check the exact parameter name with a test referral), keep it with the anonymous distinct_id, and put it on the "Order Completed" event as referral_code, with referrer_id if your Yotpo setup exposes it. A funnel from referral landing to first purchase then works without relying on anything inside Yotpo's widgets.

Send loyalty events, "Points Earned", "Reward Redeemed", "Points Reversed", without revenue, and keep revenue only on purchases, with the reward code as a property. Use the order ID as $insert_id for purchases and Yotpo's activity ID for loyalty events, so resyncs do not inflate a program metric someone will quote in a budget review.

Yotpo → Mixpanel · what breaks

Why this join usually fails — Yotpo → Mixpanel

  1. 01

    The distinct_id never reaches Yotpo

    Reviews and loyalty widgets render in Yotpo-served frames that do not share your page's storage, and referral links route through Yotpo before landing on your site.

  2. 02

    Retention revenue laundered into acquisition performance

    This is the specific failure mode of every combined reviews-and-loyalty platform. A referral code brings in an order, the order carries the referrer's original click identifier, and a paid campaign gets credit for revenue a retention program created.

  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.

Yotpo → Mixpanel · the fix

What working looks like — Yotpo → Mixpanel

  • The distinct_id on every redemption

  • Conversions arriving in Mixpanel

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

  • Reconciled against the source

Yotpo → Mixpanel · architecture

How Yotpo and Mixpanel actually connect

  1. 1

    Yotpo holds the truth

    The flag is what matters. A redeemed order is revenue that a retention program produced, and crediting it to the paid click that acquired the customer eighteen months ago overstates that campaign badly.

  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 Yotpo loyalty redemption.

  4. 4

    The event source decides reliability

    Send purchases with a channel attribute distinguishing first orders, loyalty-driven repeats and referral-driven orders. Three different economics, three different owners.

  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.

Yotpo → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the redemption

  • Sent from your order feed with Yotpo attributes attached

  • 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

    Reviews and loyalty widgets render in Yotpo-served frames that do not share your page's storage, and referral links route through Yotpo before landing on your site.

  • Sent from the browser

    This is the specific failure mode of every combined reviews-and-loyalty platform. A referral code brings in an order, the order carries the referrer's original click identifier, and a paid campaign gets credit for revenue a retention program created.

  • 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

Yotpo → Mixpanel · diagnose

Diagnostic order — Yotpo → Mixpanel

  1. 01

    Count redemptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count orders carrying a reward or referral code

    Then check whether any of them appear in your paid conversion figures. If they do, the acquisition numbers are inflated by exactly that amount.

  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.

Yotpo → Mixpanel · prove

How it gets proven — Yotpo → Mixpanel

Source of truth

Orders in your store, flagged by whether a Yotpo loyalty reward or referral code was applied.

  • The distinct_id confirmed present on a live redemption.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • First-time-buyer orders reconciled against imported conversions, with loyalty and referral orders excluded and reported separately.

Yotpo → Mixpanel · free audit

What we check in the free audit

  • Count redemptions carrying the distinct_id
  • Follow one real conversion end to end
  • Count orders carrying a reward or referral code
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Orders in your store, flagged by whether a Yotpo loyalty reward or referral code was applied.

Get my free conversion tracking audit

Free30 minutesNo obligation

Yotpo → Mixpanel · when not to buy

When you don't need this — Yotpo → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the distinct_id.
  • If you run Yotpo for reviews only and have no loyalty or referral program, this reduces to the Trustpilot case: keep reviews out of your conversion list and stop there.
  • 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.

Yotpo → Mixpanel · what we deliver

What gets built — Yotpo → Mixpanel

  • Identifier capture into Yotpo

    Capture the identifier on your own domain before any widget interaction, and record the reward or referral code on the order so acquisition and retention revenue can be told apart afterwards.

  • Event source: your order feed with Yotpo attributes attached

    Send purchases with a channel attribute distinguishing first orders, loyalty-driven repeats and referral-driven orders. Three different economics, three different owners.

  • 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 reduce the figure; reversed loyalty points do not.

Written guarantee

95%+ tracking accuracy

Measured against Orders in your store, flagged by whether a Yotpo loyalty reward or referral code was applied.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Yotpo → Mixpanel questions, answered

Capture the referral parameter on landing on your own domain, keep it with the anonymous distinct_id, and add it to the purchase event. Identify with the store customer ID at checkout so the journey and the order merge.

Free · 30 min

Get Yotpo and Mixpanel joined properly

Free30 minutesNo obligation