Sub topic 5
What GA4 receives when consent is denied
This chapter assumes you know how Consent Mode v2 signals work and how basic mode differs from advanced mode. It also assumes you can read a network request in your browser's developer tools. The question here is narrow. When a visitor denies consent, what leaves the browser, what does GA4 do with it, and what never arrives?
Start with the mode, not the visitor
What GA4 receives from a visitor who denies consent depends mostly on the mode you implemented.
- Basic mode: Google tags are blocked until the visitor chooses. If the visitor denies consent, no request goes to Google. GA4 receives nothing from that visit.
- Advanced mode: Google tags load on page load with every consent signal set to denied. The tags still send requests, but those requests are restricted. These requests are often called cookieless pings.
The rest of this chapter is mostly about advanced mode, because basic mode has nothing to describe once consent is denied.
What a cookieless ping contains
When analytics_storage is denied, the GA4 tag does not read or write the _ga and _ga_<container-id> cookies. It also does not store a client ID in localStorage or elsewhere on the device. The tag still sends a request to the collection endpoint. That request carries:
- The event name, such as
page_view, and its parameters. - The page URL, page title and referrer.
- The consent state, encoded in the
gcsandgcdparameters. - Browser and device details the request exposes anyway: user agent, language, screen resolution.
- A timestamp.
- The request's IP address, which Google uses to derive coarse location. GA4 does not log or store the IP address.
The request does not carry a persistent client ID. Without one, GA4 cannot tell that two pings came from the same browser. It cannot join a page view and a purchase into a session, and it cannot recognize a returning visitor.
You can see the consent state yourself. Open the Network tab, filter for collect, and look at the gcs value on the request. The value G100 means both ad storage and analytics storage are denied. G111 means both are granted. Compare it against the exact signals you set in your default consent command. A tag that shows G111 before the visitor clicks anything means your default is running too late or is wrong.
Which signal removes which data
Each signal removes a different set of data. A visitor can deny one signal and grant another, so the combinations matter.
| Signal | When denied, GA4 and Google Ads do not |
|---|---|
| `analytics_storage` | Set or read Analytics cookies. Send a client ID or session identifiers. Count the visitor as a user or session in standard reports. |
| `ad_storage` | Set or read advertising cookies. Use cookie-based advertising identifiers. Attribute conversions through ad cookies. |
| `ad_user_data` | Send user data to Google for advertising purposes. |
| `ad_personalization` | Use the data for personalized advertising, such as remarketing. |
Three consequences follow from the table.
- A visitor who grants
analytics_storagebut deniesad_storagestill appears in GA4 reports. The loss is in advertising features, such as ad-cookie-based attribution and remarketing audiences. - A visitor who denies
analytics_storagebut grantsad_storageis the opposite case. Advertising cookies may be used, but GA4 reports still cannot identify the visitor. ad_user_dataandad_personalizationare the two signals added in version 2. They matter for audience lists and for sending conversions and user data to Google Ads. Leaving them out of your default is a common v2 migration error.
Click IDs and ad_storage
When someone arrives from a Google ad, the landing URL carries a click ID such as gclid. With ad_storage denied, Google tags cannot store that ID in a cookie, so it is lost when the visitor navigates to the next page. Two settings change this behavior:
url_passthroughkeeps ad click and client information in the URLs of internal links, so conversion measurement can still work without cookies.ads_data_redactionremoves ad click identifiers from the requests that Google tags send whilead_storageis denied.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
analytics_storage: 'denied',
wait_for_update: 500
});
// Keep click information in URLs while ad_storage is denied.
gtag('set', 'url_passthrough', true);
// Redact ad click identifiers from requests while ad_storage is denied.
gtag('set', 'ads_data_redaction', true);url_passthrough has a side effect. Your internal links gain _gl or gclid parameters, which can fragment page-path reports and break strict URL matching on your side. Check your canonical tags and your reporting filters before enabling it.
What happens at the moment of consent
A visitor in advanced mode can deny, then change their mind. When your banner calls gtag('consent', 'update', ...) with analytics_storage: 'granted', the tag begins to set cookies and send full requests. Two things are worth knowing.
- Earlier pings are not re-attached. Pings sent while consent was denied had no client ID. GA4 does not go back and link them to the new ID. The user's measured session starts from the first granted hit.
- The first granted hit may not be the landing page. If your banner only appears after a delay, or the update runs after the first
page_viewfired, the landing page view was sent as a cookieless ping. The measured session then begins on a later page, and attributes such as source and landing page can differ from what the visitor actually did.
In basic mode the equivalent problem is timing. The tag does not fire until your banner reports the choice, so a slow banner delays the page_view, and a visitor who leaves before choosing is never measured.
Where the pings go
Pings with denied analytics_storage are not processed as ordinary events. They do not add to user counts, session counts, or event counts in standard reports in the way consented events do. Their role is as input for behavioral modelling, which later chapters cover, including the eligibility conditions. For now, treat pings as signals that Google uses for estimation, not as rows you can find in a report.
The consent state is recorded for the data that does reach exports. In the BigQuery export, events carry consent fields under privacy_info. This query counts events per day by their analytics_storage value, so you can see how much of the export comes from each consent state:
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;Replace the project, dataset ID and dates with your own. Do not assume the output lists every denied visit. Whether cookieless pings appear as rows in your export, and with which identifiers populated, is something to verify in your own dataset rather than assume. The export chapter covers what is and is not modelled.
Common errors
- Default set too late. The
consentdefaultcommand must run before any Google tag loads. If a tag loads first, it runs with its own assumptions and the first requests carry the wrong consent state. - Only two of four signals set. Setting
ad_storageandanalytics_storagebut omittingad_user_dataandad_personalizationleaves the v2 signals unspecified, and Google may treat them as not provided. - Banner updates only one signal. If your banner grants
analytics_storagebut never updates the other three, they stay denied. The effect shows in advertising features, not in GA4 reports, so it is easy to miss. - Expecting denied visits in standard reports. If you opened the Realtime report and saw nothing for a denied visit, that is expected behavior, not a broken tag.
- Mixing up basic and advanced when debugging. In basic mode, "no request in the Network tab" is correct for a denied visitor. In advanced mode, the same result means something is blocking your tag.
A short debugging routine
- Open the page in a clean browser profile so no consent choice is stored.
- Before interacting with the banner, check the Network tab for
collectrequests. In advanced mode you should see pings withgcs=G100, or a similar denied state. In basic mode you should see none. - Check Application, then Cookies. No
_gacookies should exist whileanalytics_storageis denied. - Deny consent in the banner. Confirm that the state and the request pattern do not change.
- Repeat with consent granted. Confirm the cookies appear and the
gcsvalue changes.
Exercise
A site runs advanced Consent Mode. A visitor lands on the home page, ignores the banner for 20 seconds while browsing two more pages, then clicks "Accept". Which of the visitor's page views are measured with a client ID, and why might the session's landing page in GA4 differ from the page they actually entered on?
Show answer
Only hits sent after the consent update with analytics_storage: 'granted' carry a client ID and cookies. The first three page views were sent as cookieless pings with no identifier, and GA4 does not re-attach them to the new client ID. The measured session therefore starts at the first granted hit, so its landing page and source attributes reflect that later page, not the page the visitor really entered on.
Exercise
You see no _ga cookie and no network requests to the GA4 collection endpoint for a visitor who denied consent. Is this a bug? Answer separately for basic mode and advanced mode.
Show answer
In basic mode this is expected, because tags are blocked until the visitor consents, so a denied visitor sends nothing. In advanced mode the absent cookie is expected, but the absent requests are not. The tag should load and send cookieless pings with a denied consent state, so missing requests suggest something is blocking the tag or the setup is actually basic.