Skip to main content
Gravity Forms → BigQueryIntegration guide

Connecting Gravity Forms to BigQuery

Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. 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 Gravity Forms entry 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

Gravity Forms to BigQuery: pivot entry meta into one row per lead

Load Gravity Forms' entry table and entry meta table into BigQuery, keyed on entry ID and loaded incrementally on date_updated, then build per-form views pivoting numeric field IDs into named columns like gclid. Filter out spam and trashed entries. Measure the caching problem by counting empty identifier fields per day by landing page.

Gravity Forms already stores every entry in your WordPress database, so getting it into BigQuery is mostly a modeling problem. The entry table holds one row per submission with status, form ID and dates. The field values sit in the entry meta table, one row per field, keyed by numeric field IDs that differ from form to form. Load both, then build a view per form that pivots meta into named columns. Otherwise every query has to remember that field 7 on form 3 is the gclid.

Filter on entry status in the view. Spam and trashed entries stay in the table, and a lead count that includes them won't match the entries screen anyone else is looking at. Keep the entry ID as the primary key and load incrementally on date_updated, because edited entries change in place.

The attribution join is whatever your hidden fields captured: gclid, fbclid, ttclid, GA4 client_id. So this is the place to measure the caching problem. Count the share of entries per day with an empty identifier field, split by landing page. A page served from cache shows up as a cluster of empty values even though paid traffic landed on it.

Gravity Forms → BigQuery · what breaks

Why this join usually fails — Gravity Forms → BigQuery

  1. 01

    Whatever join key you decide on never reaches Gravity Forms

    The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.

  2. 02

    Dynamic population fails silently under page caching

    The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.

  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.

Gravity Forms → BigQuery · the fix

What working looks like — Gravity Forms → BigQuery

  • Whatever join key you decide on on every entry

  • 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

Gravity Forms → BigQuery · architecture

How Gravity Forms and BigQuery actually connect

  1. 1

    Gravity Forms holds the truth

    The entry lives in your database with every field value attached. You can query it, back it up and reconcile against it without depending on any third party, which is a real advantage over hosted form tools.

  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 Gravity Forms entry.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.

  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.

Gravity Forms → BigQuery · normal or broken

Working vs. broken, side by side — Gravity Forms → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the entry

  • Sent from the gform_after_submission 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

    The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.

  • Sent from the browser

    The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.

  • 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

Gravity Forms → BigQuery · diagnose

Diagnostic order — Gravity Forms → BigQuery

  1. 01

    Count entrys carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Submit a test entry through a cached page

    Not through a logged-in admin session, which bypasses the cache. If the hidden field is empty on the cached path and populated on the admin path, caching is your cause.

  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.

Gravity Forms → BigQuery · prove

How it gets proven — Gravity Forms → BigQuery

Source of truth

The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.

  • Whatever join key you decide on confirmed present on a live entry.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.

Gravity Forms → BigQuery · free audit

What we check in the free audit

  • Count entrys carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Submit a test entry through a cached page
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.

Get my free conversion tracking audit

Free30 minutesNo obligation

Gravity Forms → BigQuery · when not to buy

When you don't need this — Gravity Forms → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry whatever join key you decide on.
  • If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
  • 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.

Gravity Forms → BigQuery · what we deliver

What gets built — Gravity Forms → BigQuery

  • Identifier capture into Gravity Forms

    Hidden field with 'allow field to be populated dynamically' enabled and a parameter name set, plus a cookie fallback via a gform filter so the identifier survives a visitor who browsed several pages before converting.

  • Event source: the gform_after_submission hook

    Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.

  • 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

    Nothing to reverse, though entries marked spam should be excluded from the send.

Written guarantee

95%+ tracking accuracy

Measured against The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Gravity Forms → BigQuery questions, answered

Replicate the entry and entry meta tables from your WordPress database, then build a view per form that pivots field IDs into named columns and excludes spam.

Free · 30 min

Get Gravity Forms and BigQuery joined properly

Free30 minutesNo obligation