Connecting Complianz to BigQuery
Complianz is a WordPress consent plugin that blocks scripts by category automatically, which means a plugin update can change what fires on your site without anyone deciding to. 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 Complianz consent record 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
Complianz consent state in BigQuery, joined to every order
In BigQuery, record each order with its Complianz category statuses captured server-side from the consent cookie at checkout, plus banner or policy version and timestamp, joined on order ID. That gives consent rates by channel and week, and flags orders carrying marketing click IDs despite denied status, a cache leak. Keep one column per category with dated history.
BigQuery is where Complianz's consent decisions become measurable instead of assumed. The useful table is not a log of banner clicks; it is your orders, each with the Complianz category statuses captured at checkout, the banner or policy version in force, and a timestamp. The join key is the order ID, with consent read server-side from the visitor's consent cookie when the order is written, not reconstructed later from analytics.
With that table you can state the consent rate the ad platforms are working from, by channel and by week. You can also catch the caching problem directly: any order that carries a click identifier stored by a marketing script while its recorded marketing status is denied means a script ran that should not have. That query is the closest thing to an automated test of Complianz plus your cache, and it runs on production traffic rather than a staging site with caching off.
Keep consent as separate columns per category rather than one string, because Complianz categories and your own downstream rules will change. When a plugin update moves a script between categories, a dated history lets you see the step change in consented orders on the day the update shipped, which is otherwise invisible.
Complianz → BigQuery · what breaks
Why this join usually fails — Complianz → BigQuery
- 01
Whatever join key you decide on never reaches Complianz
Scripts are blocked before execution, and WordPress caching can serve a page with the wrong consent state entirely.
- 02
Caching serving the wrong consent state
A full-page cache does not know who is asking. A page cached for a consented visitor and served to one who declined runs scripts that should not have run, which is a compliance problem rather than a measurement one.
- 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.
- 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.
Complianz → BigQuery · the fix
What working looks like — Complianz → BigQuery
Whatever join key you decide on on every consent record
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
Complianz → BigQuery · architecture
How Complianz and BigQuery actually connect
- 1
Complianz holds the truth
Automatic script blocking on WordPress interacts with every other plugin. A caching plugin, a tag manager and a consent plugin all touching the same page produce ordering problems nobody planned.
- 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
The identifier is the bridge
Whatever join key you decide on, captured at the visit and carried into the Complianz consent record.
- 4
The event source decides reliability
Send consented conversions with the consent rate stated.
- 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.
Complianz → BigQuery · normal or broken
Working vs. broken, side by side — Complianz → BigQuery
Normal, not a fault
Whatever join key you decide on present on the consent record
Sent from your order system, gated on consent
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
Scripts are blocked before execution, and WordPress caching can serve a page with the wrong consent state entirely.
Sent from the browser
A full-page cache does not know who is asking. A page cached for a consented visitor and served to one who declined runs scripts that should not have run, which is a compliance problem rather than a measurement one.
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
Complianz → BigQuery · diagnose
Diagnostic order — Complianz → BigQuery
- 01
Count consent records carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Test consent behaviour with caching enabled, not disabled
Most consent testing is done with cache off, which is the one configuration that never runs in production.
- 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.
- 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.
Complianz → BigQuery · prove
How it gets proven — Complianz → BigQuery
Source of truth
Your order or CRM system, with consent state recorded at the time of the event.
- Whatever join key you decide on confirmed present on a live consent record.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Consented conversions reconciled against imported figures, verified with production caching active.
Complianz → BigQuery · free audit
What we check in the free audit
- Count consent records carrying whatever join key you decide on
- Follow one real conversion end to end
- Test consent behaviour with caching enabled, not disabled
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Your order or CRM system, with consent state recorded at the time of the event.
Free30 minutesNo obligation
Complianz → BigQuery · when not to buy
When you don't need this — Complianz → BigQuery
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry whatever join key you decide on.
- Sites without full-page caching avoid the interaction, though the category classification still matters.
- 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.
Complianz → BigQuery · what we deliver
What gets built — Complianz → BigQuery
Identifier capture into Complianz
Verify which category your capture script sits in, and check that caching does not serve a consented page to a non-consented visitor.
Event source: your order system, gated on consent
Send consented conversions with the consent rate stated.
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
Withdrawal stops future sends.
Written guarantee
95%+ tracking accuracy
Measured against Your order or CRM system, with consent state recorded at the time of the event.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Complianz → BigQuery questions, answered
Check what your Complianz edition stores and whether it offers an export. Many setups instead read the consent cookie at checkout and write it with the order, which is the more useful join anyway.
Divide orders with marketing consent granted by all orders in the same window, using the status captured at checkout. That ratio explains much of the gap between your store and the ad platforms.
Almost always because whatever join key you decide on never reached the Complianz consent record. Scripts are blocked before execution, and WordPress caching can serve a page with the wrong consent state entirely. Measure coverage before debugging the dispatch.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
Your order system, gated on consent. Send consented conversions with the consent rate stated.
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.
More on Complianz → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where Complianz → BigQuery fits in the rest of your tracking
- Osano → BigQueryConnecting Osano to BigQuery
- Termly → BigQueryConnecting Termly to BigQuery
- Usercentrics → BigQueryConnecting Usercentrics to BigQuery
- Complianz → SnowflakeConnecting Complianz to Snowflake
- Complianz → SegmentConnecting Complianz to Segment
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- iubenda → BigQueryConnecting iubenda to BigQuery
- OneTrust → BigQueryConnecting OneTrust to BigQuery
Free · 30 min
Get Complianz and BigQuery joined properly
Free30 minutesNo obligation
