Connecting Affirm to Mixpanel
Affirm is longer-term financed BNPL, typically on higher-ticket items, which adds a credit decision between the checkout and the sale. 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 Affirm charge 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
Affirm in Mixpanel: one purchase event, payment method as a property
Send one Mixpanel purchase event with payment_method as a property, never a separate Affirm Purchase name. Write the browser distinct_id onto the order before the Affirm redirect, send the purchase at capture with it and the Affirm charge ID as $insert_id, and use the import API for late captures. Refunds go as negative-amount events.
The Mixpanel mistake to avoid with Affirm is a separate event name. Someone sends Affirm Purchase from the payment flow while the store sends Purchase for card orders, and every revenue funnel splits in two. Send one purchase event with payment_method as a property, and segment by it when you want Affirm buyers on their own.
Write the browser's distinct_id onto the order before the redirect to Affirm, then send the purchase from your server at capture with that distinct_id. Without it, the server event lands on a new anonymous profile, and the high-ticket orders you most want to study vanish from the funnels that started with an ad click. Use the Affirm charge ID as $insert_id so a retried webhook doesn't create a second purchase on the same profile.
Timing is the Mixpanel-specific catch. If you capture Affirm charges when the order ships, the capture can arrive days after the session. Check the age limit on the endpoint you post to; Mixpanel's standard ingestion only takes recent events, and older ones need the import API with the original timestamp. Send refunds and cancelled financing as their own event with a negative amount, so Affirm revenue per cohort matches what you kept rather than what was approved.
Affirm → Mixpanel · what breaks
Why this join usually fails — Affirm → Mixpanel
- 01
The distinct_id never reaches Affirm
The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.
- 02
A credit decision inside the checkout
Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.
- 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.
Affirm → Mixpanel · the fix
What working looks like — Affirm → 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
Affirm → Mixpanel · architecture
How Affirm and Mixpanel actually connect
- 1
Affirm holds the truth
Affirm runs a real credit decision, so a shopper who reaches checkout may be declined. The order only exists if the financing was approved and captured.
- 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 Affirm charge.
- 4
The event source decides reliability
Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
- 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.
Affirm → Mixpanel · normal or broken
Working vs. broken, side by side — Affirm → Mixpanel
Normal, not a fault
The distinct_id present on the order
Sent from your store's order webhook, on Affirm charge capture
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
The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.
Sent from the browser
Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.
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
Affirm → Mixpanel · diagnose
Diagnostic order — Affirm → Mixpanel
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare Affirm checkouts started, approved and captured
The decline rate is a genuine cost of this payment method and it belongs in the report.
- 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.
Affirm → Mixpanel · prove
How it gets proven — Affirm → Mixpanel
Source of truth
Your store's orders financed through Affirm, cross-checked against Affirm's settlement.
- 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.
- An approved Affirm order confirmed to report and a declined one confirmed not to.
Affirm → Mixpanel · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Compare Affirm checkouts started, approved and captured
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
Your store's orders financed through Affirm, cross-checked against Affirm's settlement.
Free30 minutesNo obligation
Affirm → Mixpanel · when not to buy
When you don't need this — Affirm → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- If your average order value is low, Affirm is a poor fit for the payment method and the integration follows that.
- 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.
Affirm → Mixpanel · what we deliver
What gets built — Affirm → Mixpanel
Identifier capture into Affirm
Capture the identifier before checkout and store it on the order, so approved financing is attributable regardless of the return journey.
Event source: your store's order webhook, on Affirm charge capture
Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
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 cancelled financing both exist and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Your store's orders financed through Affirm, cross-checked against Affirm's settlement.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Affirm → Mixpanel questions, answered
Fire events for checkout started, Affirm selected and purchase captured, all on the same distinct_id, and build a funnel across them. Declines and abandons both show as drop-off between Affirm selected and captured, because your store rarely hears about a decline directly.
Check the distinct_id first, then the event age. A capture several days after the order can fall outside what the standard ingestion endpoint accepts and needs the import API instead.
Almost always because the distinct_id never reached the Affirm charge. The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site. 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.
Your store's order webhook, on Affirm charge capture. Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
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 Affirm → Mixpanel
- Affirm → Google AdsConnecting Affirm to Google Ads
- Affirm → MetaConnecting Affirm to Meta Conversions API
- Affirm → GA4Connecting Affirm to GA4
Using Affirm for bookings? How Affirm bookings get tracked end to end
RELATED GUIDES
Where Affirm → Mixpanel fits in the rest of your tracking
- Splitit → MixpanelConnecting Splitit to Mixpanel
- Zuora → MixpanelConnecting Zuora to Mixpanel
- Authorize.net → MixpanelConnecting Authorize.net to Mixpanel
- Affirm → AmplitudeConnecting Affirm to Amplitude
- Affirm → MatomoConnecting Affirm to Matomo
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- Klarna → MixpanelConnecting Klarna to Mixpanel
- Zip → MixpanelConnecting Zip to Mixpanel
Free · 30 min
Get Affirm and Mixpanel joined properly
Free30 minutesNo obligation
