Connecting GoCardless to Mixpanel
GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. 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 GoCardless mandate 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
GoCardless mandates in Mixpanel on the same distinct_id
Store your user ID in GoCardless customer or mandate metadata and send mandate_active plus payment_collected or payment_failed from webhooks, not the return page, with that distinct_id. Use the payment or event ID as $insert_id, stamp events with the charge date, using the import endpoint for late timestamps, and keep failed collections as their own event.
Mixpanel is useful here for seeing how product behavior before and after signup relates to whether a customer keeps paying by direct debit. That needs two server-side events: mandate_active when the mandate is set up, and payment_collected or payment_failed for each collection. Both must carry the distinct_id the person already has in Mixpanel, which means storing your user ID in the GoCardless customer or mandate metadata at the moment the billing request is created.
If the hosted GoCardless payment page is used, the browser leaves your domain and Mixpanel's browser state does not come back with it. Do not rely on the return page firing anything; send from the mandate and payment webhooks and look up the user. Use the GoCardless payment or event ID as $insert_id, because webhook retries are normal and a duplicated collection inflates retention-by-revenue charts.
Bank debit timing creates a Mixpanel-specific issue. Events should be stamped with the charge date, and Mixpanel's standard ingestion only accepts recent timestamps, so a backfill or a late failure notification may need the import endpoint instead. Confirm the current limit in Mixpanel's docs. Keep failed collections as their own event rather than deleting the earlier success, so churn analysis can see involuntary churn separately from cancellations.
GoCardless → Mixpanel · what breaks
Why this join usually fails — GoCardless → Mixpanel
- 01
The distinct_id never reaches GoCardless
Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session.
- 02
Days between the signup and the money
Bank debit is not instant. The mandate is agreed today and the first collection clears later, which puts every naive page-based conversion at the wrong moment and the wrong value.
- 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.
GoCardless → Mixpanel · the fix
What working looks like — GoCardless → Mixpanel
The distinct_id on every mandate
Conversions arriving in Mixpanel
The event lands on the user profile and becomes available in funnels, retention and cohort analysis.
Reconciled against the source
GoCardless → Mixpanel · architecture
How GoCardless and Mixpanel actually connect
- 1
GoCardless holds the truth
The mandate is the acquisition; each payment is a collection against it. A subscription business on direct debit should value the mandate, not the first collection.
- 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 GoCardless mandate.
- 4
The event source decides reliability
Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.
- 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.
GoCardless → Mixpanel · normal or broken
Working vs. broken, side by side — GoCardless → Mixpanel
Normal, not a fault
The distinct_id present on the mandate
Sent from the GoCardless payment confirmed 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
Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session.
Sent from the browser
Bank debit is not instant. The mandate is agreed today and the first collection clears later, which puts every naive page-based conversion at the wrong moment and the wrong value.
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
GoCardless → Mixpanel · diagnose
Diagnostic order — GoCardless → Mixpanel
- 01
Count mandates carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether the identifier is on the mandate or only the first payment
If it is on the payment, no later collection can be attributed — and later collections are most of the revenue.
- 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.
GoCardless → Mixpanel · prove
How it gets proven — GoCardless → Mixpanel
Source of truth
GoCardless payments confirmed by charge date, against the mandate that authorised them.
- The distinct_id confirmed present on a live mandate.
- Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
- A collection weeks after setup confirmed traceable to the original mandate and click.
GoCardless → Mixpanel · free audit
What we check in the free audit
- Count mandates carrying the distinct_id
- Follow one real conversion end to end
- Check whether the identifier is on the mandate or only the first payment
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
GoCardless payments confirmed by charge date, against the mandate that authorised them.
Free30 minutesNo obligation
GoCardless → Mixpanel · when not to buy
When you don't need this — GoCardless → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry the distinct_id.
- If you take one-off bank payments with no mandate, this reduces to a much simpler 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.
GoCardless → Mixpanel · what we deliver
What gets built — GoCardless → Mixpanel
Identifier capture into GoCardless
Pass the click identifier into the mandate's metadata at setup, so all future collections trace back to the campaign that acquired the customer.
Event source: the GoCardless payment confirmed webhook
Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.
Dispatch to Mixpanel
The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.
Reversals where they exist
Failed collections, chargebacks and cancelled mandates all exist and all should reduce the reported value.
Written guarantee
95%+ tracking accuracy
Measured against GoCardless payments confirmed by charge date, against the mandate that authorised them.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
GoCardless → Mixpanel questions, answered
Send server-side events from GoCardless webhooks, using your own user ID stored in the customer or mandate metadata as the distinct_id. There is no reliable browser event after the hosted payment page.
Yes, as a separate event. It lets you separate involuntary churn from cancellations, which matters for any direct debit subscription business.
Almost always because the distinct_id never reached the GoCardless mandate. Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session. 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 GoCardless payment confirmed webhook. Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.
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 GoCardless → Mixpanel
- GoCardless → Google AdsConnecting GoCardless to Google Ads
- GoCardless → MetaConnecting GoCardless to Meta Conversions API
- GoCardless → GA4Connecting GoCardless to GA4
RELATED GUIDES
Where GoCardless → Mixpanel fits in the rest of your tracking
- Recharge → MixpanelConnecting Recharge to Mixpanel
- Square → MixpanelConnecting Square to Mixpanel
- Maxio → MixpanelConnecting Maxio to Mixpanel
- GoCardless → MatomoConnecting GoCardless to Matomo
- GoCardless → AmplitudeConnecting GoCardless to Amplitude
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Afterpay → MixpanelConnecting Afterpay to Mixpanel
- Zip → MixpanelConnecting Zip to Mixpanel
Free · 30 min
Get GoCardless and Mixpanel joined properly
Free30 minutesNo obligation
