Sub topic 1
Why consent choices change what GA4 can measure
When a visitor makes a consent choice, GA4 collects, stores and links different data for that visit. Your reports then differ from what actually happened on the site. This chapter explains the mechanism and the kinds of gaps it creates. Later chapters cover the signals, the setup, and the modelling that estimates part of the missing data.
Prerequisites
This chapter assumes you already know the following:
- GA4 basics: properties, events, parameters, and the standard reports such as Acquisition and Engagement.
- How cookies work and how client-side tracking uses them to recognise a returning browser.
- That privacy rules such as GDPR and the ePrivacy Directive require consent for some kinds of tracking.
- Basic use of Google Tag Manager or gtag.js, enough to know that tags send hits to Google when they fire.
You do not need to have implemented a consent banner. That comes later in the tutorial.
The core idea
GA4 is a measurement system built on identifiers. In a normal setup, the GA4 tag stores a client ID in a first-party cookie (_ga) and a session identifier in a second cookie. Almost every metric you use depends on those identifiers:
- Users and new users count distinct client IDs.
- Sessions group events that share a session identifier.
- Returning-visitor analysis requires the same client ID to appear on more than one day.
- Attribution links a conversion to the traffic source that started the session.
If a visitor declines analytics storage, the tag cannot write or read those cookies. Without them, GA4 cannot tell that two page views belong to the same person. The consent decision does not just remove one visitor's data. It removes the structure that lets GA4 connect events into sessions and users.
That is why consent affects the meaning of your metrics and not only their volume.
What consent controls
Consent Mode is the mechanism that tells Google tags what the visitor allowed. In Consent Mode v2 there are four signals:
| Signal | What it governs | Typical effect when denied |
|---|---|---|
| `analytics_storage` | Reading and writing cookies used for analytics, such as `_ga` | GA4 cannot keep a stable client ID or session across page views |
| `ad_storage` | Cookies and storage used for advertising | Ad cookies are not set or read, so click-based ad attribution is limited |
| `ad_user_data` | Sending user data to Google for advertising purposes | User-provided data is not sent for ads uses |
| `ad_personalization` | Using data for personalised advertising, such as remarketing | The visitor is excluded from remarketing audiences |
The next chapter covers each signal in detail. For now, note that GA4 is most directly affected by analytics_storage. The other three mainly affect Google Ads features that GA4 feeds, such as audiences and conversion export.
Three states for the same visit
A visitor on your site is in one of three situations. What GA4 receives differs in each.
- Consent granted. Tags run normally. Cookies are set, hits carry the client ID, and GA4 builds sessions and users as usual.
- Consent denied, tags blocked (the basic approach). The tags do not load until the visitor consents. If they decline, GA4 receives nothing from that visit.
- Consent denied, tags loaded (the advanced approach). The tags load with all signals set to denied. Instead of full hits, they send limited, cookieless pings that carry consent state and some non-identifying context.
The difference between states 2 and 3 is the subject of the chapter on basic and advanced Consent Mode. This chapter only needs you to see that "denied" does not mean one single outcome.
What depends on consent, element by element
It helps to separate GA4's measurement into layers. Each layer fails differently when consent is denied.
| Layer | Needs | When analytics consent is denied |
|---|---|---|
| Event counts | A hit reaching GA4 | Missing in the basic approach. Partly visible as pings in the advanced approach |
| User identity | Persistent client ID in a cookie | Not available. A returning visitor looks like a new one, or is not recognised at all |
| Sessions | Session identifier stored across page views | Not reliably formed. Page views cannot be tied together |
| Attribution | Source information held across the visit | Weakened. The landing source may be lost before a conversion |
| Audiences | User-level history and ad consent | The visitor cannot be added to audiences |
| Demographics and cross-device | Google signals and user-level data | Not available for the visitor |
Two practical points follow from the table.
First, the loss is not evenly spread across metrics. Page-view counts from a denied visitor can still appear in some setups, while user counts and conversion paths degrade more.
Second, the loss is not evenly spread across visitors. People who decline consent are not a random sample. Their behaviour may differ from the people who accept, which is why simple scaling of observed numbers is risky. Modelling, covered later, exists to handle this problem more carefully.
Why the effect differs by site
The size of the gap depends on four things you can name for your own property.
- Consent rate. If 60% of visitors accept, the observed data covers roughly that share of visits. A site with 90% acceptance has a much smaller gap.
- Region. Sites with large audiences in the EEA and UK typically see lower acceptance and are the places where consent is legally required. A site mainly serving a region without that requirement may collect almost everything.
- Banner design. How prominent and how clear the choices are changes acceptance. A banner redesign can shift your reported traffic overnight without any real change in visitors.
- Implementation timing. If tags fire before the visitor chooses, or the default state is wrong, the data can be too complete (a compliance risk) or too sparse.
Because of the last two items, a sudden change in GA4 numbers is not always a change in behaviour on the site. It can be a change in how consent is collected.
A worked example
Imagine a site with 10,000 visits in a week, all from a region where consent is required.
- 6,000 visits grant analytics consent.
- 4,000 visits deny it.
Basic approach. GA4 receives data for 6,000 visits. Its reports show 6,000 sessions. The 4,000 denied visits are absent, so the report understates traffic by 40%.
If those 6,000 visits produced 120 purchases, GA4 reports 120. The denied visits may have produced more purchases, but GA4 has no record of them.
Advanced approach. GA4 also receives cookieless pings for the 4,000 denied visits. These pings cannot be tied to a user or a session, so they do not appear as ordinary sessions. They do give GA4 information about the unobserved group, which behavioural modelling can use when its conditions are met.
Notice what the example does not claim. It does not say the modelled numbers will match reality. It shows only that the observed numbers are a subset, and the size of the subset is set by the consent rate.
Consent versus other causes of missing data
Not every gap comes from consent. When a number looks low, rule out these other causes before blaming consent:
- Ad blockers and browser protections that stop the tag loading.
- Tags that fail to fire because of a trigger or configuration error.
- Data filters, thresholds, or sampling in the report you are viewing.
- Bot and internal traffic filtering.
- Reporting delays, since recent data can still change.
Consent-related gaps have a recognisable pattern. They track consent rate, they are larger in regions where consent is required, and they change when you change the banner or the consent configuration. Gaps from ad blockers do not respond to banner changes.
Where this leads
The rest of the tutorial follows the order of the problem:
- How each signal and each mode works, and how to set defaults and updates.
- What GA4 actually receives when consent is denied, and where gaps appear in reports.
- How behavioural modelling and conversion modelling estimate part of the missing data, and when they apply.
- Which reports and exports include modelled data, and which, such as BigQuery, do not.
- How to check your setup and interpret differences between GA4 and other sources.
Key points
- GA4 builds users, sessions and attribution from cookie-based identifiers, so denying
analytics_storageremoves the links between events, not just some events. - The four Consent Mode v2 signals cover analytics storage, ad storage, sending user data for ads, and ad personalisation.
- A denied visit can produce no data (tags blocked) or limited cookieless pings (tags loaded). The outcome depends on your implementation.
- The gap is set by consent rate, region, banner design and implementation timing, and the visitors who decline are not a random sample.
- Check other causes of missing data first, then look for the consent pattern.
Exercise
A site's GA4 property shows sessions falling 25% in the week after a new consent banner went live. Server logs show no change in page requests. Give two checks that would help you decide whether the drop comes from consent, and say what result of each would support that explanation.
Show answer
First, compare the drop with the consent rate reported by the banner or consent platform. If the share of visitors who accepted analytics fell by roughly the same proportion, consent is a likely cause. Second, split the drop by region. If it is concentrated in regions where consent is required (for example the EEA and UK) and small elsewhere, that supports consent. A drop spread evenly across all regions, or one that began before the banner change, points to other causes such as a broken tag or filtering. Unchanged server-side page requests are also consistent with consent, because the visitors still arrived but GA4 did not record them.
Exercise
A site uses the basic approach, and 4,000 of its 10,000 weekly visits deny analytics consent. Which of these does GA4 record for the denied visits: event counts, user identity, sessions, or none of them? What changes if the site switches to the advanced approach?
Show answer
Under the basic approach GA4 records none of them for the denied visits, because the tags do not load and nothing is sent. Under the advanced approach the tags load and send cookieless pings with consent state. These pings still carry no persistent client ID, so GA4 still cannot form ordinary users or sessions for the denied visits. The extra pings give GA4 information it can use for modelling, if the eligibility conditions covered later are met.