Connecting GoCardless to BigQuery
GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the GoCardless mandate before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
GoCardless mandates and collections in BigQuery by campaign
Load GoCardless mandates, payments and raw webhook events into BigQuery, with click identifiers or UTMs from mandate metadata, so twelve-month collections per campaign is one join. Deduplicate on GoCardless event ID, keep every status change, and store created time and charge date. Flag mandates without metadata as unknown source, and reconcile against payouts net of fees.
BigQuery is where the mandate-versus-collection distinction finally pays off, because you can compute what each campaign's mandates actually collected over twelve months. Load three tables: mandates, payments and the raw webhook events. Payments link to their mandate, and the mandate carries the click identifier or UTM values you stored in its metadata at setup, so revenue per campaign is one join.
Deduplicate on the GoCardless event ID. Webhooks can be delivered more than once and arrive out of order, so a payment may be seen as confirmed and then failed or charged back. Keep every status change and derive the current state, rather than overwriting rows or summing every event. Store both the created time and the charge date, since reports about spend need the first and reports about cash need the second.
The common break for this pair is metadata that was only set on the first payment, or not at all. If mandates created before your capture fix have no click data, flag them as unknown source instead of attributing them to direct, or last year's paid acquisition looks like it never happened. Reconcile monthly totals against GoCardless payouts, keeping in mind that payouts are net of GoCardless fees and arrive on their own schedule.
GoCardless → BigQuery · what breaks
Why this join usually fails — GoCardless → BigQuery
- 01
Whatever join key you decide on 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
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
GoCardless → BigQuery · the fix
What working looks like — GoCardless → BigQuery
Whatever join key you decide on on every mandate
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
GoCardless → BigQuery · architecture
How GoCardless and BigQuery 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
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, 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
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
GoCardless → BigQuery · normal or broken
Working vs. broken, side by side — GoCardless → BigQuery
Normal, not a fault
Whatever join key you decide on present on the mandate
Sent from the GoCardless payment confirmed webhook
Deduplicated correctly
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
Actually broken
Whatever join key you decide on 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
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
GoCardless → BigQuery · diagnose
Diagnostic order — GoCardless → BigQuery
- 01
Count mandates carrying whatever join key you decide on
- 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
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
GoCardless → BigQuery · prove
How it gets proven — GoCardless → BigQuery
Source of truth
GoCardless payments confirmed by charge date, against the mandate that authorised them.
- Whatever join key you decide on confirmed present on a live mandate.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- A collection weeks after setup confirmed traceable to the original mandate and click.
GoCardless → BigQuery · free audit
What we check in the free audit
- Count mandates carrying whatever join key you decide on
- Follow one real conversion end to end
- Check whether the identifier is on the mandate or only the first payment
- Reconcile warehouse order counts against each platform for one closed window
- 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 → BigQuery · when not to buy
When you don't need this — GoCardless → BigQuery
- Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry whatever join key you decide on.
- If you take one-off bank payments with no mandate, this reduces to a much simpler integration.
- If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
GoCardless → BigQuery · what we deliver
What gets built — GoCardless → BigQuery
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 BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
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 → BigQuery questions, answered
Store the click ID or UTMs in mandate metadata at setup, load mandates and payments into BigQuery, and sum confirmed collections net of failures per campaign. Payments link to their mandate, so the join is direct.
Payouts are net of fees and grouped by payout date, while payments are by charge date. Reconcile the two with fees as an explicit line.
Almost always because whatever join key you decide on 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.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
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.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on GoCardless → BigQuery
- GoCardless → Google AdsConnecting GoCardless to Google Ads
- GoCardless → MetaConnecting GoCardless to Meta Conversions API
- GoCardless → GA4Connecting GoCardless to GA4
RELATED GUIDES
Where GoCardless → BigQuery fits in the rest of your tracking
- Mollie → BigQueryConnecting Mollie to BigQuery
- Recharge → BigQueryConnecting Recharge to BigQuery
- Acima → BigQueryConnecting Acima to BigQuery
- GoCardless → SnowflakeConnecting GoCardless to Snowflake
- GoCardless → SegmentConnecting GoCardless to Segment
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Paddle → BigQueryConnecting Paddle to BigQuery
- Elavon → BigQueryConnecting Elavon to BigQuery
Free · 30 min
Get GoCardless and BigQuery joined properly
Free30 minutesNo obligation
