Sub topic 11
Exports and BigQuery: what is not modelled
This chapter assumes you know how the GA4 BigQuery export is structured (daily events_YYYYMMDD tables, one row per event). It also assumes you have read the earlier chapters on Consent Mode signals and behavioral modelling. Here you will learn which data paths carry modelled data and which carry only what was observed. You will also learn how to measure the consent gap from inside BigQuery.
Modelled data lives in the reporting layer
Behavioral modelling is a calculation GA4 applies when it builds reports. It takes events from visitors who granted consent and estimates the users and sessions that denied consent and left no identifiers. The estimate is a derived number. It is not a set of rows that someone collected.
The BigQuery export is different. It writes the events GA4 actually received. It does not add rows for modelled users and does not adjust counts to account for them. As a result:
- Reports and Explorations in the GA4 interface can include modelled data, when the property meets the eligibility conditions.
- The raw BigQuery export contains only observed events. Treat it as unmodelled.
- Conversion modelling in Google Ads is applied inside Google Ads. It is not written back to the GA4 export.
If you rebuild a GA4 report in SQL and the numbers are lower than the interface, modelling is a likely cause. It is not the only possible cause, as a later section explains.
What the export contains for each consent state
What lands in BigQuery depends on the Consent Mode implementation you chose earlier.
| Situation | What reaches GA4 | What the export contains |
|---|---|---|
| Consent granted | Full events with cookie identifiers | Normal rows with identifiers populated |
| Denied, basic mode | Nothing, because tags are blocked until consent | No rows at all |
| Denied, advanced mode | Cookieless pings with consent state attached | Rows for the pings, without the identifiers a cookie provides |
| Modelled users | Not collected | No rows |
The last row is the main point of this chapter. Modelled users have no events, so they cannot appear in an events table.
For advanced mode, the exported rows still carry consent information in the privacy_info record. The fields you will use most are:
privacy_info.analytics_storage: the analytics storage state for the event. Expect values such asYes,No, or null when the state was not set.privacy_info.ads_storage: the same idea for ad storage.privacy_info.uses_transient_token: whether a short-lived token was used because analytics storage was denied.
The exact values and fields can change. Run a SELECT DISTINCT on these columns in your own export before you write logic that depends on them.
Measuring the gap in BigQuery
You cannot see modelled users in BigQuery, but you can see how much of your observed data came from each consent state. That ratio tells you how much of your report depends on modelling.
The query below counts events per day by analytics_storage state. Replace the project, dataset ID and dates with your own.
SELECT
event_date,
privacy_info.analytics_storage AS analytics_storage,
COUNT(*) AS events
FROM `my_project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20261101' AND '20261107'
GROUP BY event_date, analytics_storage
ORDER BY event_date, analytics_storage;Read the result like this:
- A large share of events in the denied state means the interface depends heavily on modelling, if the property is eligible for it.
- A near-zero denied share with basic mode is expected. Denied visitors send nothing, so they never show up as a denied row.
- A near-zero denied share with advanced mode suggests a problem. Either most visitors consent, or your default is not being set before tags load.
Events are not users. To see how identifiers are affected, count rows with and without a user_pseudo_id:
SELECT
event_date,
COUNTIF(user_pseudo_id IS NULL) AS events_without_user_id,
COUNTIF(user_pseudo_id IS NOT NULL) AS events_with_user_id,
COUNT(DISTINCT user_pseudo_id) AS distinct_users
FROM `my_project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20261101' AND '20261107'
GROUP BY event_date
ORDER BY event_date;The distinct_users figure counts only visitors who have an identifier. Compare it with the Users metric in the interface for the same dates. The interface figure can be higher because it may include modelled users and uses a different reporting identity.
Why BigQuery and the interface rarely match exactly
Modelling is only one reason the two sources differ. When you investigate a gap, check these causes in order, from most mechanical to most subtle.
- Date and timezone. The export tables are split by the property's reporting timezone. Queries that cast
event_timestampinto a different timezone shift events between days. - Intraday versus daily tables.
events_intraday_*tables are incomplete and replaced by the daily table. Mixing them double counts or misses data. - Metric definitions. The interface's Users, Active users and Sessions are computed metrics. In SQL you must rebuild them, for example by counting distinct
user_pseudo_idor distinct combinations ofuser_pseudo_idandga_session_id. - Reporting identity. The interface may deduplicate people across devices using User-ID or Google signals. The export gives you the raw fields, and you decide how to combine them.
- Thresholds and sampling. Some interface reports apply data thresholds or sampling. The export does not.
- Behavioral modelling. Applied only in the reporting layer, as described above.
Work through causes 1 to 5 first. Attribute the remainder to modelling only after those are ruled out and you have confirmed the property is eligible.
Other outputs that may not match
BigQuery is the clearest case, but the same question applies to every way of getting data out of GA4. For each one, check the current documentation, because Google changes these details.
- GA4 interface reports and Explorations. These read from the reporting layer, where modelling applies when eligible.
- Looker Studio and the Data API. These read from the same reporting layer as the interface, so they usually show the same figures as the matching report. Confirm this by comparing a single metric over one date range. Do not assume it.
- Other exports and integrations. If you send data to a warehouse by another route, assume it holds observed events only unless the documentation says otherwise.
- Google Ads. Imported conversions and Ads-side conversion modelling are separate from GA4 modelling. A conversion count in Ads and one in GA4 can both be correct and still differ.
A practical rule: when a number comes from a table of events, it is observed. When it comes from an aggregated report, it may include estimates.
Building a consent-aware warehouse model
If you analyze data in BigQuery, plan for the gap instead of hiding it.
- Keep the consent state as a column. Carry
privacy_info.analytics_storageinto your modelled tables so every aggregate can be split by it. - Report observed and total separately. Show observed users from BigQuery next to the interface's figure. Do not merge them into one number.
- Do not join denied-state rows to people. Pings without identifiers cannot be tied to a person. Joining them to a CRM or user table by guesswork breaks the consent promise you made to the visitor.
- Compare rates, not totals. Conversion rate among observed users is usually more stable than raw counts, because the denied population is missing from both numerator and denominator. It is still biased if consenting visitors behave differently from those who decline, so treat rates as a sample, not a census.
- Track the consent mix over time. A change in banner design or default region settings shifts the denied share. That shift can look like a traffic drop in raw counts.
Common mistakes
- Expecting modelled users in BigQuery. They are not there, and no query will find them.
- Treating basic mode exports as incomplete. With basic mode, denied visitors send nothing. The export is correct. The missing data was never collected.
- Comparing a partial day. The current day's data sits in intraday tables and can change.
- Using
COUNT(DISTINCT user_pseudo_id)as "Users" in every case. It is a reasonable approximation of observed users, not a copy of the interface metric. - Assuming a gap means a bug. Some gap is expected whenever visitors deny consent. Investigate only the part you cannot explain.
Summary
Modelled data is created in the GA4 reporting layer and applied to reports when a property is eligible. The BigQuery export holds the events GA4 received and nothing more. Use the export to measure the consent mix and to build your own analysis of observed behavior. Use the interface when you want Google's estimate that includes modelling. When the two disagree, rule out timezone, intraday tables, metric definitions, identity and thresholds before you blame modelling.
Exercise
Your GA4 interface shows 12,000 users for last week. A BigQuery query counting distinct userpseudoid for the same week returns 9,500. The property uses advanced Consent Mode and meets the eligibility conditions for behavioral modelling. List the checks you would run before concluding that the 2,500 difference is modelled users.
Show answer
First confirm the date range and timezone match the property's reporting timezone, and that the query reads only the daily tables, not a mix with intraday tables. Next confirm the interface metric is Users and not Active users, and that the SQL logic matches that definition. Check the reporting identity setting, because deduplication with User-ID or Google signals can change the interface count compared with raw userpseudoid counts. Check whether the interface report applies data thresholds or sampling. Then run the consent-state query to see how many events have analytics_storage denied. If the denied share is substantial and the other causes are ruled out, modelling is a plausible explanation. Even then, the size of the modelled portion cannot be read directly from BigQuery, so describe it as an estimate.
Exercise
A colleague says that because the site uses basic Consent Mode, the BigQuery export must be missing events from visitors who denied consent, and asks you to fix the export. What do you tell them?
Show answer
With basic mode, tags are blocked until the visitor consents, so denied visitors send no data to GA4. The export holds everything GA4 received, so nothing is missing from it. The data was never collected and cannot be recovered. The interface may still show modelled estimates for those visitors if the property is eligible, but those estimates are not written to the export. No export fix is needed. If the business needs more visibility into denied traffic, the option is to evaluate advanced mode, with legal review, because it sends cookieless pings that appear in the export without identifiers.