Connecting Refersion to Mixpanel
Refersion runs affiliate and influencer programmes on Shopify stores, which puts a commission-earning third party directly alongside your paid media on the same orders. 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 Refersion conversion 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
Refersion to Mixpanel: Coupon Leakage Visible in the Funnel
Fire a Coupon Applied event in Mixpanel with the code and a Refersion-affiliate flag, and funnel paid-click landings to affiliate-code orders to measure leakage. Register the Refersion link parameter with register_once, and set attributed affiliate and commission on the profile from the server-side order. Check Shopify's custom pixel route for checkout events with the same distinct_id.
Mixpanel can show the sequence that produces the double payment: a paid-click landing, product views, then a checkout where someone types an influencer's code. Fire a Coupon Applied event with the code and a flag for whether it belongs to a Refersion affiliate, and build a funnel from paid-click landings to orders using an affiliate code. That conversion rate is your leakage rate, measured instead of guessed.
Affiliate source belongs on the person, not just the session. On landing, register Refersion's link parameter as a super property with register_once so a later paid visit does not overwrite it, and when the order is confirmed server-side, set the attributed affiliate and commission on the profile. Coupon-only attributions never show up as a link visit, so the server-side order event is the only place they appear.
On Shopify, checkout runs in a restricted environment where your usual Mixpanel script may not load. Check whether you need the store's customer events or custom pixel route to capture coupon entry, and pass the same distinct_id into it, or checkout events land on a stranger. Send refunds as their own event so cohorts built on affiliate buyers reflect orders Refersion later reversed.
Refersion → Mixpanel · what breaks
Why this join usually fails — Refersion → Mixpanel
- 01
The distinct_id never reaches Refersion
Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.
- 02
Influencer codes claiming paid traffic's orders
A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.
- 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.
Refersion → Mixpanel · the fix
What working looks like — Refersion → Mixpanel
The distinct_id on every conversion
Conversions arriving in Mixpanel
The event lands on the user profile and becomes available in funnels, retention and cohort analysis.
Reconciled against the source
Refersion → Mixpanel · architecture
How Refersion and Mixpanel actually connect
- 1
Refersion holds the truth
An affiliate order costs you a commission on top of whatever the ad click cost. If both systems claim it, the order is being paid for twice and neither report mentions the other.
- 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 Refersion conversion.
- 4
The event source decides reliability
Send orders net of affiliate commission, with the affiliate-sourced share marked.
- 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.
Refersion → Mixpanel · normal or broken
Working vs. broken, side by side — Refersion → Mixpanel
Normal, not a fault
The distinct_id present on the conversion
Sent from the store order record with Refersion attribution attached
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
Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.
Sent from the browser
A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.
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
Refersion → Mixpanel · diagnose
Diagnostic order — Refersion → Mixpanel
- 01
Count conversions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Count orders appearing in both paid conversions and Refersion
The overlap is the double payment. One query, rarely run.
- 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.
Refersion → Mixpanel · prove
How it gets proven — Refersion → Mixpanel
Source of truth
Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.
- The distinct_id confirmed present on a live conversion.
- Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
- Non-affiliate orders reconciled against imported conversions, with the overlap measured and stated.
Refersion → Mixpanel · free audit
What we check in the free audit
- Count conversions carrying the distinct_id
- Follow one real conversion end to end
- Count orders appearing in both paid conversions and Refersion
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.
Free30 minutesNo obligation
Refersion → Mixpanel · when not to buy
When you don't need this — Refersion → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
- No affiliate programme means no conflict and this reduces to an ordinary store integration.
- 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.
Refersion → Mixpanel · what we deliver
What gets built — Refersion → Mixpanel
Identifier capture into Refersion
Set an explicit precedence rule between affiliate and paid parameters rather than letting last-write-wins decide, and record both on the order.
Event source: the store order record with Refersion attribution attached
Send orders net of affiliate commission, with the affiliate-sourced share marked.
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 and should claw back the commission.
Written guarantee
95%+ tracking accuracy
Measured against Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Refersion → Mixpanel questions, answered
Yes, if checkout fires a coupon event with the code and an affiliate flag on the same distinct_id as the landing session. A funnel from paid-click landings to affiliate-code orders gives the rate.
Register the Refersion link parameter as a super property with register_once on landing, and set the attributed affiliate on the profile when the order is confirmed server-side.
Almost always because the distinct_id never reached the Refersion conversion. Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored. 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 with Refersion attribution attached. Send orders net of affiliate commission, with the affiliate-sourced share marked.
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 Refersion → Mixpanel
- Stripe → MixpanelConnecting Stripe to Mixpanel
- PayPal → MixpanelConnecting PayPal to Mixpanel
- Shopify → MixpanelConnecting Shopify to Mixpanel
RELATED GUIDES
Where Refersion → Mixpanel fits in the rest of your tracking
- Tapfiliate → MixpanelConnecting Tapfiliate to Mixpanel
- LeadDyno → MixpanelConnecting LeadDyno to Mixpanel
- Rewardful → MixpanelConnecting Rewardful to Mixpanel
- Refersion → MatomoConnecting Refersion to Matomo
- Refersion → GA4Connecting Refersion to GA4
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Everflow → MixpanelConnecting Everflow to Mixpanel
- Rakuten Advertising → MixpanelConnecting Rakuten Advertising to Mixpanel
Free · 30 min
Get Refersion and Mixpanel joined properly
Free30 minutesNo obligation
