Skip to main content
Square Online → BigQueryIntegration guide

Connecting Square Online to BigQuery

Square Online orders settle into the same Square account as the card taken at the counter, which is a genuine advantage: the online and in-person halves of the business are already denominated in one ledger. 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 Online 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 Online to BigQuery: online orders split from the counter

Load Square orders with source, location ID, fulfillment type and each money amount, including tax, tip, discount and net, as columns, and filter channel in queries. Deduplicate on order ID, since order.updated fires repeatedly, and keep refunds in their own table. Match click IDs captured on your domain to orders by email and time, with a match-confidence column.

BigQuery is the cleanest place to fix Square's mixed-channel problem, because you can keep every transaction and filter in the query rather than at ingestion. Load orders from Square's Orders API or order webhooks with source, location ID, fulfillment type and each money amount as its own column: total, tax, tip, discount and net. Check the field names in Square's API reference, and note that tips may sit on the payment rather than the order depending on how they were collected.

The ad join is weak on Square Online because the storefront offers little room to write click IDs onto orders. Capture gclid, fbclid and UTMs on your own domain or through whatever code injection your plan allows, store them with the visitor's email when they enter it, and match to orders on email and time. Keep a match-confidence column: an email match within an hour is not the same evidence as a click ID written on the order.

Refunds arrive as separate records. Load them into a refunds table keyed on the original order and payment IDs, and compute daily net revenue in a view. Deduplicate orders on order ID, because order.updated fires repeatedly as an order moves through fulfillment, and an append-only load will multiply every order.

Square Online → BigQuery · what breaks

Why this join usually fails — Square Online → BigQuery

  1. 01

    Whatever join key you decide on never reaches Square Online

    Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.

  2. 02

    Counter sales counted as online conversions

    The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.

  3. 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.

  4. 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 Online → BigQuery · the fix

What working looks like — Square Online → 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

Square Online → BigQuery · architecture

How Square Online and BigQuery actually connect

  1. 1

    Square Online holds the truth

    The filter is the whole job. Square's default reporting cheerfully sums counter sales and online orders, and that total is not something any ad platform should be optimizing toward.

  2. 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. 3

    The identifier is the bridge

    Whatever join key you decide on, captured at the visit and carried into the Square Online order.

  4. 4

    The event source decides reliability

    Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.

  5. 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 Online → BigQuery · normal or broken

Working vs. broken, side by side — Square Online → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the order

  • Sent from the Square transaction record

  • 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 sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.

  • Sent from the browser

    The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.

  • 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 Online → BigQuery · diagnose

Diagnostic order — Square Online → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Filter by sales channel and re-check the total

    Compare the filtered online total against Square Online's own order count. If they disagree, the filter is wrong before the tracking is.

  4. 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.

  5. 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 Online → BigQuery · prove

How it gets proven — Square Online → BigQuery

Source of truth

Square transactions filtered to the online sales channel, by location.

  • 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.
  • Online-channel transactions reconciled against imported conversions for a settled week.

Square Online → 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
  • Filter by sales channel and re-check the total
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Square transactions filtered to the online sales channel, by location.

Get my free conversion tracking audit

Free30 minutesNo obligation

Square Online → BigQuery · when not to buy

When you don't need this — Square Online → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • If Square Online is a small side channel next to your counter business, measure it on order count and do not build an import for it.
  • 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 Online → BigQuery · what we deliver

What gets built — Square Online → BigQuery

  • Identifier capture into Square Online

    Persist the identifier in first-party storage on your own domain before the handoff, and reattach it to the order at the point the transaction is written.

  • Event source: the Square transaction record

    Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.

  • 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

    Refunds appear in Square as their own records and should be sent as reversals.

Written guarantee

95%+ tracking accuracy

Measured against Square transactions filtered to the online sales channel, by location.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Square Online → BigQuery questions, answered

Pull from Square's Orders API or stream order webhooks into a staging table, then merge on order ID. Check whether a connector you already use supports Square before writing your own.

Free · 30 min

Get Square Online and BigQuery joined properly

Free30 minutesNo obligation