GA4 is not cookieless. By default the Google tag sets first-party cookies (_ga and _ga_<container-id>), and GA4 has no supported "storage off" switch of the kind Universal Analytics had. The closest option is Consent Mode v2 in advanced mode: when a visitor declines, GA4 sends cookieless pings and fills the gaps with behavioral modeling. That is estimation, not cookieless measurement.
This guide is for site owners and marketers with EU or UK traffic who launched a cookie banner and saw GA4 numbers fall, or are about to. It covers what GA4 stores, a numbered Consent Mode v2 setup in Google Tag Manager, verification, what breaks in reports, and when to add a cookieless tool. Most top-ranking guides still describe the Universal Analytics method (storage: 'none'), which GA4 does not support.
Yes. GA4 sets first-party HTTP cookies through the Google tag, whether it is loaded with gtag.js or Google Tag Manager. Google's own cookie usage page lists two cookies for websites: _ga, "used to distinguish users", and _ga_<container-id>, "used to persist session state". Both expire after 2 years by default, and the expiry can be changed from "immediately to 25 months" or reset relative to the most recent visit.
The _ga value holds the client ID, a random number plus the timestamp of the first visit, which is how GA4 tells a returning browser from a new one (MonsterInsights). If the property is linked to Google Ads, extra advertising measurement cookies are set, including first-party conversion cookies such as _gcl_* (Google consent mode reference).
_ga — What it stores: Client ID: random number + first-visit timestamp; Default lifetime: 2 years (Google); What breaks without it: Unique visitors, new vs returning users, user-level attribution
_ga_<container-id> — What it stores: Session state for the current property; Default lifetime: 2 years (Google); What breaks without it: Sessions, engagement rate, session duration, session source
_gcl_* (only with Google Ads linking) — What it stores: Ad-click identifiers (GCLID) for conversions; Default lifetime: Not stated on Google's GA cookie page; What breaks without it: Click-ID-based conversion attribution to Google Ads
Some guides still claim GA4 "is cookieless". The MonsterInsights guide says so, then explains that the term only means GA4 does not use third-party cookies and "relies on first-party cookies" (MonsterInsights). Without those first-party cookies GA4 cannot count unique visitors, returning users or sessions. Browsers also limit them: Safari, for example, shortens the life of cookies written by scripts (see Safari and other browser limits on cookies).
Under the ePrivacy rules these are non-essential cookies, so in the EU and UK they normally sit behind a consent banner. For the legal detail, see whether you need a cookie banner for analytics.
In Universal Analytics there was a workaround. You could set storage: 'none' (often with a custom clientId) in the tracker settings or in GTM, which produced what guides called "anonymous Google Analytics tracking". Every hit got a fresh client ID, so only hit-level data such as pageviews and events stayed usable. Users, sessions, bounce rate, session duration, goals and any UTM attribution beyond the landing page broke. UA also had an opt-in IP masking setting that zeroed the last octet of IPv4 addresses (Google).
Those guides are outdated. Standard Universal Analytics properties stopped processing hits on July 1, 2023, and 360 properties with a current order got an extension that ended on July 1, 2024 (Google).
GA4 has no documented equivalent of storage: 'none'. IP masking is gone as a setting too: Google says "in Google Analytics 4, IP masking is not necessary since IP addresses are not logged or stored" (Google).
Two hacks still circulate. Writing the client ID to local storage instead of a cookie doesn't change the legal picture, because ePrivacy Art. 5(3) covers any storage of or access to information on the device, not just cookies. Practitioners in r/gdpr note that the rule has been read to include "all similar tracking technologies" (Reddit). Generating a random ID on every page takes you back to UA's broken hit-level data.
GA4 default — Cookies on device: Yes: _ga, _ga_<id>; Consent still needed in EU?: Yes; Users/sessions: Counted; Attribution: Full, for consenting users
UA storage: 'none' (legacy) — Cookies on device: No; Consent still needed in EU?: Debated; UA stopped processing in 2023; Users/sessions: Broken: each hit is a new user; Attribution: Landing page only
GA4 + Consent Mode advanced (denied visitors) — Cookies on device: No (cookieless pings); Consent still needed in EU?: Banner needed to collect the signal; pings are a legal judgment call; Users/sessions: Modeled, only above thresholds; Attribution: Modeled conversions
GA4 via server-side GTM — Cookies on device: Yes, can be set server-side; Consent still needed in EU?: Yes; Users/sessions: Counted for consenting users; Attribution: Full, for consenting users
Cookieless analytics tool — Cookies on device: No; Consent still needed in EU?: Often designed not to need it; depends on legal review; Users/sessions: Counted per day, no cross-day stitching; Attribution: Source/UTM per visit
That leaves three real options, covered in the rest of this guide: Consent Mode v2 in advanced mode (cookieless pings plus modeling), server-side GTM (changes where data flows, not whether consent is needed), and a separate cookieless analytics tool alongside GA4.
Consent Mode is Google's API for passing a visitor's banner choice to Google tags. It has four consent parameters (Google consent mode reference):
ad_storage — Controls: Storage (such as cookies) related to advertising; Effect when denied: No ad cookies read or written; requests go through a different domain; Google signals collect no data; Ads products truncate IPs
analytics_storage — Controls: Storage related to analytics, such as visit duration; Effect when denied: No first-party analytics cookies read or written; cookieless pings sent and used for modeling
ad_user_data — Controls: Sending user data to Google for advertising; Effect when denied: Personal data for ads disabled; click-ID conversion export to Ads limited; conversion pings sent cookieless
ad_personalization — Controls: Personalized advertising; Effect when denied: Remarketing and personalized ads in Google Ads, DV360 and SA360 receive no data
Version 2 added ad_user_data and ad_personalization. From March 2024, EEA customers still on v1 had ad_storage automatically mapped to ad_user_data, and Google says advertisers must share consent signals to keep using measurement, personalization and remarketing features in the EEA (Google Tag Manager Help).
With analytics_storage='denied', GA4 does not read or write analytics cookies but still sends cookieless pings. Google says these pings, as part of normal HTTP communication, "may include the following information: user agent, screen resolution, IP address", and that "Google Analytics does not store or log IP addresses" (Google). Fields you set yourself, such as user_id and custom dimensions, are sent as normal.
Tag loads before consent? — Basic consent mode: No, blocked until the banner interaction; Advanced consent mode: Yes, loads on arrival with denied defaults
Data sent on deny — Basic consent mode: None; Advanced consent mode: Cookieless pings (consent state, events, key events)
Modeling — Basic consent mode: General model (less detailed); Advanced consent mode: Advertiser-specific model (more detailed)
Typical use — Basic consent mode: Strict legal reading, no data before opt-in; Advanced consent mode: Sites that want modeled data for refusers
Source for the comparison: Google consent mode overview.
What GA4 sends in basic vs advanced Consent Mode before and after the visitor's choice.
Consent Mode keeps GA4's cookie-based design and fills the gaps with probabilistic tracking (behavioral and conversion modeling). Denied visitors are estimated, not counted, and modeled data appears only under the Blended reporting identity (Google). As one r/GoogleAnalytics commenter puts it, GA4 "does not do cookieless"; the model "relies on a mix of fully tracked and cookieless" data (Reddit).
Advanced mode is also a legal decision. Practitioners point out that cookieless pings carry inferred technical data and are "still considered personal data processing by some regulators" (Reddit). See GDPR and ePrivacy rules for cookieless pings.
Modeling is not automatic. Google's behavioral modeling page sets these eligibility criteria:
consent mode enabled on all pages, with tags loading before the consent dialog (advanced implementation);
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' on at least 7 of the previous 28 days.
Google adds that it "may take more than 7 days" of meeting the threshold to train the model, and says it keeps working to expand eligibility, so the numbers can change. A site below these volumes gets no modeled data at all: reports show consented users only. One practitioner on Reddit reports that modeling "may take a few months" to show up (Reddit).
The steps below are for a Google Tag Manager web container. If you use gtag.js directly, the same logic is two commands. The default must run before any config or event command on every page, and update runs when the visitor chooses (Google):
// Before the Google tag config: deny by default in the EEA, UK and Switzerland
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'region': ['AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IS','IE','IT','LV','LI','LT','LU','MT','NL','NO','PL','PT','RO','SK','SI','ES','SE','GB','CH'],
'wait_for_update': 500
});
// Outside those regions, only if your legal basis allows it
gtag('consent', 'default', {
'ad_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted',
'analytics_storage': 'granted'
});
// When the visitor accepts analytics but not ads
gtag('consent', 'update', {
'analytics_storage': 'granted',
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});
The more specific region setting takes precedence, and wait_for_update gives an asynchronous banner 500 ms to send an update before tags fire (Google).
How a page view moves from denied defaults and cookieless pings to cookies and full hits after consent.
Pick a consent management platform that sends all four v2 signals. Google's help center has setup guides for 45 CMPs and CMS platforms, including Cookiebot, OneTrust, Usercentrics, CookieYes, Didomi, iubenda and Complianz (Google). In GTM, prefer the CMP's template from the Community Template Gallery. After installing, check how it categorises scripts: a CMP that puts the wrong tags in the wrong category is a common cause of a traffic drop right after launch.
Go to Admin > Container Settings and, under Additional Settings, select "Enable consent overview" (Google). The overview shows every tag's consent configuration in one place. Google tags (GA4, Google Ads) have built-in consent checks and adjust their behavior natively. Non-Google tags need "additional consent checks" set per tag; the default "Not set" performs none. Open the overview after installing the CMP and look for non-Google tags that still show "Not set".
Use the CMP template or a tag on the Consent Initialization trigger, which "will always fire before all other tags, including any Initialization triggers" (Google). Set analytics_storage, ad_storage, ad_user_data and ad_personalization to denied for regions that require opt-in, and add wait_for_update so the banner has time to respond. In GTM, custom templates use setDefaultConsentState, not gtag commands (Google). If the default fires after the GA4 tag, the first hit writes _ga before consent exists. Set the region list to match your banner: the EEA, UK and Switzerland usually get denied defaults, while other regions can get granted defaults only if your legal basis allows it.
The CMP must fire an update (updateConsentState in a template, or a data layer event your tags listen for) on accept and on reject. It also has to restore the stored choice on returning visits, before tags fire. Partial choices need correct mapping: "analytics yes, ads no" means analytics_storage granted and the three ad parameters denied. Google advises calling update "as soon as consent changes" (Google).
Basic mode blocks the Google tag until consent, so refusers send nothing and only Google's general model applies. Advanced mode lets the tag load on all pages, so it sends cookieless pings while consent is denied and qualifies for the advertiser-specific model (Google). For advanced mode, fire the GA4 configuration on all pages with no blocking trigger, and leave its built-in consent checks to do the work. UTM parameters and the GCLID in the landing URL travel with the cookieless ping. If you need landing UTMs later, for a conversion after consent, keep only lightweight, non-sensitive values in the data layer for that page view.
In GA4 Admin, review the consent settings and confirm the property receives EEA consent signals. Set Reporting identity to Blended so modeled data can appear; you need Editor access or above (Google). Review data retention: event-level data can be kept for 2 or 14 months on standard properties, and the setting affects explorations and funnel reports (Google). The default is 2 months (MonsterInsights). Finally, check whether Google signals is on, since ad_storage denied stops it from collecting data for that traffic.
Server-side tracking moves the collection endpoint to a server container you control, usually on a subdomain of your site. The container uses the same tag, trigger and variable model as web GTM, and Google lists better page performance, more detailed privacy controls and better data quality as benefits (Google). You can host it on Google Cloud (Cloud Run, App Engine) or another platform.
In practice it changes four things. Requests go to a first-party endpoint, so ad blockers and browser limits have less to block. You can strip or truncate IP, user agent and URL parameters before forwarding to GA4. Cookies can be set from the server, which gives them a longer life in Safari than script-written ones. And fewer third-party scripts run in the browser.
It does not change the basics. GA4 still needs a client ID, consent signals still have to be passed and respected, and moving collection to your server is not a way around ePrivacy if an identifier is still stored on or read from the device. As one r/GoogleAnalytics thread puts it, server-side is best for avoiding browser restrictions, while consent mode manages opt-in and opt-out, and the two complement each other (Reddit).
Where data goes — Client-side GA4: Browser straight to Google; Server-side GTM: Browser to your server container, then to Google
What you can strip — Client-side GA4: Little, beyond tag settings; Server-side GTM: IP, user agent, URL parameters, any field before forwarding
Ad blocker exposure — Client-side GA4: High (known Google domains); Server-side GTM: Lower (first-party subdomain)
Consent requirement — Client-side GA4: Same rules; Server-side GTM: Same rules
Cost — Client-side GA4: Free; Server-side GTM: Hosting plus ongoing maintenance
Hosting and maintenance usually pay off for ad-heavy sites; for a blog they are overkill. Local storage and sessionStorage are not a loophole either, because the same ePrivacy rule covers them. See the legal side of server-side tracking.
Run this checklist in a private window before and after you change anything:
Tag Assistant preview. Load the page without touching the banner. In the Summary, select the earliest Consent event and check that all four parameters show as denied; the Consent tab's "On-page Default" column shows the same (Google). An empty Consent tab means consent mode is not implemented.
Cookies before choice. In Chrome DevTools > Application > Cookies, confirm there is no _ga or _ga_* cookie before accepting.
Network requests. Filter the Network tab for collect. In advanced mode, requests still go out while denied. The gcs parameter shows the consent state; Google does not document its format, but CMP guides read G100 as denied, G101 as analytics granted and G111 as all granted (Secure Privacy).
Accept and reload. The cookies appear, gcs changes, and the "On-page Update" column in Tag Assistant shows granted values.
GA4 DebugView and Realtime. Confirm events arrive after consent with session data attached.
To test regional defaults, set the browser's location to the region you want to check and repeat the steps (Google).
_ga set before any choice — Likely cause: Default fires after the GA4 tag; Fix: Move defaults to Consent Initialization
Ads warns about missing signals — Likely cause: CMP sends only v1 parameters; Fix: Update the CMP template to send ad_user_data and ad_personalization
No collect requests while denied in "advanced" mode — Likely cause: GA4 tag blocked by a consent trigger; Fix: Remove the blocking trigger; rely on built-in checks
Returning visitors treated as new refusers — Likely cause: Stored choice not re-applied on load; Fix: Fire the update from the CMP before tags on each page view
Defaults missing intermittently — Likely cause: Default set asynchronously; Fix: Set defaults synchronously, per Google's guidance
After a compliant banner launches, GA4 shows consented visitors plus, if you qualify, modeled ones. Users and sessions drop. Consenting visitors are not a random sample, so device, country and channel shares shift. In one discussion, a practitioner says that "a certain type of customer just accepts and a certain type of customer never accepts" (YouTube, Signal Loss). Year-over-year comparisons break from the day the banner went live, so add an annotation on that date.
Attribution and conversion paths cover consenting users only, and Google Ads conversions for refusers depend on conversion modeling. Below the modeling thresholds, nothing is filled in.
Reported rejection rates vary a lot by region and banner design. Plausible cites EU acceptance rates of 40–50% and US rates around 65–75%, plus an Orbit Media comparison where GA4 captured 55.6% of the traffic Plausible counted on the same site (Plausible). Matomo reports that the UK ICO's own site traffic dropped 90.8% after it showed a banner (Matomo). In the Signal Loss discussion, practitioners describe GA4 data as "decimated" and say they've seen sites where at most 20–30% of visitors accept (YouTube). These are vendor and practitioner reports, not benchmarks for your site.
To estimate your own consent rate, compare accept and reject counts in the CMP dashboard, or compare GA4 sessions with server logs or another tool. Google Search Console is a cookie-free cross-check: its clicks don't depend on consent, so after the banner the gap between GSC organic clicks and GA4 organic sessions widens. A cookieless tool such as Statable counts visitors who decline the banner, giving a baseline for consented GA4 numbers, and its GA4 history import keeps YoY comparisons in one place. Fixing attribution itself (Enhanced Conversions, modeling, MMM) is a separate topic.
Users — What happens for visitors who deny: Not counted as users; Modeled?: Yes, under Blended, above thresholds; How to cross-check: CMP accept rate, cookieless tool visitors
Sessions — What happens for visitors who deny: No session state, no session count; Modeled?: Yes, under Blended, above thresholds; How to cross-check: Server logs, cookieless tool sessions
Conversions / key events — What happens for visitors who deny: Sent as cookieless pings; Modeled?: Conversion modeling, mainly for Ads; How to cross-check: Backend orders or CRM leads
Channels — What happens for visitors who deny: Shares skew towards consenting segments; Modeled?: Partly; How to cross-check: GSC clicks vs GA4 organic sessions
Landing pages — What happens for visitors who deny: Under-counted for refusers; Modeled?: Partly; How to cross-check: Server logs per URL
Year-over-year — What happens for visitors who deny: Breaks at the banner launch date; Modeled?: No; How to cross-check: Annotation; tool with imported history
Many teams keep GA4 for its feature set and Ads integration and add a consent-free tool for complete traffic counts: "a lot of people I know use both," one r/GoogleAnalytics commenter writes (Reddit).
Add one if:
your consent rate is low;
you are below the 1,000-event and 1,000-user modeling thresholds;
you need trend continuity across the banner launch;
your only GA4 use is traffic and content reports.
Stay with GA4 and Consent Mode alone if you rely on Google Ads bidding, audiences and remarketing, which need consented data.
Statable sets no cookies and writes nothing to the visitor's device; it uses a daily-changing per-site identifier, with no fingerprinting or cross-site tracking. The IP address is used on arrival to compute that identifier and derive location, then discarded and never stored. Data is processed and stored in the Netherlands by Key Arg B.V., a self-funded company with no advertising business. No consent banner is needed for analytics.
Statable imports your full GA4 history via read-only OAuth, so running it in parallel or switching doesn't start from an empty dashboard. It also keeps every event at full resolution for as long as the account exists, against GA4's 2-month default and 14-month maximum for event-level data. It shows sessions, bounce rate and session duration in real time, with goals, funnels and Google Search Console integration. The script is about 2 KB; plans start at $9/month after a 30-day trial with no card.
Cookies — GA4 + Consent Mode v2: _ga, _ga_<id> after consent; Cookieless tool (Statable): None; nothing written to the device
Banner for analytics — GA4 + Consent Mode v2: Required in EU/UK; Cookieless tool (Statable): Not required for analytics
Refusers — GA4 + Consent Mode v2: Modeled above thresholds, otherwise missing; Cookieless tool (Statable): Counted (Do Not Track / GPC visits excluded)
Data retention — GA4 + Consent Mode v2: 2 months default, 14 months max (event-level); Cookieless tool (Statable): Full resolution for the life of the account
Ads integration — GA4 + Consent Mode v2: Native Google Ads, audiences, remarketing; Cookieless tool (Statable): None; data not used for ads
GA4 history — GA4 + Consent Mode v2: Native; Cookieless tool (Statable): Imported via read-only OAuth
In the CMP, don't put a cookieless script in the "analytics" category if your legal review says it needs no consent, or the CMP blocks it. Run both tools in parallel for a few weeks and compare. A cookieless analytics tool removes one reason for a banner, not all of them: ad pixels, video embeds and chat widgets may still need consent, and the site owner remains the controller. For the mechanics and trade-offs (daily uniques, no cross-day stitching), see how cookieless analytics works.
This article is not legal advice.
No. By default it sets the first-party _ga and _ga_<container-id> cookies, each with a 2-year default lifetime (Google). "Cookieless" applies only to the pings GA4 sends under Consent Mode when analytics_storage is denied.
Not with its default cookies. Advanced Consent Mode still needs a banner to collect the consent signal, and some regulators treat cookieless pings as personal-data processing. Ask your compliance team before deciding; the GDPR and banner article covers the legal side.
Google requires the v2 signals (ad_user_data, ad_personalization) for EEA traffic if you want to keep ads measurement, personalization and remarketing; from March 2024 it began mapping v1 ad_storage values to ad_user_data for EEA customers (Google). For pure analytics, Consent Mode is how GA4 respects your CMP's choice rather than a legal obligation in itself.
Visitors who refuse are no longer counted as users or sessions. Modeled data only appears under the Blended reporting identity and only above Google's thresholds of 1,000 daily denied events and 1,000 daily consented users (Google). A misconfigured CMP can also block tags, so check your consent rate and verify the setup in Tag Assistant.
Google says GA4 does not log or store IP addresses, which is why IP masking is no longer a setting (Google). IPs still arrive with each request and are used to derive location, and cookieless pings may include them (Google). The UA anonymizeIp option has no GA4 equivalent.
There is no supported equivalent in GA4. The UA method also gave only hit-level data, with users, sessions and attribution broken. Use Consent Mode, or a cookieless tool alongside GA4.
No. Server-side GTM changes where data flows and what you can strip before it reaches Google, but GA4 still relies on a client identifier on the device. Consent requirements stay the same.