Skip to main content
CookieYes → BigQueryIntegration guide

Connecting CookieYes to BigQuery

CookieYes serves smaller sites that adopted a consent banner because a plugin suggested it, which frequently means the banner is stricter than the business's legal position requires. 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 CookieYes 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

CookieYes consent state as a BigQuery column, not a filter

Load every order into BigQuery, including declined visitors', with the CookieYes choice as one column per category plus decision time, keyed on order ID. Read the consent cookie at order time, keep click IDs only when advertisement was accepted, and make consent history append-only. Then compare consented with total orders by week and landing source.

BigQuery is the one destination where orders from visitors who declined advertising still belong, because it holds your own business records and the consent decision governs tracking and sharing, not whether you keep your sales. The useful design is to store the CookieYes choice per category next to each order, with the time of the decision, rather than dropping unconsented rows at load. Then you can answer the question this source raises: how much revenue the banner hides from your ad platforms.

Concretely, read the consent cookie your CookieYes install sets at order time (check its name and format on your own site; it stores a yes or no per category) and write one column per category. The join key is the order ID. Click identifiers belong in the same row only if they were captured after advertisement consent. A row with a click ID and a declined advertisement flag is not a data point, it is evidence the banner is misconfigured.

The query that justifies the exercise: consented orders against all orders, by week and by landing source. If the gap is a third of revenue and nearly all your customers are in US states with opt-out rules, you have a concrete number to take to counsel. Keep the consent history append-only, so a visitor who withdraws later does not rewrite what they had agreed to when they ordered.

CookieYes → BigQuery · what breaks

Why this join usually fails — CookieYes → BigQuery

  1. 01

    Whatever join key you decide on never reaches CookieYes

    Default configurations frequently block before consent, so identifier capture is lost on the first page for every visitor.

  2. 02

    A banner stricter than the law requires

    Plugins default to the strictest setting because that is safest for the plugin vendor. For a business whose customers are all in a market with different rules, that default costs a large share of measurable conversions and buys no protection that was needed.

  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.

CookieYes → BigQuery · the fix

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

CookieYes → BigQuery · architecture

How CookieYes and BigQuery actually connect

  1. 1

    CookieYes holds the truth

    For a small business the practical question is often whether the banner configuration matches the obligation. A default-deny banner in a market with no such requirement is data thrown away for nothing.

  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 CookieYes consent record.

  4. 4

    The event source decides reliability

    Send consented conversions with the consent rate stated.

  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.

CookieYes → BigQuery · normal or broken

Working vs. broken, side by side — CookieYes → 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

    Default configurations frequently block before consent, so identifier capture is lost on the first page for every visitor.

  • Sent from the browser

    Plugins default to the strictest setting because that is safest for the plugin vendor. For a business whose customers are all in a market with different rules, that default costs a large share of measurable conversions and buys no protection that was needed.

  • 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

CookieYes → BigQuery · diagnose

Diagnostic order — CookieYes → BigQuery

  1. 01

    Count consent records carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm which regulations actually apply to your customer base

    A legal question, not a technical one, and worth answering before accepting a default that costs you a third of your data.

  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.

CookieYes → BigQuery · prove

How it gets proven — CookieYes → BigQuery

Source of truth

Your order system, with consent state attached to 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, with the configuration checked against the obligation.

CookieYes → 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
  • Confirm which regulations actually apply to your customer base
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Your order system, with consent state attached to the event.

Get my free conversion tracking audit

Free30 minutesNo obligation

CookieYes → BigQuery · when not to buy

When you don't need this — CookieYes → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry whatever join key you decide on.
  • This is the common case for small sites: get the legal position confirmed first. The right banner may be considerably lighter than the one installed.
  • 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.

CookieYes → BigQuery · what we deliver

What gets built — CookieYes → BigQuery

  • Identifier capture into CookieYes

    Check the default blocking behaviour against your actual legal obligation, then capture accordingly.

  • 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 system, with consent state attached to the event.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CookieYes → BigQuery questions, answered

Order records you need to run the business are generally not what a cookie banner governs; it limits tracking identifiers and sharing with ad platforms. Confirm with counsel for your jurisdictions, and keep ad identifiers out of rows without consent.

Free · 30 min

Get CookieYes and BigQuery joined properly

Free30 minutesNo obligation