Connecting GoCardless to Segment
GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the GoCardless mandate before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
GoCardless through Segment without counting every collection
Send GoCardless events to Segment server-side from webhooks: Mandate Created or Mandate Active as the acquisition event, Payment Collected and Payment Failed separately, never collections as Order Completed. The userId is your own customer ID stored in mandate metadata, identified before the hosted payment page. Use the GoCardless event ID as messageId and the mandate or charge date as timestamp.
Segment is the right place to define, once, which GoCardless event means acquisition. Send Mandate Created or Mandate Active as the acquisition event and Payment Collected and Payment Failed as separate events, server-side from the webhooks. Do not send collections as Order Completed: every ad destination mapped to that event would record a new purchase each month for every existing customer.
The userId must be your own customer ID, stored in the GoCardless customer or mandate metadata when the billing request is created, because the webhook only knows GoCardless IDs. Before the person signs up, analytics.js has given them an anonymousId; call identify with the userId on your own signup step, before redirecting to the hosted payment page, so the alias exists before the mandate does. Carry the click IDs and consent state as properties.
Use the GoCardless event ID as the messageId. Webhooks are retried, and with Segment fanning out to several tools, a single retry becomes a duplicate in each one. Set the event timestamp to when the mandate was created or the charge date, not when your handler ran, so the warehouse and analytics tools agree on which month the revenue belongs to.
GoCardless → Segment · what breaks
Why this join usually fails — GoCardless → Segment
- 01
The userId and anonymousId 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 bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
GoCardless → Segment · the fix
What working looks like — GoCardless → Segment
The userId and anonymousId on every mandate
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
GoCardless → Segment · architecture
How GoCardless and Segment 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
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, 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
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
GoCardless → Segment · normal or broken
Working vs. broken, side by side — GoCardless → Segment
Normal, not a fault
The userId and anonymousId present on the mandate
Sent from the GoCardless payment confirmed webhook
Deduplicated correctly
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Actually broken
The userId and anonymousId 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
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
GoCardless → Segment · diagnose
Diagnostic order — GoCardless → Segment
- 01
Count mandates carrying the userId and anonymousId
- 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
Check identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
GoCardless → Segment · prove
How it gets proven — GoCardless → Segment
Source of truth
GoCardless payments confirmed by charge date, against the mandate that authorised them.
- The userId and anonymousId confirmed present on a live mandate.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- A collection weeks after setup confirmed traceable to the original mandate and click.
GoCardless → Segment · free audit
What we check in the free audit
- Count mandates carrying the userId and anonymousId
- Follow one real conversion end to end
- Check whether the identifier is on the mandate or only the first payment
- Check identity resolution before checking anything downstream
- 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 → Segment · when not to buy
When you don't need this — GoCardless → Segment
- Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry the userId and anonymousId.
- If you take one-off bank payments with no mandate, this reduces to a much simpler integration.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
GoCardless → Segment · what we deliver
What gets built — GoCardless → Segment
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 Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
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 → Segment questions, answered
A mandate event for acquisition and separate payment collected and failed events, all server-side from webhooks. Avoid Order Completed for recurring collections, or every ad destination counts each one.
Use the GoCardless event ID as the Segment messageId, and use your own customer ID from GoCardless metadata as the userId.
Almost always because the userId and anonymousId 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.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
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.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on GoCardless → Segment
- Stripe → SegmentConnecting Stripe to Segment
- PayPal → SegmentConnecting PayPal to Segment
- Shopify → SegmentConnecting Shopify to Segment
RELATED GUIDES
Where GoCardless → Segment fits in the rest of your tracking
- Recurly → SegmentConnecting Recurly to Segment
- Klarna → SegmentConnecting Klarna to Segment
- Mollie → SegmentConnecting Mollie to Segment
- GoCardless → BigQueryConnecting GoCardless to BigQuery
- Financial servicesConversion tracking for financial services, built for the compliance review
- Recharge → SegmentConnecting Recharge to Segment
- Paddle → SegmentConnecting Paddle to Segment
- Razorpay → SegmentConnecting Razorpay to Segment
Free · 30 min
Get GoCardless and Segment joined properly
Free30 minutesNo obligation
