Connecting Swell to Mixpanel
Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell 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
Swell to Mixpanel: identify in the headless checkout
Identify at checkout with the account ID Swell creates for every order, including guests, not only at login. Send orders from the Swell webhook with that distinct_id, the order ID as $insert_id, and subscription plan, interval and trial properties. Send renewals from subscription webhooks as a distinct event like Subscription Renewed, never as Purchase.
A headless Swell storefront gives you full control over when Mixpanel learns who someone is, which is both the advantage and the place this pair breaks. If the frontend calls identify with the Swell account ID only after login, guest checkouts never get identified, and every guest who later creates an account becomes a second person in Mixpanel. Identify at checkout with the account ID Swell creates for the order, guest or not.
Send the order server-side from the Swell webhook with that same distinct_id and the Swell order ID as $insert_id, so a webhook retry does not double the revenue. Put subscription details on the event: whether it includes a subscription item, the plan, the billing interval, and whether a trial applies. Those properties are what let a product team see which acquisition paths produce subscribers rather than one-off buyers.
Renewals arrive with no session and no frontend involvement. Send them from the subscription webhooks as a distinct event name (for example Subscription Renewed), not as another Purchase, or every funnel that ends in Purchase starts counting existing customers as conversions each month.
Swell → Mixpanel · what breaks
Why this join usually fails — Swell → Mixpanel
- 01
The distinct_id never reaches Swell
Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.
- 02
Renewals indistinguishable from new orders
In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.
- 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.
Swell → Mixpanel · the fix
What working looks like — Swell → 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
Swell → Mixpanel · architecture
How Swell and Mixpanel actually connect
- 1
Swell holds the truth
A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.
- 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 Swell order.
- 4
The event source decides reliability
Send one-off orders and first subscription payments. Renewals belong in a retention figure.
- 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.
Swell → Mixpanel · normal or broken
Working vs. broken, side by side — Swell → Mixpanel
Normal, not a fault
The distinct_id present on the order
Sent from the Swell order and subscription webhooks
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
Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.
Sent from the browser
In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.
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
Swell → Mixpanel · diagnose
Diagnostic order — Swell → Mixpanel
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare monthly conversion count against new customer count
If conversions exceed new customers, renewals are being counted as acquisition.
- 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.
Swell → Mixpanel · prove
How it gets proven — Swell → Mixpanel
Source of truth
Swell orders and subscriptions by date, held apart from each other.
- 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.
- First payments reconciled against imported conversions, with renewals reported separately.
Swell → Mixpanel · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Compare monthly conversion count against new customer count
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
Swell orders and subscriptions by date, held apart from each other.
Free30 minutesNo obligation
Swell → Mixpanel · when not to buy
When you don't need this — Swell → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- A store selling only one-off products does not have the renewal problem.
- 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.
Swell → Mixpanel · what we deliver
What gets built — Swell → Mixpanel
Identifier capture into Swell
Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.
Event source: the Swell order and subscription webhooks
Send one-off orders and first subscription payments. Renewals belong in a retention figure.
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 and cancellations inside the first period reverse.
Written guarantee
95%+ tracking accuracy
Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Swell → Mixpanel questions, answered
Call identify at checkout with the Swell account ID for the order, not only at login, so guests and later account holders share one distinct_id.
As their own event sent server-side from Swell's subscription webhooks, not as Purchase, so acquisition funnels are not inflated.
Almost always because the distinct_id never reached the Swell order. Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved. 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 Swell order and subscription webhooks. Send one-off orders and first subscription payments. Renewals belong in a retention figure.
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 Swell → Mixpanel
- Stripe → MixpanelConnecting Stripe to Mixpanel
- PayPal → MixpanelConnecting PayPal to Mixpanel
- Shopify → MixpanelConnecting Shopify to Mixpanel
RELATED GUIDES
Where Swell → Mixpanel fits in the rest of your tracking
- EDD → MixpanelConnecting Easy Digital Downloads to Mixpanel
- Wix → MixpanelConnecting Wix Stores to Mixpanel
- OpenCart → MixpanelConnecting OpenCart to Mixpanel
- Swell → Adobe AnalyticsConnecting Swell to Adobe Analytics
- Swell → GA4Connecting Swell to GA4
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Medusa → MixpanelConnecting Medusa to Mixpanel
- Magento → MixpanelConnecting Magento to Mixpanel
Free · 30 min
Get Swell and Mixpanel joined properly
Free30 minutesNo obligation
