Skip to main content
Rebuy → MixpanelIntegration guide

Connecting Rebuy to Mixpanel

Rebuy adds personalised upsells across the cart, checkout and post-purchase, which means the order value at checkout is frequently not the order value that settles. 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 Rebuy-influenced order 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

Rebuy in Mixpanel: offer funnels and settled order value

Mixpanel can show the Rebuy offer funnel per customer. Track in-cart widgets from the browser on the shopper's distinct_id, add the post-purchase result server-side, and send the purchase with the settled order value after the post-purchase window and the upsell amount as a property. Pass the distinct_id into cart attributes so guest orders join their profile.

Mixpanel is useful for Rebuy because it can show the offer funnel per customer: recommendation shown, offer added to cart, post-purchase offer viewed, accepted or declined. Track the in-cart and on-site widgets from the browser on the shopper's distinct_id, then add the post-purchase result server-side, since your Mixpanel SDK generally cannot run on Shopify's post-purchase page.

The purchase event should carry the settled order value, sent once the post-purchase window closes, with the upsell amount as its own property. If you prefer sending at checkout and adding a second event for the upsell, give each a distinct $insert_id built from the order ID and edit, or a retried webhook doubles one of them and the offer looks more successful than it is.

The identity link breaks at checkout for guests. The storefront distinct_id is anonymous, and the server order event only knows the Shopify customer and email, so unless you identify on login or pass the distinct_id into cart attributes, the purchase lands on a new profile and every funnel from recommendation to order shows zero completion. Check one guest order in the live view before trusting the funnel.

Rebuy → Mixpanel · what breaks

Why this join usually fails — Rebuy → Mixpanel

  1. 01

    The distinct_id never reaches Rebuy

    Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.

  2. 02

    Upsell revenue missing from every conversion

    Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.

  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.

Rebuy → Mixpanel · the fix

What working looks like — Rebuy → Mixpanel

  • The distinct_id on every order

  • Conversions arriving in Mixpanel

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

  • Reconciled against the source

Rebuy → Mixpanel · architecture

How Rebuy and Mixpanel actually connect

  1. 1

    Rebuy holds the truth

    A post-purchase upsell creates additional revenue on the same order, seconds to minutes after the original conversion fired. If the conversion was sent at checkout, that revenue is missing from every report.

  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 Rebuy-influenced order.

  4. 4

    The event source decides reliability

    Send the settled order total including accepted upsells, with the upsell contribution recorded separately.

  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.

Rebuy → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Shopify order webhook, after post-purchase

  • 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

    Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.

  • Sent from the browser

    Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.

  • 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

Rebuy → Mixpanel · diagnose

Diagnostic order — Rebuy → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare checkout-time order value against final settled order value

    The gap is your upsell revenue, and it is the amount your conversion reporting is currently discarding.

  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.

Rebuy → Mixpanel · prove

How it gets proven — Rebuy → Mixpanel

Source of truth

The final Shopify order total after any post-purchase upsell has been accepted.

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Settled order totals reconciled against imported conversions, with upsell contribution stated separately.

Rebuy → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Compare checkout-time order value against final settled order value
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

The final Shopify order total after any post-purchase upsell has been accepted.

Get my free conversion tracking audit

Free30 minutesNo obligation

Rebuy → Mixpanel · when not to buy

When you don't need this — Rebuy → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If you run no post-purchase offers, checkout-time value is the final value and the timing question does not arise.
  • 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.

Rebuy → Mixpanel · what we deliver

What gets built — Rebuy → Mixpanel

  • Identifier capture into Rebuy

    Send the conversion from the order webhook after the post-purchase window closes, or send an adjustment when the upsell is accepted.

  • Event source: the Shopify order webhook, after post-purchase

    Send the settled order total including accepted upsells, with the upsell contribution recorded separately.

  • 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, including refunded upsells specifically.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total after any post-purchase upsell has been accepted.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Rebuy → Mixpanel questions, answered

Track widget impressions and adds from the storefront, and post-purchase acceptances server-side from the Shopify order update, using the same distinct_id on both.

Free · 30 min

Get Rebuy and Mixpanel joined properly

Free30 minutesNo obligation