Connecting Loop Returns to Mixpanel
Loop is built to turn returns into exchanges rather than refunds, which means the outcome of a return is a decision with three different revenue consequences. 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 Loop return 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
Loop return outcomes in Mixpanel on the buyer's profile
Send a Return Resolved event server-side to Mixpanel on the buyer's purchase distinct_id, usually the Shopify customer ID, with outcome, order ID, product IDs and signed amounts as properties and $insert_id from the Loop return ID. Don't rewrite the original Purchase; net revenue comes from summing both. Set a guest-checkout identity rule before the first return.
In Mixpanel, Loop outcomes are worth sending as their own event, such as Return Resolved, with outcome (refund, exchange, store credit), order ID, product IDs and amounts as properties. Product and merchandising teams can then ask which products get exchanged for another size and which get refunded outright, a question no ad tool answers. Returns start in Loop's portal weeks later, so they arrive server-side; use the distinct_id the buyer had at purchase, usually your Shopify customer ID, and set $insert_id from the Loop return ID.
Do not try to rewrite the original Purchase event's revenue. Net revenue comes from summing Purchase amounts and the signed amounts on Return Resolved in a report, so agree the sign convention once: the full refunded amount for a refund, only the shipping cost for an exchange, and a separately labeled value for store credit.
Where this pair goes wrong is guest checkout. Shopify guests have no customer ID, the purchase lands on an anonymous distinct_id, and the return arrives with only an email. Decide the identity rule for guests before sending the first return, or every guest return creates a new profile holding only negative revenue.
Loop → Mixpanel · what breaks
Why this join usually fails — Loop → Mixpanel
- 01
The distinct_id never reaches Loop
Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.
- 02
Every return treated as a full refund
It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.
- 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.
Loop → Mixpanel · the fix
What working looks like — Loop → Mixpanel
The distinct_id on every return
Conversions arriving in Mixpanel
The event lands on the user profile and becomes available in funnels, retention and cohort analysis.
Reconciled against the source
Loop Returns's own records are the reference, not either dashboard.
Loop → Mixpanel · architecture
How Loop and Mixpanel actually connect
- 1
Loop Returns holds the truth
An exchange keeps the revenue and costs you shipping. A refund reverses it entirely. Store credit sits in between. Treating all three as one reversal loses the distinction Loop exists to create.
- 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 Loop return.
- 4
The event source decides reliability
Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.
- 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.
Loop → Mixpanel · normal or broken
Working vs. broken, side by side — Loop → Mixpanel
Normal, not a fault
The distinct_id present on the return
Visible on the record itself in Loop Returns, not merely captured somewhere on the site.
Sent from the store order record, adjusted by Loop outcomes
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
Mixpanel's count and Loop Returns's records agree within a few percent over a closed window.
Actually broken
The distinct_id missing on most records
Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.
Sent from the browser
It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse 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
The dashboard shows a number and no one has compared it to Loop Returns.
Loop → Mixpanel · diagnose
Diagnostic order — Loop → Mixpanel
- 01
Count returns carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Split returns by outcome — refund, exchange, store credit
The mix differs by campaign and by product, and it changes the net revenue figure materially.
- 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.
Loop → Mixpanel · prove
How it gets proven — Loop → Mixpanel
Against Loop Returns's own records, not against either platform's dashboard.
Source of truth
Store orders net of returns, with exchanges and refunds distinguished.
- The distinct_id confirmed present on a live return.
- Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
- Net revenue reconciled after the return window with the three outcomes adjusted separately.
Loop → Mixpanel · free audit
What we check in the free audit
- Count returns carrying the distinct_id
- Follow one real conversion end to end
- Split returns by outcome — refund, exchange, store credit
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
Store orders net of returns, with exchanges and refunds distinguished.
Free30 minutesNo obligation
Loop → Mixpanel · when not to buy
When you don't need this — Loop → Mixpanel
- If Mixpanel already reports conversions that reconcile against Loop Returns's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred returns and count how many carry the distinct_id.
- If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
- 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.
Loop → Mixpanel · what we deliver
What gets built — Loop → Mixpanel
Identifier capture into Loop
Join on the order identifier. There is no identifier to capture here — the work is carrying the order's through and reversing correctly.
Event source: the store order record, adjusted by Loop outcomes
Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.
Dispatch to Mixpanel
The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.
Reversals where they exist
This is the whole integration. Three outcomes, three different adjustments.
Written guarantee
95%+ tracking accuracy
Measured against Store orders net of returns, with exchanges and refunds distinguished.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Loop → Mixpanel questions, answered
Send a server-side event per resolved return with the buyer's purchase-time distinct_id, the outcome and amounts, and the Loop return ID as $insert_id. Check whether Loop offers a direct Mixpanel integration first.
The return event used a different ID from the purchase, usually an email on a guest checkout. Use the same customer ID that was used at checkout.
Almost always because the distinct_id never reached the Loop return. Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase. 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 store order record, adjusted by Loop outcomes. Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.
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 Loop → Mixpanel
- Loop → Google AdsConnecting Loop Returns to Google Ads
- Loop → MetaConnecting Loop Returns to Meta Conversions API
- Loop → GA4Connecting Loop Returns to GA4
RELATED GUIDES
Where Loop → Mixpanel fits in the rest of your tracking
- Narvar → MixpanelConnecting Narvar to Mixpanel
- AfterShip Returns → MixpanelConnecting AfterShip Returns to Mixpanel
- Redo → MixpanelConnecting Redo to Mixpanel
- Loop → Adobe AnalyticsConnecting Loop Returns to Adobe Analytics
- Loop → AmplitudeConnecting Loop Returns to Amplitude
- Footwear ecommerceConversion tracking for footwear ecommerce, measured net of returns
Free · 30 min
Get Loop and Mixpanel joined properly
Free30 minutesNo obligation
