Connecting Saleor to BigQuery
Saleor is headless and GraphQL-first, which means the storefront and the commerce engine are separate applications and the identifier has to survive a boundary that traditional platforms do not have. 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 Saleor 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
Saleor to BigQuery: orders from the API, metadata flattened
Load Saleor orders into BigQuery through scheduled GraphQL pulls or captured order webhooks, keeping raw payloads. Flatten the click and analytics IDs in order metadata into typed columns, store global IDs both as returned and decoded, and load channel and currency on every order. Deduplicate on order ID, and grant permissions if identifiers sit in private metadata.
Saleor is already API-first, so BigQuery is a natural home for it: pull orders through GraphQL on a schedule, or capture order webhooks into a staging table, and keep the raw payload. The fields that make the warehouse useful for attribution live in order metadata, meaning whatever click identifiers and analytics IDs your storefront wrote at checkout. Flatten them into typed columns once, so nobody has to parse JSON in every query.
Saleor's API returns global IDs, base64 strings encoding the object type and its ID. Store them as returned and decoded, because other systems such as product feeds and ad events may use the decoded ID or the SKU instead, and the join will fail silently on the wrong form. Load the channel and currency on every order; summing across channels without handling currency produces a total that means nothing.
Webhooks can deliver more than once, so deduplicate on order ID before aggregating. If your storefront writes click IDs into private metadata rather than public metadata, the export needs app permissions that can read it. Then reconcile paid orders from this table against each platform's reported conversions for the same closed window.
Saleor → BigQuery · what breaks
Why this join usually fails — Saleor → BigQuery
- 01
Whatever join key you decide on never reaches Saleor
The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.
- 02
A storefront that knows the click and an API that holds the money
Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.
- 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.
Saleor → BigQuery · the fix
What working looks like — Saleor → 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
Saleor → BigQuery · architecture
How Saleor and BigQuery actually connect
- 1
Saleor holds the truth
In a headless setup the storefront is one of several possible clients. Attributing from it means measuring one channel of a system designed to have many.
- 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 Saleor order.
- 4
The event source decides reliability
Send fully paid orders at their net total, sourced from the API.
- 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.
Saleor → BigQuery · normal or broken
Working vs. broken, side by side — Saleor → BigQuery
Normal, not a fault
Whatever join key you decide on present on the order
Sent from the Saleor 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 storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.
Sent from the browser
Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.
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
Saleor → BigQuery · diagnose
Diagnostic order — Saleor → BigQuery
- 01
Count orders carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Inspect order metadata on a live order for the identifier
Either it is on the order or the attribution is guesswork. There is no middle state.
- 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.
Saleor → BigQuery · prove
How it gets proven — Saleor → BigQuery
Source of truth
Saleor orders by payment status, read from the API rather than inferred from the storefront.
- 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.
- Paid orders reconciled from the API against imported conversions.
Saleor → 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
- Inspect order metadata on a live order for the identifier
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Saleor orders by payment status, read from the API rather than inferred from the storefront.
Free30 minutesNo obligation
Saleor → BigQuery · when not to buy
When you don't need this — Saleor → BigQuery
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
- If you run a single storefront and no other clients, the added complexity of headless attribution buys you nothing over a standard integration.
- 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.
Saleor → BigQuery · what we deliver
What gets built — Saleor → BigQuery
Identifier capture into Saleor
Capture in the storefront and write the identifier into order metadata through the API at checkout, so it lives on the order rather than in a session.
Event source: the Saleor order webhook
Send fully paid orders at their net total, sourced from the API.
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 and cancellations reverse.
Written guarantee
95%+ tracking accuracy
Measured against Saleor orders by payment status, read from the API rather than inferred from the storefront.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Saleor → BigQuery questions, answered
Query orders through the GraphQL API on a schedule, or capture order webhooks into a staging table; keep raw payloads and flatten metadata keys into columns.
Wherever your storefront put them, normally order metadata or private metadata written at checkout. If they aren't there, the storefront isn't writing them.
Almost always because whatever join key you decide on never reached the Saleor order. The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there. 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 Saleor order webhook. Send fully paid orders at their net total, sourced from the API.
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 Saleor → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where Saleor → BigQuery fits in the rest of your tracking
- WooCommerce Subscriptions → BigQueryConnecting WooCommerce Subscriptions to BigQuery
- EDD → BigQueryConnecting Easy Digital Downloads to BigQuery
- Ecwid → BigQueryConnecting Ecwid to BigQuery
- Saleor → SnowflakeConnecting Saleor to Snowflake
- Saleor → SegmentConnecting Saleor to Segment
- BeautyConversion tracking for beauty brands, including the second order
- PrestaShop → BigQueryConnecting PrestaShop to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
Free · 30 min
Get Saleor and BigQuery joined properly
Free30 minutesNo obligation
