Connecting Afterpay to BigQuery
Afterpay is pay-in-four buy-now-pay-later, which means the shopper is approved elsewhere and the merchant is paid up front by the provider. 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 Afterpay order 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
Afterpay orders in BigQuery: join store, settlement and click IDs
Join three things in BigQuery on your store order ID: the order with payment method as a column, the Afterpay settlement line matched by the Afterpay reference stored at capture, and the click identifiers saved before the redirect. Query net margin by payment method and channel, keep timestamped rows in one zone, and dedupe on order ID.
BigQuery is where the Afterpay question can be answered properly, because it holds three things no ad platform will ever join for you: the store order, the Afterpay settlement line for that order, and the click identifiers you captured before the redirect. The join key is your store's order ID. Make sure the Afterpay order reference is stored on the store order at capture time, so the settlement export can be matched back without fuzzy matching on amount and date.
Load the order with the payment method as its own column, plus gclid, fbclid, ttclid or whatever was captured on the landing page. Then the query that matters is simple: revenue, return rate and net margin by payment method and by channel. Afterpay's merchant fee is higher than card processing for most merchants, and returns on BNPL orders often run higher, so a channel that drives a lot of Afterpay checkouts can look strong on gross revenue and weak on net.
The failure to watch for here is a timing mismatch. The store order is dated at purchase, Afterpay's settlement batches can be dated later, and refunds arrive weeks after. Keep each as its own row with its own timestamp in one zone, and reconcile per closed month. Also deduplicate on order ID: order webhooks retry, and a retried Afterpay order counted twice inflates exactly the segment you are trying to judge.
Afterpay → BigQuery · what breaks
Why this join usually fails — Afterpay → BigQuery
- 01
Whatever join key you decide on never reaches Afterpay
The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.
- 02
The approval redirect that ends the session
Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.
- 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.
Afterpay → BigQuery · the fix
What working looks like — Afterpay → BigQuery
Whatever join key you decide on on every order
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
Afterpay → BigQuery · architecture
How Afterpay and BigQuery actually connect
- 1
Afterpay holds the truth
Afterpay pays the merchant in full and collects instalments from the shopper itself, so your revenue arrives at once even though the customer pays over time. The store's order record is the money event, not the instalment schedule.
- 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 Afterpay order.
- 4
The event source decides reliability
Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.
- 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.
Afterpay → BigQuery · normal or broken
Working vs. broken, side by side — Afterpay → BigQuery
Normal, not a fault
Whatever join key you decide on present on the order
Sent from your store's order 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
The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.
Sent from the browser
Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.
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
Afterpay → BigQuery · diagnose
Diagnostic order — Afterpay → BigQuery
- 01
Count orders carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Count Afterpay checkouts started against confirmation-page loads
The gap is the share of BNPL revenue a browser-side setup cannot see, and it is usually larger than merchants expect.
- 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.
Afterpay → BigQuery · prove
How it gets proven — Afterpay → BigQuery
Source of truth
Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.
- Whatever join key you decide on confirmed present on a live order.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- An Afterpay order abandoned at the return step, confirmed to still report.
Afterpay → BigQuery · free audit
What we check in the free audit
- Count orders carrying whatever join key you decide on
- Follow one real conversion end to end
- Count Afterpay checkouts started against confirmation-page loads
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.
Free30 minutesNo obligation
Afterpay → BigQuery · when not to buy
When you don't need this — Afterpay → BigQuery
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
- If BNPL is a very small share of your orders, measure that share before commissioning anything.
- 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.
Afterpay → BigQuery · what we deliver
What gets built — Afterpay → BigQuery
Identifier capture into Afterpay
Capture the identifier before checkout and store it on the order in your own system, so the conversion does not depend on the shopper completing the return journey.
Event source: your store's order webhook
Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.
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
Returns on BNPL orders run higher than card in many stores, so the reversal matters more here than elsewhere.
Written guarantee
95%+ tracking accuracy
Measured against Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Afterpay → BigQuery questions, answered
Store the Afterpay order reference and the captured click IDs on the store order, load both the orders and Afterpay's settlement export, and join on the store order ID.
Usually timing and fees: settlement dates lag order dates, refunds arrive later, and Afterpay reports net of its fee. Compare the same closed window and the same definition of revenue.
Almost always because whatever join key you decide on never reached the Afterpay order. The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired. 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.
Your store's order webhook. Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.
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 Afterpay → BigQuery
- Afterpay → Google AdsConnecting Afterpay to Google Ads
- Afterpay → MetaConnecting Afterpay to Meta Conversions API
- Afterpay → GA4Connecting Afterpay to GA4
RELATED GUIDES
Where Afterpay → BigQuery fits in the rest of your tracking
- Klarna → BigQueryConnecting Klarna to BigQuery
- Worldpay → BigQueryConnecting Worldpay to BigQuery
- Zuora → BigQueryConnecting Zuora to BigQuery
- Afterpay → SnowflakeConnecting Afterpay to Snowflake
- Afterpay → SegmentConnecting Afterpay to Segment
- Financial servicesConversion tracking for financial services, built for the compliance review
- Razorpay → BigQueryConnecting Razorpay to BigQuery
- Recurly → BigQueryConnecting Recurly to BigQuery
Free · 30 min
Get Afterpay and BigQuery joined properly
Free30 minutesNo obligation
