Skip to main content
Sitecore → BigQueryIntegration guide

Connecting Sitecore to BigQuery

Sitecore is enterprise digital experience software with its own personalisation and analytics stack, which frequently competes with rather than complements the measurement you are trying to build. 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 Sitecore contact and 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

Sitecore and BigQuery: load orders, not the experience database

Build BigQuery's conversion table from the commerce or CRM system, keyed on order or lead ID, not from Sitecore's xDB, which is personalization data. Capture gclid, fbclid and the GA4 client_id server-side and persist them to each order. Link any xDB data on your own customer ID, and check for an existing warehouse pipeline first.

The tempting move is to export Sitecore's experience database (xDB) into BigQuery and call it marketing data. It is personalization data: contacts, interactions, goals and engagement value, built for Sitecore's own rules. Load it if you want to analyze personalization, but the conversion table in BigQuery should come from the commerce or CRM system, keyed on order or lead ID.

The join is the hard part. Capture click identifiers (gclid, fbclid, the GA4 client_id) server-side in the application and persist them to the order, so each order row carries its own attribution. If you also load xDB interactions, link them on your own customer ID rather than the Sitecore contact ID, because Sitecore merges and re-identifies contacts and one person's contact ID can change over time.

Enterprise Sitecore stacks often already feed a warehouse through another team's pipeline. Check before building a second one; two loads of the same orders with different deduplication rules is how a company ends up with three revenue figures. If GA4 runs on the site, its BigQuery export gives session-level data with client_id, and joining that to orders on the stored client_id is usually more useful than anything in xDB.

Sitecore → BigQuery · what breaks

Why this join usually fails — Sitecore → BigQuery

  1. 01

    Whatever join key you decide on never reaches Sitecore

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  2. 02

    Two analytics systems answering different questions

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  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.

Sitecore → BigQuery · the fix

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

Sitecore → BigQuery · architecture

How Sitecore and BigQuery actually connect

  1. 1

    Sitecore holds the truth

    Sitecore's experience database tracks contacts and interactions for personalisation. It is not a conversion source for ad platforms and its numbers will not match theirs, by design.

  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 Sitecore contact and order.

  4. 4

    The event source decides reliability

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  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.

Sitecore → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the order

  • Sent from your commerce system's order event

  • 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

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  • Sent from the browser

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  • 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

Sitecore → BigQuery · diagnose

Diagnostic order — Sitecore → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Separate Sitecore's personalisation analytics from conversion measurement

    They are different systems for different purposes. Conflating them is the standard mistake in this stack.

  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.

Sitecore → BigQuery · prove

How it gets proven — Sitecore → BigQuery

Source of truth

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

  • 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.
  • Conversions confirmed sourced from the commerce system rather than from Sitecore's experience database.

Sitecore → 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
  • Separate Sitecore's personalisation analytics from conversion measurement
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

Get my free conversion tracking audit

Free30 minutesNo obligation

Sitecore → BigQuery · when not to buy

When you don't need this — Sitecore → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • If your Sitecore implementation is content-only with commerce elsewhere, work at the commerce layer entirely.
  • 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.

Sitecore → BigQuery · what we deliver

What gets built — Sitecore → BigQuery

  • Identifier capture into Sitecore

    Capture the identifier server-side in the application and persist it to the commerce order, keeping it separate from Sitecore's own contact identity model.

  • Event source: your commerce system's order event

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  • 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

    Handled at the commerce layer.

Written guarantee

95%+ tracking accuracy

Measured against Your commerce or CRM system — Sitecore's own analytics database answers a different question.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Sitecore → BigQuery questions, answered

No. Load conversions from the commerce or CRM system keyed on order ID; xDB is personalization data and won't match ad platforms.

Free · 30 min

Get Sitecore and BigQuery joined properly

Free30 minutesNo obligation