Connecting BigCommerce to Mixpanel
BigCommerce is a hosted store with an unusually open API, which makes it one of the easier ecommerce platforms to instrument 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 BigCommerce 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
BigCommerce to Mixpanel: when to identify a shopper, and as what
Use the BigCommerce customer ID as distinct_id for logged-in shoppers, calling identify() at storefront sign-in. For guests, pass the Mixpanel device ID through the cart onto the order and send the purchase server-side with it, using the order ID as $insert_id. Backfilled or replayed orders older than Mixpanel's ingestion limit go through import.
Mixpanel will put a BigCommerce order on whatever distinct_id you send, so the real question is which ID the storefront identified the shopper with. Use the BigCommerce customer ID for logged-in shoppers, and call identify() when they sign in on the storefront rather than when the order webhook arrives, or everything they browsed before checkout stays on an anonymous profile.
Guest checkout is where it splits. The order carries a customer ID of zero, and if your checkout lets a guest create an account after paying, the customer record appears after the order already exists. Pass the Mixpanel device ID through the cart onto the order, send the purchase server-side with that device ID, and when an account appears, identify the device to the new customer ID so the order joins the profile.
Mixpanel's standard ingestion only accepts recent events (check the current limit; it has been five days); older ones go through its import endpoint. That matters when you backfill a year of BigCommerce orders or replay webhooks after an outage. Use the BigCommerce order ID as $insert_id so a replay does not double revenue, and settle on one event name instead of sending both Purchase and Order Completed.
BigCommerce → Mixpanel · what breaks
Why this join usually fails — BigCommerce → Mixpanel
- 01
The distinct_id never reaches BigCommerce
BigCommerce offers both a hosted checkout and an embedded one, and which you use changes whether your storefront scripts run during checkout. On the hosted flow the identifier has to travel through the cart rather than through a cookie.
- 02
Two checkout modes with different script access
Hosted and embedded checkout behave differently, and a setup built for one silently misses conversions on the other.
- 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.
- 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.
BigCommerce → Mixpanel · the fix
What working looks like — BigCommerce → 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
BigCommerce → Mixpanel · architecture
How BigCommerce and Mixpanel actually connect
- 1
BigCommerce holds the truth
The order carries line items, tax, shipping and currency. Decide whether you report the order total or a net figure before comparing anything, because most BigCommerce discrepancies are two people using two definitions.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the BigCommerce order.
- 4
The event source decides reliability
Send when the order status reaches paid, from your server. This covers wallet checkouts and customers who never reach the confirmation page.
- 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.
BigCommerce → Mixpanel · normal or broken
Working vs. broken, side by side — BigCommerce → Mixpanel
Normal, not a fault
The distinct_id present on the order
Sent from the BigCommerce 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
BigCommerce offers both a hosted checkout and an embedded one, and which you use changes whether your storefront scripts run during checkout. On the hosted flow the identifier has to travel through the cart rather than through a cookie.
Sent from the browser
Hosted and embedded checkout behave differently, and a setup built for one silently misses conversions on the other.
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
BigCommerce → Mixpanel · diagnose
Diagnostic order — BigCommerce → Mixpanel
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Confirm which checkout mode the store uses
Then test a purchase on that mode specifically rather than on whichever one is convenient.
- 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.
- 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.
BigCommerce → Mixpanel · prove
How it gets proven — BigCommerce → Mixpanel
Source of truth
BigCommerce's order list for the same window, at an agreed value definition.
- 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 through the store's actual checkout mode confirmed to carry the identifier onto the order.
BigCommerce → Mixpanel · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Confirm which checkout mode the store uses
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
BigCommerce's order list for the same window, at an agreed value definition.
Free30 minutesNo obligation
BigCommerce → Mixpanel · when not to buy
When you don't need this — BigCommerce → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- BigCommerce's native channel integrations are decent for simple single-currency stores. If your admin and platform numbers already agree, leave it.
- 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.
BigCommerce → Mixpanel · what we deliver
What gets built — BigCommerce → Mixpanel
Identifier capture into BigCommerce
Capture the identifier on the storefront and write it to the order through a cart custom field, then read it back server-side from the order.
Event source: the BigCommerce order webhook
Send when the order status reaches paid, from your server. This covers wallet checkouts and customers who never reach the confirmation page.
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 against the original order, so reversals are straightforward.
Written guarantee
95%+ tracking accuracy
Measured against BigCommerce's order list for the same window, at an agreed value definition.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
BigCommerce → Mixpanel questions, answered
Handle the order status webhook, fetch the order from the BigCommerce API, and post a purchase event with the shopper's distinct_id, the order ID as $insert_id, and value and currency as properties.
The server event has no link to the browser's device ID. Write the device ID into the cart on the storefront and read it back from the order when you send the event.
Almost always because the distinct_id never reached the BigCommerce order. BigCommerce offers both a hosted checkout and an embedded one, and which you use changes whether your storefront scripts run during checkout. On the hosted flow the identifier has to travel through the cart rather than through a cookie. Measure coverage before debugging the dispatch.
Mixpanel identifies people by distinct_id, which starts as an anonymous device value and should be aliased to your own user ID at signup. Getting that alias wrong is the single most common Mixpanel implementation failure: the anonymous pre-signup activity and the identified user become two separate people, and every funnel that crosses signup is broken.
The BigCommerce order webhook. Send when the order status reaches paid, from your server. This covers wallet checkouts and customers who never reach the confirmation page.
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.
More on BigCommerce → Mixpanel
- BigCommerce → Google AdsConnecting BigCommerce to Google Ads
- BigCommerce → MetaConnecting BigCommerce to Meta Conversions API
- BigCommerce → GA4Connecting BigCommerce to GA4
RELATED GUIDES
Where BigCommerce → Mixpanel fits in the rest of your tracking
- Medusa → MixpanelConnecting Medusa to Mixpanel
- OpenCart → MixpanelConnecting OpenCart to Mixpanel
- Checkout Extensibility → MixpanelConnecting Shopify Checkout Extensibility to Mixpanel
- BigCommerce → AmplitudeConnecting BigCommerce to Amplitude
- BigCommerce → GA4Connecting BigCommerce to GA4
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- PrestaShop → MixpanelConnecting PrestaShop to Mixpanel
- WooCommerce → MixpanelConnecting WooCommerce to Mixpanel
Free · 30 min
Get BigCommerce and Mixpanel joined properly
Free30 minutesNo obligation
