Skip to main content
Flow → BigQueryIntegration guide

Connecting Flow Commerce to BigQuery

Flow handles cross-border pricing, duties and landed cost, which means the price a shopper sees is calculated per market and your margin varies by destination in ways the order value does not show. 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 Flow international 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

Flow Commerce to BigQuery: landed-cost margin by country

Key one BigQuery row per Flow order with presentment currency and amount, converted base amount, duties and taxes, shipping charged and paid, destination country, the applied FX rate, and click IDs captured before localization. Load returns as their own table with logistics cost, store timestamps in UTC, merge on order ID, and never recompute stored FX rates.

BigQuery is the right home for the question Flow makes unavoidable: what did each country actually earn after duties, taxes, shipping and returns? No ad platform will tell you, and Flow's own reporting will not join the answer to ad spend. A warehouse table of Flow orders with the click identifiers you captured before localization is what does.

Use the order ID as the row key and store, per order, the presentment currency and amount the shopper paid, the converted base amount, duties and taxes collected, shipping charged and shipping paid, the destination country, the FX rate applied, and any gclid, fbclid or other click IDs captured on landing. Load returns as their own table keyed on order ID with the return logistics cost, because an international return can cost more than the margin the order made. Store timestamps in UTC; Flow orders cross time zones by definition.

Write the dedup yourself as a merge on order ID, since a webhook retry or an overlapping backfill will duplicate rows. Keep the FX rate stored on the row rather than recomputing at query time, or last year's margin moves every time rates do. Check what Flow's API and exports expose for duties and fees per order, and whether anything changed since Global-e acquired Flow; some fee components may only appear in settlement reports, not on the order.

Flow → BigQuery · what breaks

Why this join usually fails — Flow → BigQuery

  1. 01

    Whatever join key you decide on never reaches Flow

    Localised checkout can run on a Flow-managed surface with its own currency and pricing.

  2. 02

    One international figure across many economies

    Duty rates, shipping costs and return rates all differ by country. A single international line in the report averages profitable markets with loss-making ones and keeps funding both.

  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.

Flow → BigQuery · the fix

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

    Flow Commerce's own records are the reference, not either dashboard.

Flow → BigQuery · architecture

How Flow and BigQuery actually connect

  1. 1

    Flow Commerce holds the truth

    Landed-cost pricing means two orders of identical value to different countries can leave you materially different amounts. A blended international figure describes neither.

  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 Flow international order.

  4. 4

    The event source decides reliability

    Send orders at net-to-merchant value, split by destination market.

  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.

Flow → BigQuery · normal or broken

Working vs. broken, side by side — Flow → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the order

    Visible on the record itself in Flow Commerce, not merely captured somewhere on the site.

  • Sent from the Flow order 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

    BigQuery's count and Flow Commerce's records agree within a few percent over a closed window.

Actually broken

  • Whatever join key you decide on missing on most records

    Localised checkout can run on a Flow-managed surface with its own currency and pricing.

  • Sent from the browser

    Duty rates, shipping costs and return rates all differ by country. A single international line in the report averages profitable markets with loss-making ones and keeps funding both.

  • 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

    The dashboard shows a number and no one has compared it to Flow Commerce.

Flow → BigQuery · diagnose

Diagnostic order — Flow → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Report net margin by destination country, not by region

    Regional grouping hides the variation that actually decides where to spend.

  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.

Flow → BigQuery · prove

How it gets proven — Flow → BigQuery

Against Flow Commerce's own records, not against either platform's dashboard.

Source of truth

Orders net of duties, taxes and cross-border fees, by destination market.

  • 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.
  • Net-to-merchant revenue reconciled per country against imported conversions.

Flow → 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
  • Report net margin by destination country, not by region
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Orders net of duties, taxes and cross-border fees, by destination market.

Get my free conversion tracking audit

Free30 minutesNo obligation

Flow → BigQuery · when not to buy

When you don't need this — Flow → BigQuery

  • If BigQuery already reports conversions that reconcile against Flow Commerce's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • If you ship to one or two nearby markets at similar cost, a blended figure is adequate.
  • 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.

Flow → BigQuery · what we deliver

What gets built — Flow → BigQuery

  • Identifier capture into Flow

    Capture before localisation and carry the identifier through to the international order.

  • Event source: the Flow order record

    Send orders at net-to-merchant value, split by destination market.

  • 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

    International returns reverse at full logistics cost.

Written guarantee

95%+ tracking accuracy

Measured against Orders net of duties, taxes and cross-border fees, by destination market.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Flow → BigQuery questions, answered

Load Flow orders into BigQuery with duties, taxes, shipping and FX per order, plus returns, and compute net-to-merchant by destination country. Check which fee fields come from the order and which from settlement data.

Free · 30 min

Get Flow and BigQuery joined properly

Free30 minutesNo obligation