Connecting Braintree to BigQuery
Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. 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 Braintree transaction 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
Braintree into BigQuery: settled rows joined to the clicks you stored
Load every Braintree transaction into BigQuery with ID, status, amount, currency, created and settled timestamps, orderId and all custom fields; stored click IDs there are the attribution join. Keep status history, store refunds as their own rows and net them in queries, and load from scheduled transaction search as well as webhooks. Deduplicate on transaction ID.
BigQuery is the most useful destination for a Braintree merchant, because Braintree's own reporting stops at the payment and the warehouse is where the payment meets the click. Load every transaction with its ID, status, amount, currency, created and settled timestamps, your orderId value and every custom field. If the custom fields carry the gclid, fbclid or other click IDs captured at checkout, those columns are the attribution join. If they are empty, the warehouse shows you exactly how many transactions can never be tied to an ad.
Keep status history rather than overwriting it. A transaction moves from authorized to submitted for settlement to settled, and some never reach settled. A table that only stores the current status cannot answer why last Tuesday's revenue changed on Thursday. Refunds arrive as separate credit transactions pointing back to the original sale through a refunded-transaction reference, so store them as their own rows and net them in the query, not in the load.
Load by transaction search on a schedule as well as from webhooks; confirm which webhook notifications your account sends for card settlements, because relying on one feed alone tends to leave gaps. Deduplicate on transaction ID before any revenue query. Once this table is clean, it becomes the source for every ad platform upload, so you build the click-to-payment join once instead of nine times.
Braintree → BigQuery · what breaks
Why this join usually fails — Braintree → BigQuery
- 01
Whatever join key you decide on never reaches Braintree
Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.
- 02
A gateway that knows nothing about marketing
Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.
- 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.
Braintree → BigQuery · the fix
What working looks like — Braintree → BigQuery
Whatever join key you decide on on every transaction
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
Braintree → BigQuery · architecture
How Braintree and BigQuery actually connect
- 1
Braintree holds the truth
Settled and authorised are different states. Authorisation reserves the funds; settlement is money moving, and reporting on the wrong one produces a persistent gap against your bank.
- 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 Braintree transaction.
- 4
The event source decides reliability
Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.
- 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.
Braintree → BigQuery · normal or broken
Working vs. broken, side by side — Braintree → BigQuery
Normal, not a fault
Whatever join key you decide on present on the transaction
Sent from the Braintree transaction settlement 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
Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.
Sent from the browser
Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.
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
Braintree → BigQuery · diagnose
Diagnostic order — Braintree → BigQuery
- 01
Count transactions carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Open a settled transaction and check its custom fields
If the identifier is not there, your application never attached it and nothing downstream can recover it.
- 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.
Braintree → BigQuery · prove
How it gets proven — Braintree → BigQuery
Source of truth
Braintree's transaction records, filtered to settled, for the same window.
- Whatever join key you decide on confirmed present on a live transaction.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- A PayPal-funded transaction confirmed to report even though the buyer was redirected away.
Braintree → BigQuery · free audit
What we check in the free audit
- Count transactions carrying whatever join key you decide on
- Follow one real conversion end to end
- Open a settled transaction and check its custom fields
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Braintree's transaction records, filtered to settled, for the same window.
Free30 minutesNo obligation
Braintree → BigQuery · when not to buy
When you don't need this — Braintree → BigQuery
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry whatever join key you decide on.
- If your platform already reports orders accurately and Braintree is purely the funding rail, work at the order layer instead — it is closer to the customer.
- 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.
Braintree → BigQuery · what we deliver
What gets built — Braintree → BigQuery
Identifier capture into Braintree
Pass the click identifier into the transaction's custom fields when your server creates the charge. Braintree preserves them and they survive to the webhook and to any later refund.
Event source: the Braintree transaction settlement webhook
Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.
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
Braintree exposes refunds and disputes, both carrying the original custom fields, so reversals are straightforward.
Written guarantee
95%+ tracking accuracy
Measured against Braintree's transaction records, filtered to settled, for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Braintree → BigQuery questions, answered
Your own order ID, stored in Braintree's orderId field, joined to a sessions or orders table that holds the click IDs. Custom fields on the transaction can carry the click IDs directly if your checkout writes them.
Usually because the query counts authorized or submitted transactions instead of settled ones, or ignores refund credit transactions. Filter to settled and net the credits.
Almost always because whatever join key you decide on never reached the Braintree transaction. Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all. 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 Braintree transaction settlement webhook. Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.
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 Braintree → BigQuery
- Braintree → Google AdsConnecting Braintree to Google Ads
- Braintree → MetaConnecting Braintree to Meta Conversions API
- Braintree → GA4Connecting Braintree to GA4
RELATED GUIDES
Where Braintree → BigQuery fits in the rest of your tracking
- WooCommerce → BigQueryConnecting WooCommerce to BigQuery
- nopCommerce → BigQueryConnecting nopCommerce to BigQuery
- Gumroad → BigQueryConnecting Gumroad to BigQuery
- Braintree → SnowflakeConnecting Braintree to Snowflake
- Braintree → SegmentConnecting Braintree to Segment
- FashionConversion tracking for fashion brands, reported net of returns
- SureCart → BigQueryConnecting SureCart to BigQuery
- EDD → BigQueryConnecting Easy Digital Downloads to BigQuery
Free · 30 min
Get Braintree and BigQuery joined properly
Free30 minutesNo obligation
