Skip to main content
Divi → BigQueryIntegration guide

Connecting Divi to BigQuery

Divi is a theme and builder combined, which means the site's structure and its forms are the same product — and a theme update can change both at once. 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 Divi form submission 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

Divi submissions in BigQuery: a log that survives theme updates

Divi emails submissions rather than storing them, so write one BigQuery row at submit time: generated submission ID, page and module, UTC timestamp, captured click IDs and consent state. Join CRM lead status on that ID. Compare daily rows with notification emails to catch tracking a Divi update removed, and cast custom field values on load.

For a Divi lead site, BigQuery is where you find out whether form tracking has quietly stopped. Divi's contact module emails submissions rather than storing them in a table you can query, so if a row is not written at submit time it does not exist later. Write one row per submission: a submission ID you generate, the page and module it came from, a UTC timestamp, the click identifiers captured on landing (gclid, fbc, ttclid, rdt_cid, whichever your ads use), and consent state. Then load CRM lead status as a second table joined on the submission ID or the CRM record ID.

The theme-update hazard shows up here as a cliff. Chart daily rows per form against daily notification emails; a drop to zero on the day of a Divi update is tracking code removed from a parent template, not a demand problem. Comparing warehouse leads to each ad platform for the same closed week then tells you whether a gap is collection or that platform's matching.

Watch types and empties. Divi custom field values arrive as strings, so a budget select stored as text in one load and a number in another breaks any aggregation; cast on load. Attribution does not exist here until you write it: a lead row with an empty click-ID column is unattributed, and no query recovers the click afterwards. For a single-form brochure site on one ad platform, a spreadsheet does the same job.

Divi → BigQuery · what breaks

Why this join usually fails — Divi → BigQuery

  1. 01

    Whatever join key you decide on never reaches Divi

    Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.

  2. 02

    Tracking removed by a theme update

    Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.

  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.

Divi → BigQuery · the fix

What working looks like — Divi → BigQuery

  • Whatever join key you decide on on every submission

  • 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

Divi → BigQuery · architecture

How Divi and BigQuery actually connect

  1. 1

    Divi holds the truth

    Because the builder is the theme, tracking added into templates can be lost or duplicated by a theme update in ways a plugin-based setup would not experience.

  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 Divi form submission.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form, with the identifier passed through a hidden field.

  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.

Divi → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the submission

  • Sent from your CRM 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

Actually broken

  • Whatever join key you decide on missing on most records

    Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.

  • Sent from the browser

    Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error 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

Divi → BigQuery · diagnose

Diagnostic order — Divi → BigQuery

  1. 01

    Count submissions carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether tracking code sits in theme files or in a child theme

    If it is in the parent theme, it is one update away from vanishing.

  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.

Divi → BigQuery · prove

How it gets proven — Divi → BigQuery

Source of truth

Your CRM record, joined to the submission.

  • Whatever join key you decide on confirmed present on a live submission.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Qualified outcomes reconciled per form against imported conversions, with code placement verified update-safe.

Divi → BigQuery · free audit

What we check in the free audit

  • Count submissions carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Check whether tracking code sits in theme files or in a child theme
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Your CRM record, joined to the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

Divi → BigQuery · when not to buy

When you don't need this — Divi → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry whatever join key you decide on.
  • Sites using a separate form plugin and a tag manager are insulated from the theme-update risk.
  • 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.

Divi → BigQuery · what we deliver

What gets built — Divi → BigQuery

  • Identifier capture into Divi

    Use a child theme or the builder's supported code integration areas rather than editing templates directly, and bind to the AJAX submission.

  • Event source: your CRM record

    Send qualified outcomes per form, with the identifier passed through a hidden field.

  • 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

    Disqualified submissions reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM record, joined to the submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Divi → BigQuery questions, answered

Divi's contact module sends submissions by email rather than storing them in a queryable table, so check whether a plugin or your own handler is logging them. If not, write the row at submit time from your server or tag manager; there is nothing to backfill from.

Free · 30 min

Get Divi and BigQuery joined properly

Free30 minutesNo obligation