Skip to main content
Ecwid → BigQueryIntegration guide

Connecting Ecwid to BigQuery

Ecwid is a store that embeds into someone else's website, which makes it the only ecommerce platform here where the checkout runs inside a widget on a page you do not fully control. 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 Ecwid 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

Ecwid to BigQuery: orders, extra fields and the host page

Load Ecwid orders keyed on the Ecwid order ID, with the extra fields that hold click IDs and the host-page session ID flattened into columns. Use the webhook to learn which order changed, fetch its current state through the REST API, and keep every change so you have both the first-paid time and the final net value after refunds.

The BigQuery job for Ecwid is mostly about extra fields. Ecwid holds the authoritative order, but the click IDs (gclid, fbclid, ttclid and the rest) and the host-page session ID only exist on that order if your checkout wrote them into extra fields. Load orders with those fields flattened into columns, and load host-page session data separately, so you can see which orders arrived without identifiers and from which host site.

Ecwid's webhook tells you which order changed; in the setups we see, you then fetch the order through the REST API to get its current state, including payment status and refunds. Check the payload your store actually receives. Key the table on the Ecwid order ID and keep each change, because payment status moves from awaiting to paid to refunded and you want both the first-paid timestamp and the final net value. Store the timezone alongside timestamps: Ecwid reports in the store's zone and BigQuery defaults to UTC, which shifts daily totals.

If one Ecwid store is embedded on several sites, add the host domain as a column from the session data. That is a question the Ecwid admin cannot answer for you, and the first one you will be asked when channel numbers disagree.

Ecwid → BigQuery · what breaks

Why this join usually fails — Ecwid → BigQuery

  1. 01

    Whatever join key you decide on never reaches Ecwid

    The store runs inside an embedded widget, so the host page's scripts and the widget's own context are not the same environment. An identifier captured by the host page does not automatically reach the order, and a purchase inside the widget does not automatically fire the host page's tags.

  2. 02

    A checkout inside somebody else's page

    The host site and the store widget are two contexts. Tags installed on the host page routinely miss purchases entirely, and nobody notices because the site looks like it is working.

  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.

Ecwid → BigQuery · the fix

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

Ecwid → BigQuery · architecture

How Ecwid and BigQuery actually connect

  1. 1

    Ecwid holds the truth

    Ecwid is authoritative for the order. Because it embeds into WordPress, Wix, Squarespace and plain HTML sites alike, the surrounding page's own analytics frequently has no idea a purchase happened.

  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 Ecwid order.

  4. 4

    The event source decides reliability

    Send from your server when Ecwid reports the order paid. The widget's own client-side events depend on the host page still being open and the embed having initialized correctly, neither of which is guaranteed.

  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.

Ecwid → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the order

  • Sent from the Ecwid 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 store runs inside an embedded widget, so the host page's scripts and the widget's own context are not the same environment. An identifier captured by the host page does not automatically reach the order, and a purchase inside the widget does not automatically fire the host page's tags.

  • Sent from the browser

    The host site and the store widget are two contexts. Tags installed on the host page routinely miss purchases entirely, and nobody notices because the site looks like it is working.

  • 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

Ecwid → BigQuery · diagnose

Diagnostic order — Ecwid → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent Ecwid order and check its extra fields

    If the identifier is not on the order, the host page captured it and never passed it across the embed boundary.

  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.

Ecwid → BigQuery · prove

How it gets proven — Ecwid → BigQuery

Source of truth

Ecwid's order list for the same window, in the store's currency and timezone.

  • 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.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → 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
  • Open a recent Ecwid order and check its extra fields
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Ecwid's order list for the same window, in the store's currency and timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Ecwid → BigQuery · when not to buy

When you don't need this — Ecwid → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • If your Ecwid store is a small add-on to a content site with modest volume, the native integrations may be adequate — measure the order volume before commissioning anything.
  • 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.

Ecwid → BigQuery · what we deliver

What gets built — Ecwid → BigQuery

  • Identifier capture into Ecwid

    Capture the click identifier on the host page and pass it into the Ecwid order through its order-extra-fields or the storefront API, so it lands on the order record rather than staying on the page.

  • Event source: the Ecwid order webhook

    Send from your server when Ecwid reports the order paid. The widget's own client-side events depend on the host page still being open and the embed having initialized correctly, neither of which is guaranteed.

  • 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

    Ecwid records refunds and cancellations against the original order, so reversals can be wired properly.

Written guarantee

95%+ tracking accuracy

Measured against Ecwid's order list for the same window, in the store's currency and timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Ecwid → BigQuery questions, answered

Receive Ecwid's order webhooks, fetch the full order through the REST API, and load it keyed on order ID. Include extra fields so click IDs land as columns.

Free · 30 min

Get Ecwid and BigQuery joined properly

Free30 minutesNo obligation