Connecting Stripe to Mixpanel
Stripe knows exactly what was paid, by whom, and when — down to the cent, including the refund three weeks later. 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 Stripe Customer or PaymentIntent 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
Stripe to Mixpanel: payments on the right distinct_id
Store the Mixpanel distinct_id, your user ID after identify, in Stripe Customer and Checkout Session metadata, then send payment events from webhooks with it, amounts converted from cents, currency and $insert_id set to the invoice or PaymentIntent ID. Payment Links and Buy Buttons lack your metadata, so use server-created sessions or email matching. Update a lifetime revenue property.
Mixpanel's distinct_id is set by your app or site; Stripe knows a Customer ID and an email. To put payments on the profile that holds product usage, store the distinct_id, which is your user ID after identify, in Stripe Customer metadata at customer creation and in Checkout Session metadata for guest checkouts, then send every payment event with it. Sending with the email or the Stripe Customer ID instead creates a parallel profile with revenue and no behavior.
Use the webhook as the trigger: invoice.paid for subscriptions, payment_intent.succeeded or checkout.session.completed for one-off purchases. Convert amounts from cents, send currency, and set $insert_id to the Stripe invoice or PaymentIntent ID so webhook retries do not create duplicate payments. Name events once, such as Payment Succeeded, Subscription Started, Subscription Upgraded and Refund Issued, and do not let a second tool send its own purchase event in parallel.
The Stripe-specific gap is Payment Links and Buy Buttons. They create Customers without your metadata, so payments from them have no distinct_id and land on new profiles. Either move to server-created sessions or match those Customers to users by email in your endpoint, accepting misses. Also update a lifetime revenue profile property on each payment, reduced on refund, so value and retention can be read side by side.
Stripe → Mixpanel · what breaks
Why this join usually fails — Stripe → Mixpanel
- 01
The distinct_id never reaches Stripe
Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.
- 02
Checkout is on Stripe's domain, so the browser loses the thread
The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.
- 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.
Stripe → Mixpanel · the fix
What working looks like — Stripe → Mixpanel
The distinct_id on every payment
Conversions arriving in Mixpanel
The event lands on the user profile and becomes available in funnels, retention and cohort analysis.
Reconciled against the source
Stripe → Mixpanel · architecture
How Stripe and Mixpanel actually connect
- 1
Stripe holds the truth
Every succeeded PaymentIntent is a real conversion with a real amount and currency. No sampling, no modeling, no consent gate. This is the number the business actually banked, which is why it is the reference rather than anything either ad platform reports.
- 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 Stripe Customer or PaymentIntent.
- 4
The event source decides reliability
Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
- 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.
Stripe → Mixpanel · normal or broken
Working vs. broken, side by side — Stripe → Mixpanel
Normal, not a fault
The distinct_id present on the payment
Sent from the Stripe 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
Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.
Sent from the browser
The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.
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
Stripe → Mixpanel · diagnose
Diagnostic order — Stripe → Mixpanel
- 01
Count payments carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Open one succeeded PaymentIntent in the Stripe dashboard
Look at its Metadata section. If the identifier is not there, nothing downstream can fix it — the join is broken at the source and every other check is wasted effort.
- 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.
Stripe → Mixpanel · prove
How it gets proven — Stripe → Mixpanel
Source of truth
The Stripe dashboard — Payments, filtered to succeeded, for the same window.
- The distinct_id confirmed present on a live payment.
- Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
- A refunded payment confirmed to reverse, not just the sale confirmed to send.
Stripe → Mixpanel · free audit
What we check in the free audit
- Count payments carrying the distinct_id
- Follow one real conversion end to end
- Open one succeeded PaymentIntent in the Stripe dashboard
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
The Stripe dashboard — Payments, filtered to succeeded, for the same window.
Free30 minutesNo obligation
Stripe → Mixpanel · when not to buy
When you don't need this — Stripe → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the distinct_id.
- If you take payment through a hosted Payment Link or Buy Button and have no server creating sessions, this needs a development change on your side before any tracking work is worth commissioning. Worth knowing before you pay for tracking.
- 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.
Stripe → Mixpanel · what we deliver
What gets built — Stripe → Mixpanel
Identifier capture into Stripe
Read the click identifier from the landing page, persist it in a first-party cookie, and pass it into the create-session call as metadata. Stripe carries metadata onto the resulting PaymentIntent and Charge, so it survives to the webhook and to any later refund.
Event source: the Stripe webhook
Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
Dispatch to Mixpanel
The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.
Reversals where they exist
Stripe fires charge.refunded and charge.dispute.created. Both carry the original metadata, so a refund can be sent as a negative or a retraction wherever the destination supports it. Most setups never wire this and quietly overstate revenue by the refund rate.
Written guarantee
95%+ tracking accuracy
Measured against The Stripe dashboard — Payments, filtered to succeeded, for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Stripe → Mixpanel questions, answered
From your webhook endpoint, send events with the distinct_id stored in Stripe Customer or Checkout Session metadata. If you use an integration tool instead, verify which ID it maps users on.
The event used the Stripe Customer ID or email rather than your app's distinct_id. Store your user ID in Stripe metadata and send that.
Almost always because the distinct_id never reached the Stripe Customer or PaymentIntent. Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created. 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 Stripe webhook. Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
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 Stripe → Mixpanel
- Stripe Billing → MixpanelConnecting Stripe Billing to Mixpanel
- Stripe → Google AdsConnecting Stripe to Google Ads
- Stripe → MetaConnecting Stripe to Meta Conversions API
RELATED GUIDES
Where Stripe → Mixpanel fits in the rest of your tracking
- Stripe Billing → MixpanelConnecting Stripe Billing to Mixpanel
- PayPal → MixpanelConnecting PayPal to Mixpanel
- Stripe → GA4Connecting Stripe to GA4
- Stripe → AmplitudeConnecting Stripe to Amplitude
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- PayPal → MatomoConnecting PayPal to Matomo
- Stripe Billing → MatomoConnecting Stripe Billing to Matomo
- PayPal → AmplitudeConnecting PayPal to Amplitude
Free · 30 min
Get Stripe and Mixpanel joined properly
Free30 minutesNo obligation
