Skip to main content
PrestaShop → BigQueryIntegration guide

Connecting PrestaShop to BigQuery

PrestaShop is self-hosted open source with a large module ecosystem, which means the store's behaviour depends heavily on which modules are installed. 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 PrestaShop 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

PrestaShop to BigQuery: replicate the database you already own

PrestaShop data already sits in your own MySQL database, so replicate the orders, order_detail, order_history, order_slip and customer tables to BigQuery by export or change-data-capture. Define revenue order states in one view, convert currency with each order's stored rate, and write click identifiers to orders yourself. Add daily row-count and revenue checks, since module updates alter columns.

PrestaShop is unusual among sources because the data already sits in your own MySQL database, so the BigQuery job is replication, not API scraping. Scheduled exports or change-data-capture of the orders, order_detail, order_history, order_slip and customer tables give you everything, including what no ad platform ever sees: every state transition with timestamps, every credit slip, and id_shop for multi-store installs.

A few decisions turn those tables into something you can reconcile against. Pick the order states that count as revenue (merchants customize the state list) and encode them in one view, or every report re-argues what paid means. Convert to a reporting currency using the conversion rate PrestaShop stores on each order rather than today's rate. Click identifiers have to be written to the order by your own module or hook at checkout, since PrestaShop doesn't store gclid or fbclid by default, and replicated with the order so attribution queries have something to join on.

The failure particular to this pair: table prefixes and module-added tables differ per install, and module updates can alter columns, so a pipeline that worked for months starts loading nulls after an unrelated update. Add a daily row-count and revenue check against PrestaShop's own order totals, and dedupe on id_order before aggregating if you stream rather than batch.

PrestaShop → BigQuery · what breaks

Why this join usually fails — PrestaShop → BigQuery

  1. 01

    Whatever join key you decide on never reaches PrestaShop

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  2. 02

    Module ecosystem interference

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  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.

PrestaShop → BigQuery · the fix

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

PrestaShop → BigQuery · architecture

How PrestaShop and BigQuery actually connect

  1. 1

    PrestaShop holds the truth

    You own the data and can query it directly. Pin down which order states count as revenue, since PrestaShop's state machine is more granular than most.

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

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the confirmation template.

  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.

PrestaShop → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the order

  • Sent from the PrestaShop order validation hook

  • 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

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  • Sent from the browser

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  • 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

PrestaShop → BigQuery · diagnose

Diagnostic order — PrestaShop → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order metadata on ten recent orders

    Partial coverage across orders points at a module conflict rather than a missing implementation.

  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.

PrestaShop → BigQuery · prove

How it gets proven — PrestaShop → BigQuery

Source of truth

PrestaShop's order records in your own database, for the same window and order state set.

  • 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.
  • Order metadata confirmed present across ten consecutive orders rather than one.

PrestaShop → 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
  • Check order metadata on ten recent orders
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

PrestaShop's order records in your own database, for the same window and order state set.

Get my free conversion tracking audit

Free30 minutesNo obligation

PrestaShop → BigQuery · when not to buy

When you don't need this — PrestaShop → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • If your PrestaShop install is heavily moduled and maintained by another party, scope their involvement before starting.
  • 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.

PrestaShop → BigQuery · what we deliver

What gets built — PrestaShop → BigQuery

  • Identifier capture into PrestaShop

    Capture the identifier and write it to order metadata through a hook, server-side, so it does not depend on page execution.

  • Event source: the PrestaShop order validation hook

    Fire server-side from the hook rather than the confirmation template.

  • 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

    Credit slips are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against PrestaShop's order records in your own database, for the same window and order state set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

PrestaShop → BigQuery questions, answered

Replicate the PrestaShop MySQL tables (orders, order_detail, order_history, order_slip, customer) into BigQuery on a schedule or via change-data-capture. Check your table prefix and any module-added tables first.

Free · 30 min

Get PrestaShop and BigQuery joined properly

Free30 minutesNo obligation