Connecting GoCardless to GA4
GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the GoCardless mandate before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
GoCardless in GA4: one purchase per mandate, not per collection
Fire begin_checkout before the GoCardless redirect and add its payment-page domain to unwanted referrals. Store client_id and session_id in billing request metadata, then send purchase through Measurement Protocol at mandate creation, within the 72-hour limit, with the mandate ID as transaction_id and expected first-year value. Send collections as a custom event and failures as refunds.
GA4 can show a GoCardless business something no ad platform will: how many sessions start the setup flow on GoCardless's hosted page and never come back with a mandate. Fire begin_checkout before the redirect, and add GoCardless's payment-page domain to unwanted referrals. Otherwise the return to your success page starts a new session credited to gocardless.com, and the paid campaign loses the conversion.
Store the client_id and session_id from the _ga cookies in the billing request metadata, then send purchase via Measurement Protocol when the mandate is created, with transaction_id set to the mandate ID and value at expected first-year value. Measurement Protocol backdates no more than 72 hours and does not start a session, so waiting for the first payment to confirm moves the event days away from the session that earned it. Send at mandate creation and correct with a refund event if it fails.
Collections against the mandate can be sent as a custom event (collection_confirmed, say) for revenue reporting, never as purchase, or purchase count becomes months billed. Failed collections and cancelled mandates are why GA4 revenue drifts from GoCardless payouts. Reconcile monthly against payouts.
GoCardless → GA4 · what breaks
Why this join usually fails — GoCardless → GA4
- 01
The GA4 client_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
Everything lands under (direct)/(none)
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
- 04
Nothing reconciles afterwards
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
GoCardless → GA4 · the fix
What working looks like — GoCardless → GA4
The GA4 client_id on every mandate
Conversions arriving in GA4
Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.
Reconciled against the source
GoCardless → GA4 · architecture
How GoCardless and GA4 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
GA4 needs a click to match
GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.
- 3
The identifier is the bridge
The GA4 client_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
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
GoCardless → GA4 · normal or broken
Working vs. broken, side by side — GoCardless → GA4
Normal, not a fault
The GA4 client_id present on the mandate
Sent from the GoCardless payment confirmed webhook
Deduplicated correctly
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Reconciles with the source
Actually broken
The GA4 client_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
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
Nobody has reconciled it
GoCardless → GA4 · diagnose
Diagnostic order — GoCardless → GA4
- 01
Count mandates carrying the GA4 client_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
Check whether server events carry a session and a source
In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.
- 05
Read the match rate, not the success message
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
GoCardless → GA4 · prove
How it gets proven — GoCardless → GA4
Source of truth
GoCardless payments confirmed by charge date, against the mandate that authorised them.
- The GA4 client_id confirmed present on a live mandate.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- A collection weeks after setup confirmed traceable to the original mandate and click.
GoCardless → GA4 · free audit
What we check in the free audit
- Count mandates carrying the GA4 client_id
- Follow one real conversion end to end
- Check whether the identifier is on the mandate or only the first payment
- Check whether server events carry a session and a source
- 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 → GA4 · when not to buy
When you don't need this — GoCardless → GA4
- Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry the GA4 client_id.
- If you take one-off bank payments with no mandate, this reduces to a much simpler integration.
- GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.
GoCardless → GA4 · what we deliver
What gets built — GoCardless → GA4
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 GA4
Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.
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 → GA4 questions, answered
The customer returns from GoCardless's hosted page and GA4 starts a new session. Add the GoCardless domain to unwanted referrals in your data stream settings.
No. One purchase per mandate, keyed by mandate ID, with collections sent as a separate event.
Almost always because the GA4 client_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.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
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.
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
More on GoCardless → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where GoCardless → GA4 fits in the rest of your tracking
- Recurly → GA4Connecting Recurly to GA4
- Adyen → GA4Connecting Adyen to GA4
- Zuora → GA4Connecting Zuora to GA4
- GoCardless → MixpanelConnecting GoCardless to Mixpanel
- GoCardless → Adobe AnalyticsConnecting GoCardless to Adobe Analytics
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Square → GA4Connecting Square to GA4
- Splitit → GA4Connecting Splitit to GA4
Free · 30 min
Get GoCardless and GA4 joined properly
Free30 minutesNo obligation
