Skip to main content
SamCart → MixpanelIntegration guide

Connecting SamCart to Mixpanel

SamCart is a checkout platform built for conversion optimisation, which means order bumps and upsells are the point — and they complicate the value on every order. 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 SamCart 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

SamCart to Mixpanel: carry distinct_id across the hosted checkout

Append the Mixpanel distinct_id to the SamCart checkout link, store it on the order, and send the purchase server-side from the webhook on that ID, calling identify before checkout. Model Checkout Viewed through Upsell Accepted and Declined, with funnel and offer properties, $insert_id from the SamCart order ID, and refunds and cancellations on the same profile.

In Mixpanel a funnel from ad click to purchase only works if the purchase lands on the same distinct_id as the sales page visit, and SamCart puts a domain hop between them. Append the distinct_id to the SamCart checkout link from your page's script, store it on the order, and send the purchase server-side from the SamCart webhook with that value. If you identify people by your own ID, call identify before the click to checkout, not after, so the merge has something to merge.

Model the funnel the way SamCart runs it: Checkout Viewed, Order Completed, Bump Accepted, Upsell Viewed, Upsell Accepted, Upsell Declined. SamCart's upsell pages are part of its hosted flow; check whether you can fire events on them or only receive the resulting orders, and if only the latter, derive upsell acceptance from the orders. Put the funnel name and offer on every event as properties so different SamCart products do not merge into one funnel.

Use $insert_id from SamCart's order ID. Upsell funnels produce several orders within minutes, and a retried webhook among them is easy to miss in a report and easy to mistake for a strong upsell. Send refunds and subscription cancellations as events on the same profile so retention can be split by whether the bump was taken.

SamCart → Mixpanel · what breaks

Why this join usually fails — SamCart → Mixpanel

  1. 01

    The distinct_id never reaches SamCart

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  2. 02

    Upsells counted as separate acquisitions

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  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.

SamCart → Mixpanel · the fix

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

SamCart → Mixpanel · architecture

How SamCart and Mixpanel actually connect

  1. 1

    SamCart holds the truth

    The headline product price is rarely what the customer paid. Order bumps and one-click upsells are the platform's core feature, so the order total and the product price routinely differ substantially.

  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 SamCart order.

  4. 4

    The event source decides reliability

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  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.

SamCart → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the SamCart order webhook

  • 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

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  • Sent from the browser

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  • 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

SamCart → Mixpanel · diagnose

Diagnostic order — SamCart → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Follow one purchase with upsells through to the conversions sent

    If three orders produced three acquisition conversions, you have found the inflation.

  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.

SamCart → Mixpanel · prove

How it gets proven — SamCart → Mixpanel

Source of truth

SamCart's order records for the same window, including bumps and upsells.

  • 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.
  • A purchase with two upsells confirmed to produce one acquisition conversion at the combined value.

SamCart → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Follow one purchase with upsells through to the conversions sent
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

SamCart's order records for the same window, including bumps and upsells.

Get my free conversion tracking audit

Free30 minutesNo obligation

SamCart → Mixpanel · when not to buy

When you don't need this — SamCart → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If you run a single product with no bumps or upsells, the standard checkout approach applies and none of this complexity is relevant.
  • 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.

SamCart → Mixpanel · what we deliver

What gets built — SamCart → Mixpanel

  • Identifier capture into SamCart

    Pass the identifier into the SamCart checkout URL and confirm it lands on the order, then decide how upsell orders relate to the parent purchase before sending anything.

  • Event source: the SamCart order webhook

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  • 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 are recorded and, on aggressive upsell funnels, refund rates are high enough that ignoring them materially overstates performance.

Written guarantee

95%+ tracking accuracy

Measured against SamCart's order records for the same window, including bumps and upsells.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SamCart → Mixpanel questions, answered

Pass the distinct_id into the SamCart checkout URL, confirm it is stored on the order, and send the purchase server-side with it.

Free · 30 min

Get SamCart and Mixpanel joined properly

Free30 minutesNo obligation