If your site asks visitors for cookie consent, some of them will say no. What GA4 does with those visitors depends on consent mode, and it explains part of why your GA4 numbers come in below what Search Console or your shop platform reports (why clicks and sessions never match).
This guide explains how GA4 handles consent. Whether and how you must ask for consent is a legal question for your own situation.
What consent mode is
“Consent mode lets you communicate your users’ cookie or app identifier consent status to Google,” according to Google Analytics Help. It isn’t a cookie banner: it works with the consent tool or custom banner you already use, and passes on what each visitor chose.
There are four consent types (developer guide):
| Consent type | Controls | When denied |
|---|---|---|
analytics_storage |
analytics cookies | GA4 “will not read or write first-party analytics cookies” and sends cookieless pings instead |
ad_storage |
advertising cookies | “no new cookies pertaining to advertising may be written” |
ad_user_data |
“sending user data related to advertising to Google” | that data isn’t sent |
ad_personalization |
“personalized advertising” | no personalised advertising |
The last two were added in Google’s November 2023 update, consent mode v2.
Basic vs advanced
| Basic | Advanced | |
|---|---|---|
| Google tags before the visitor chooses | blocked | loaded |
| Visitor declines | nothing is sent | cookieless pings are sent |
| Modeled data in GA4 | “you will not get modeled data” | possible, if the property qualifies |
A cookieless ping carries no cookie. According to Google, it includes things like a timestamp, the browser’s user agent, the referrer, the consent state and a random number per page load, in place of the cookie that would normally recognise a returning browser.
Set it up in the right order
On every page, the default call has to run before the Google tag sends anything. Google’s example denies everything by default:
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});
When the visitor accepts, your consent tool sends an update:
gtag('consent', 'update', {
'ad_user_data': 'granted',
'ad_personalization': 'granted',
'ad_storage': 'granted',
'analytics_storage': 'granted'
});
The order is where most setups break. The default must be called “before any commands that send measurement data (such as config or event),” and “if your consent code is called out of order, consent defaults won’t work.” Google’s recommended sequence:
- The Google tag with the consent default.
- Your consent solution.
gtag('consent', 'update', …)after the visitor chooses.
If your consent tool loads asynchronously, the default call can include 'wait_for_update': 500 to give it 500 milliseconds to respond. Also note that, by default, “no consent mode values are set”: without the default call, tags behave as if everything was granted.
When modeled data appears
With advanced consent mode, GA4 can use behavioral modeling to estimate what visitors who declined analytics cookies did. It doesn’t switch on just because consent mode is installed. The eligibility rules include:
- “at least 1,000 events per day with analytics_storage=‘denied’ for at least 7 days”;
- “at least 1,000 daily users sending events with analytics_storage=‘granted’ for at least 7 of the previous 28 days”;
- consent mode on every page, implemented so tags load before the consent dialog appears.
Even then, Google says meeting these “doesn’t guarantee eligibility.” When a property qualifies, modeling turns on automatically, but it only shows in reports with the Blended reporting identity (Admin → Data display → Reporting identity). The data-quality icon on a report tells you whether estimated data is included. Modeled data isn’t used in audiences, retention reports, user-level explorations or the BigQuery export.
Which to choose (our recommendation)
- Most small sites won’t reach the modeling thresholds. 1,000 daily users who accept cookies is a lot for a small business, so don’t choose advanced mode expecting modeled data you won’t get.
- Advanced still tells you something. Even without modeling, cookieless pings show how much traffic you can’t measure. If your setup and your legal advice allow it, that is useful context.
- Test the order. Open your site in a private window and decline cookies. In your browser’s developer tools, check that the consent default runs before the first GA4 request and that no analytics cookie (
_ga) is written. - Read your numbers as a floor. Whatever you choose, GA4 counts fewer visitors than actually came. Compare trends, not totals, with tools that count differently.