Connecting Square to BigQuery
Square holds the transaction, and for most Square businesses the majority of those transactions are a card tapped at a counter with no browser anywhere near them. 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 Square payment or 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
Square to BigQuery: online and counter revenue in separate tables
Land Square payments, orders, refunds and the customer directory in BigQuery keyed by payment ID, with source type, location and customer_id. MERGE on payment ID, since Square updates payments several times, and join refunds. Split online orders, identified in-person payments and anonymous counter payments; only the first two join to ad clicks. Keep amounts as integers.
BigQuery is the place to measure how much of a Square business's revenue can be attributed at all. Land payments, orders, refunds and the customer directory from Square's APIs or webhooks, keyed by payment ID, with source type, location ID and customer_id as columns. Check whether your ETL vendor already offers a Square connector before writing one.
Build the split first: online orders from Square Online or your own site, in-person payments with a customer_id from an appointment or directory match, and anonymous counter payments. Only the first two can join to ad click data, through click identifiers stored on the online order or on the booking record respectively. Keep amounts as integers in the smallest currency unit, as Square provides them, and convert in a view so a decimal mistake can't spread.
The common error is loading every payment webhook as a new row. Square updates a payment several times as it moves through states, and a naive load can double or triple revenue. MERGE on payment ID and keep the latest version, then subtract refunds by joining the refund table on payment ID. With that table reconciled to Square's sales summary per location, you have the honest denominator for every ad platform's claims.
Square → BigQuery · what breaks
Why this join usually fails — Square → BigQuery
- 01
Whatever join key you decide on never reaches Square
Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.
- 02
Most of the revenue has no browser
A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.
- 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.
Square → BigQuery · the fix
What working looks like — Square → 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
Square → BigQuery · architecture
How Square and BigQuery actually connect
- 1
Square holds the truth
Square records every payment with its amount, channel and, where the customer is identified, a link to the customer directory. That directory is the only bridge between a counter payment and anything that happened online.
- 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 Square payment or order.
- 4
The event source decides reliability
Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
- 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.
Square → BigQuery · normal or broken
Working vs. broken, side by side — Square → BigQuery
Normal, not a fault
Whatever join key you decide on present on the transaction
Sent from the Square payment 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
Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.
Sent from the browser
A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.
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
Square → BigQuery · diagnose
Diagnostic order — Square → BigQuery
- 01
Count transactions carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Split Square revenue by channel before anything else
Online versus in-person. Every subsequent number depends on that split, and blending them makes both unreadable.
- 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.
Square → BigQuery · prove
How it gets proven — Square → BigQuery
Source of truth
Square's transaction list, split by channel — online and in-person are different questions.
- 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.
- The in-person join rate measured and stated as a number before any coverage claim is made.
Square → 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
- Split Square revenue by channel before anything else
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Square's transaction list, split by channel — online and in-person are different questions.
Free30 minutesNo obligation
Square → BigQuery · when not to buy
When you don't need this — Square → BigQuery
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry whatever join key you decide on.
- If nearly all your revenue is in person with no appointments and no identified customers, there is very little here to attribute and we will say so rather than build a bridge to nothing.
- 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.
Square → BigQuery · what we deliver
What gets built — Square → BigQuery
Identifier capture into Square
Capture the click identifier and carry it into Square Online checkout, and for in-person work use an appointment booking as the bridge so the eventual payment can be joined through the customer record.
Event source: the Square payment webhook
Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
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
Square exposes refunds clearly, and in hospitality and services voids and comps are frequent enough that wiring the reversal matters.
Written guarantee
95%+ tracking accuracy
Measured against Square's transaction list, split by channel — online and in-person are different questions.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Square → BigQuery questions, answered
Merge on Square payment ID and keep the latest state, since payment webhooks fire several times per payment. Load refunds into their own table and join them.
Only online orders and in-person payments linked to a known customer. Measure that share per location in BigQuery before reporting attribution.
Almost always because whatever join key you decide on never reached the Square payment or order. Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone. 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 Square payment webhook. Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
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 Square → BigQuery
- Square Online → BigQueryConnecting Square Online to BigQuery
- Square Appointments → BigQueryConnecting Square Appointments to BigQuery
- Square → Google AdsConnecting Square to Google Ads
RELATED GUIDES
Where Square → BigQuery fits in the rest of your tracking
- Chargebee → BigQueryConnecting Chargebee to BigQuery
- GoCardless → BigQueryConnecting GoCardless to BigQuery
- Mollie → BigQueryConnecting Mollie to BigQuery
- Square → SegmentConnecting Square to Segment
- Square → SnowflakeConnecting Square to Snowflake
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Helcim → BigQueryConnecting Helcim to BigQuery
- Splitit → BigQueryConnecting Splitit to BigQuery
Free · 30 min
Get Square and BigQuery joined properly
Free30 minutesNo obligation
