Sub topic 7
How behavioral modelling fills in missing data
This chapter assumes you know the Consent Mode v2 signals, the difference between basic and advanced mode, and what GA4 receives when a visitor denies analytics_storage. It also assumes you can read GA4 standard reports. It covers what behavioral modelling estimates, how it works at a high level, and what it cannot do. The next chapters cover eligibility and reporting identity in detail.
What the model is for
When a visitor denies analytics consent, GA4 cannot set analytics cookies or recognize that person on a later visit. In advanced mode, the page still sends cookieless pings. These carry event information but no persistent identifier. The result is a gap in your user and session counts and in anything that depends on linking events to a person.
Behavioral modelling is Google's attempt to estimate that gap. It uses machine learning to infer the behavior of the unobserved, non-consenting visitors from the behavior of similar visitors who did consent. The output is added to your reports as estimated users, sessions, events, and conversions.
Three points are easy to get wrong:
- The model produces aggregate estimates. It does not rebuild individual journeys or identify anyone.
- The model does not recover the denied visitor's data. Nothing stored under a denied state is retroactively attached to a person.
- The estimate is only as good as the assumption that non-consenting visitors behave like consenting ones.
The inputs the model uses
Google does not publish the model's internals, so treat the following as the documented outline. Do not treat it as a specification.
- Observed consented traffic. Full-fidelity data from visitors with
analytics_storagegranted. This is the training reference for what typical behavior looks like on your property. - Cookieless pings from denied visitors. In advanced mode, these show that denied traffic exists and how much of it there is. They supply volume and coarse context.
- Property-level patterns. The model is trained per property. It does not borrow behavior from other websites.
Basic mode sends nothing when consent is denied, so there are no pings to anchor the estimate. That is why modelling is tied to advanced implementations in the eligibility rules.
What gets modelled
Modelling targets the metrics that go wrong when identifiers are missing:
| Metric area | Why it breaks without consent | Effect of modelling |
|---|---|---|
| Users and new users | No client ID persists, so each visit looks like a new person or is not counted | Estimates the unobserved users |
| Sessions | Session start and continuity depend on cookies | Estimates sessions from denied traffic |
| Conversions and key events | Conversions from denied visitors cannot be tied to a prior visit | Adds estimated conversions |
| Attribution and channel data | Source information is stored in cookies | Partly estimated, with lower confidence |
Event counts behave differently. In advanced mode, cookieless pings are already counted as events, so event totals may include denied traffic before any modelling. Users and sessions are the metrics most affected by modelling.
Why users and event counts can move differently
Suppose a visitor denies consent and views five pages. Advanced mode sends cookieless pings for these events. GA4 cannot tell whether those five events belong to one person or to five. Without modelling, the event count includes them, while the user count has no reliable basis for including them.
Modelling fills in the user and session side. The event-to-user ratio in modelled traffic is therefore partly an output of the model. Do not read it as a measured behavior. Compare events per user across periods with care when the consent rate changes.
Checking eligibility
Modelling does not turn on automatically for every property. The documented conditions include an advanced Consent Mode setup, a minimum volume of events from denied traffic, and a minimum volume of users with granted consent, both sustained over a period. Google has stated figures such as 1,000 events per day with analytics_storage denied for at least seven days, and 1,000 daily users with it granted for at least seven of the previous 28 days. Confirm current thresholds in Google's documentation before relying on them, because they can change. The next chapter covers these conditions.
You can reason about the volume rules with a small script. This one checks daily counts against thresholds you supply:
from typing import List
def modelling_volume_ok(
denied_events_per_day: List[int],
granted_users_per_day: List[int],
denied_threshold: int = 1000,
granted_threshold: int = 1000,
denied_days_needed: int = 7,
granted_days_needed: int = 7,
) -> dict:
"""Check volume conditions against the last 28 days of daily counts.
Both lists are ordered oldest to newest. Thresholds are parameters
because Google may change the published values.
"""
denied_recent = denied_events_per_day[-denied_days_needed:]
denied_ok = (
len(denied_recent) == denied_days_needed
and all(n >= denied_threshold for n in denied_recent)
)
granted_window = granted_users_per_day[-28:]
granted_days = sum(1 for n in granted_window if n >= granted_threshold)
granted_ok = granted_days >= granted_days_needed
return {
"denied_events_ok": denied_ok,
"granted_users_ok": granted_ok,
"eligible_on_volume": denied_ok and granted_ok,
}
if __name__ == "__main__":
denied = [1200, 1100, 1500, 1300, 1250, 1400, 1180]
granted = [900] * 20 + [1100] * 8
print(modelling_volume_ok(denied, granted))With these sample numbers, the denied side passes because every one of the last seven days is at least 1,000. The granted side passes because eight days in the 28-day window reach 1,000. This check covers volume only. It does not cover the implementation requirements.
Measuring how much modelling you depend on
The more denied traffic you have, the more of your reported user count is an estimate. You can measure the share of denied events in BigQuery. This query uses the consent field in the export:
SELECT
event_date,
COUNTIF(privacy_info.analytics_storage = 'Yes') AS granted_events,
COUNTIF(privacy_info.analytics_storage = 'No') AS denied_events,
SAFE_DIVIDE(
COUNTIF(privacy_info.analytics_storage = 'No'),
COUNT(*)
) AS denied_share
FROM `my_project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20261101' AND '20261107'
GROUP BY event_date
ORDER BY event_date;Replace the project, dataset ID, and dates with your own. The export contains observed data only, so these counts include cookieless pings but no modelled values. If denied_share is 40 percent on a day, a large part of the user count in the GA4 interface is estimated. The interface will not show you which part.
Where modelled data appears
Modelled data appears in the GA4 interface: standard reports, Explorations, and the Data API. It is absent from the BigQuery export. This is the main reason numbers from the two sources differ. The export holds what was observed, while the interface may hold observed plus modelled data.
Modelling also depends on the property's reporting identity setting. The Blended identity includes behavioral modelling. The Observed and Device-based identities do not. If you switch identity, historical figures can change, and you should expect users and sessions to shift. The reporting identity chapter explains this in depth.
Limits and failure modes
- Sparse or unusual traffic. A new property, a small site, or one with sharp seasonal swings gives the model little to learn from. Estimates may be unstable or unavailable.
- Biased consent. If people who consent differ from people who deny (for example, mobile visitors deny more often), the model's assumption weakens. Google states that it validates models, but you cannot inspect them.
- Consent banner changes. A new banner design can change the consent rate overnight. The share of modelled data then jumps, and trend lines may bend without any real change in behavior.
- Incomplete implementation. If tags fire before the default consent state is set, some denied visitors are recorded as granted. They are then counted as observed users with full cookies, which is a compliance problem and a data quality problem.
- Delay. Modelled figures can be revised as the model processes more data, so recent days may change after you first view them.
- Not a replacement for consent. Modelling does not justify collecting more data from denied visitors. It only estimates from what was legitimately collected.
A practical workflow
- Confirm that your setup is advanced mode and that defaults are set before tags load.
- Run the denied-share query weekly and chart it next to the user count.
- When users and sessions move, check whether
denied_sharemoved first. - Compare GA4 interface users with the BigQuery observed users. A persistent gap that tracks
denied_shareis expected. A gap that does not track it needs another explanation, such as filters, thresholding, or sampling. - Record the dates of consent banner changes as annotations, so later readers can separate real behavior changes from changes in the share of modelled data.
Summary of the working model
Behavioral modelling estimates users and sessions that consent denial hid, using consented behavior and cookieless pings as inputs. It requires advanced mode and sufficient traffic, appears in the GA4 interface and API under the Blended identity, and is absent from BigQuery. Your job is to know how large the denied share is, to know when it changes, and to read the interface numbers with that in mind.
Exercise
A site's GA4 interface shows 52,000 users for last week, and the BigQuery export (observed data only) shows 44,000 distinct users. The denied-consent share of events was 38 percent, reporting identity is Blended, and the property meets the volume conditions in advanced mode. Give two reasons the interface figure can be higher, and explain why the 8,000 difference cannot be treated as the exact number of modelled users.
Show answer
First, behavioral modelling adds estimated users from denied traffic to the interface figures, and the BigQuery export does not contain modelled data. Second, the interface and BigQuery can count users differently, for example through approximate user counting in the interface, so part of the gap may be a counting method difference. The 8,000 is not an exact modelled-user count because it mixes the modelling effect with method differences, identity settings, and thresholding or timing effects, and the model's output is an estimate that Google does not break out in the reports.
Exercise
A team switches from basic to advanced Consent Mode and sees event counts rise within a day, but user counts barely change for the first weeks. Explain both observations.
Show answer
In advanced mode, denied visitors now send cookieless pings, so those events are counted immediately and event totals rise. User counts depend on modelling, which only applies once the property meets the eligibility conditions, including sustained volumes of denied events and granted users over several days. Until the model has enough history and the conditions are met, the denied visitors are not added to the user estimate, so user counts change little.