Home
Google Analytics 4 Cookie Consent: What Changes in Your Data and How to Set It Up

Google Analytics 4 Cookie Consent: What Changes in Your Data and How to Set It Up

18 days ago
João Bruno Soares
10 minutes

Google Analytics 4 cookie consent comes down to one setting: analytics_storage. When a visitor accepts, it is granted and GA4 works as usual. When they decline, it is denied, and what GA4 does next depends on how your site is set up. Some setups send nothing at all, others send limited signals without cookies, and your reports change accordingly.

Getting this right protects you and keeps your data useful. This guide explains what GA4 does in each case, what changes in your numbers, and how to check your own setup, as part of a wider approach to consent management across countries.

What GA4 does when consent is denied

GA4 learns the visitor's choice through Google's consent signals. The one that controls analytics is analytics_storage. Google describes it as enabling storage, such as cookies, related to analytics, for example visit duration. If it is denied, GA4 should not write or read analytics cookies for that visitor.

What happens to the measurement itself depends on the mode you use, and our Google Consent Mode guide covers both in depth. In short:

  • Basic mode: Google tags stay blocked until the visitor consents, so nothing is sent before a choice.
  • Advanced mode: Google tags load before the banner and send cookieless pings when consent is declined. Google Analytics can use those pings for modeling.

Neither mode makes a "no" disappear. The question is whether you lose that visitor completely or get a modeled estimate.

The other three consent signals

Google defines four consent types in total: ad_storage, analytics_storage, ad_user_data and ad_personalization. The last three matter if you link GA4 to Google's advertising products. Google's GA4 help says ad_user_data and ad_personalization need to be granted for visitors in the European Economic Area to be included in audiences used by linked ad products. If you only measure, analytics_storage is the one to watch.

What changes in your GA4 reports

With consent in place, your reports lose some precision, because declined visitors no longer appear as individual users. This is normal and a sign the setup works. Three things change:

  • Some visitors vanish from the user counts, especially in markets where many people decline.
  • Metrics that depend on cookies, such as returning users, are based on the visitors who accepted.
  • In advanced mode, Google can model part of the gap, if the property qualifies.

Behavioral modeling has conditions

Google's documentation says behavioral modeling is switched on automatically once a property is eligible. The requirements, listed in Google's modeling help, include consent mode on all pages, at least 1,000 events per day with analytics_storage denied for at least 7 days, and at least 1,000 daily users sending events with consent granted for at least 7 of the previous 28 days. Smaller sites may never qualify, so do not count on modeling to fill the gap.

Google also notes that when a consent solution that uses the TCF reports a decline, GA4 properties are not able to model data. Check the page above for the current wording before you plan around modeling.

See how AdOpt connects consent to GA4 to keep this part consistent across your tags.

IP addresses, retention and consent are different questions

It is easy to mix three topics that Google treats separately.

IP addresses

Google says GA4 does not log or store individual IP addresses from users in the EU, Switzerland and the United Kingdom, and uses the address only to derive coarse location. That is a statement about how GA4 handles IPs, set out in Google's GA4 IP help page. It does not tell you whether you need consent. That depends on the law that applies to your visitors, and our guide to GDPR and cookies covers the European rules.

Data retention

Google's data retention help page says retention applies to user-level and event-level data tied to cookies, user identifiers and advertising identifiers. Standard GA4 properties can choose 2 months or 14 months, and the longer options are for GA4 360. Retention controls how long data is kept, not what is collected, so it is a tuning option and not a replacement for consent.

Google signals and advertising features

Google says Google signals features do not accumulate data for traffic where ad_storage is denied. If you use remarketing or audience features, this is another reason to make sure the advertising signals are set correctly.

How to set up GA4 with consent

The setup is the same in outline for any CMP and any tag manager. Follow these steps:

  1. Choose basic or advanced mode, and note why.
  2. Set a default consent state before any Google tag runs. In Google Tag Manager, use the Consent Initialization trigger so consent settings are honored before other triggers fire.
  3. Let your CMP update consent after the visitor chooses.
  4. Use region-specific defaults only where your legal review calls for them. Google's default command accepts a region parameter and the most specific region wins.
  5. Turn on the consent overview in Tag Manager to see which tags have built-in consent checks.
  6. Remove any GA4 snippet that sits outside Tag Manager. It will ignore the CMP.

The consent overview in Google Tag Manager shows these settings across your container.

See how AdOpt works with Google Tag Manager before you configure the defaults.

How to read your reports after switching consent on

The first weeks after you connect consent to GA4 can look alarming. Users and sessions usually drop, and that is the setup working, not your traffic falling. Keep the comparison fair:

  1. Write down the date you switched consent on.
  2. Compare periods of the same length and the same days of the week, before and after.
  3. Look at each market separately. Markets where more visitors decline will drop more.
  4. If your CMP shows acceptance rates, put them next to the GA4 numbers, so you can tell a traffic change from a consent change.
  5. Do not try to win the numbers back by loading GA4 before the choice. That removes the protection you set up.

Questions to ask your CMP

Whichever CMP you use, you want clear answers to these:

  • Does it set the default consent state before any Google tag runs?
  • Does it send an update right after the visitor chooses, and on later pages?
  • Can it set different defaults for different regions?
  • Does it block tags it does not control, such as scripts pasted into templates?

Our guide on how to choose a CMP goes further into these points.

How to check your GA4 consent setup

Test from a clean browser window rather than reading the configuration. Run these checks:

  1. Open the site and reject everything in the banner.
  2. In the browser's developer tools, open the network tab and look for requests to Google Analytics.
  3. In basic mode, nothing should be sent. In advanced mode, you may see cookieless pings and no analytics cookies.
  4. Check the stored cookies: there should be no analytics cookies after a rejection.
  5. Repeat after accepting. Measurement should start only from that moment.
  6. Save a screenshot and the date as evidence.

If requests carry on as usual after a rejection, the tag is not reading consent. The most common cause is a GA4 snippet pasted into the site code. Our guide to tag categorization helps you find tags that sit outside your tag manager.

Keep learning about marketing tools and consent

Frequently asked questions

Do I need consent to use Google Analytics 4?

The answer comes from the law that applies to your visitors, not from GA4 itself. Google's statement that GA4 does not store EU users' IP addresses does not settle it. Check which rules cover your audience, including the European rules in our GDPR and cookies guide, and use consent signals so GA4 follows the visitor's choice.

What happens in GA4 if a visitor declines cookies?

It depends on the mode. In basic mode, Google tags stay blocked until consent, so nothing is sent. In advanced mode, tags send cookieless pings that Google Analytics can use for modeling, if your property meets the requirements. Either way, the visitor does not appear as an identified user.

Does GA4 model data for visitors who decline?

It can, in advanced mode, but only when the property meets Google's requirements, which include thresholds of daily events and users over several days. Google also says properties cannot model data when the consent solution uses the TCF and the visitor declines. Small sites should plan as if no modeling will happen.

Is Google Consent Mode the same as a CMP?

No. Consent Mode only passes the visitor's choice to Google tags. A CMP shows the banner, collects the choice, blocks other scripts and keeps the record. You need both: the CMP gathers a valid choice, and Consent Mode makes your Google tags follow it.

Tags

Cookies
CMP
Marketing

Related posts

AdOpt post

Axeptio Strengthens its International Expansion with the Acquisition of AdOpt

Axeptio acquires Brazil's AdOpt, expanding global reach in consent management and LGPD compliance.

AdOpt post

GDPR and Cookies all you need to know

Understanding the General Data Protection Regulation (GDPR) and its impact on cookies is essential. So, let's break it down, step by step.

AdOpt post

IOWA ICDPA and Cookies: All you need to Know

Iowa ICDPA explained: the longest response deadline of all US state privacy laws (90 days), 90-day cure period, opt-out for sensitive data, limited deletion scope, no right to correct, and how it compares to UCPA, VCDPA, and OCPA.

AdOpt post

Colorado CPA: Cookies Policy

What the Colorado CPA requires from your Cookies Policy: mandatory Universal Opt-Out Mechanism from July 2024, targeted advertising definition, dark pattern rules, and the 24-month consent refresh.

AdOpt post

Montana MTCDPA: Privacy Policy

Learn what your MTCDPA Privacy Policy must include after Montana's SB 297 amendments from the conspicuous "privacy" hyperlink and last-updated date requirements to sale disclosures, minor protections, and how to keep your notice operationally aligned with your stack.

AdOpt post

Why Give Consent on Every Website I Visit?

Have you ever noticed that every time you sign up for a service to access information or register on a website for purchases, you need to give consent? If you're wondering why you have to give consent on every website you visit, you'll find the answer here.

AdOpt post

7 Steps to GDPR-Compliant Cookie Banners in 2025

Learn the essential steps for creating GDPR-compliant cookie banners in 2025, ensuring user consent and privacy protection.

AdOpt post

Utah UCPA and Cookies: All you need to know

Utah UCPA explained: the most business-friendly US state privacy law, dual threshold requirement, opt-out for sensitive data, no right to correct, guaranteed 30-day cure period, and key differences from other state laws.

AdOpt post

5 Signs Your Website Needs an Cookie Consent Strategy

How does your website handle LGPD? What strategies does it use to comply with the General Data Protection Law? Have you thought about using a cookie notice but don't know if your site has cookies or if it's enough? If you can't answer these questions, be cautious! Your page may be exposed to fines and other sanctions.

AdOpt post

LGPD: An Opportunity for Digital Marketing Agencies!

Have you ever thought that your marketing agency could find a great business opportunity in LGPD? Well, unlike what many think, it brings changes that can accelerate the demand for the services of these companies.

AdOpt post

Texas TDPSA and Cookies: All You Need to Know

Your website have users accessing from Texas? So be ready… the Texas Data Privacy and Security Act is here to shake things up. Don't worry; we've got your back. This guide will walk you through everything you need to know to ensure your website complies with the new regulations.

AdOpt post

California CCPA: Privacy Policy

What the California CCPA/CPRA requires from your Privacy Policy: 12-month lookback, annual updates, Do Not Sell link, sensitive PI disclosures, toll-free number, and the 7 consumer rights.

AdOpt post

Virginia VCDPA: Cookies Policy

What the Virginia VCDPA requires from your Cookies Policy: targeted advertising disclosure, consent standards, tracker categories, opt-out mechanisms, and the 30-day cure period explained.

AdOpt post

GDPR Legal Basis: An Introduction

In this article, we'll explore the GDPR foundations and provide practical insights from the basics to more advanced concepts of its legal basis.

AdOpt post

Connecticut CTDPA: DSAR Privacy Portal

How to handle DSARs under the Connecticut CTDPA: 5 consumer rights, opt-outs without mandatory authentication, 60-day appeal deadline, 15-day consent revocation, and AG-only enforcement.

AdOpt post

The Impact of Cookie Banners on Your E-commerce - LGPD

Having a cookie banner on your brand's website has become indispensable for many. However, for e-commerce websites, it has practically become an obligation to have one. This is because this type of website has a technological composition in which cookies are a structural part. Login flow, items in the shopping cart, recommendation showcases, remarketing... Most of them rely on cookies.

AdOpt post

Cross-Domain Cookie Consent: One Choice, Several Sites

Cross-domain cookie consent lets one visitor choice apply to several sites. See when sharing is valid, how tags read it and what to test before you launch.

AdOpt post

Colorado CPA and Cookies: All You Need to Know

The Colorado Consumer Privacy Act went into effect July 1, 2023 (CPA). CPA is a vital piece of legislation designed to protect the privacy of residents in Colorado. Understanding its requirements is essential for any business operating in the state. This act is all about giving control back to the consumers regarding their personal data. But what does this mean for you and your business, especially when it comes to managing cookies on your website?

AdOpt post

Oregon OCPA and Cookies: All You Need to Know

Everything about the Oregon OCPA: who must comply, the payment transaction exclusion, 25% revenue threshold, derived data in scope, GPC requirement from January 2026, and elimination of the cure period.

AdOpt post

Google Consent Mode: Beginner to Advanced Guide.

Google Consent Mode (GCM) is nothing more than a way for you to integrate the consent you collect from your visitors into Google technologies. In this way, upon receiving this consent information, collection can only occur with authorization, thus complying with the legislation and having direct evidence of compliance as defense for both you and Google.

AdOpt post

10 Marketing Processes You Should Rethink under the LGPD!

In the end, our goal has never been to predict doom for companies or to be part of the LGPD's Apocalypse Cavalry. But, since we've been in the market for some time, these kinds of issues always catch our attention when we start data mapping and having conversations with colleagues.

AdOpt post

Canada PIPEDA: Privacy Policy

How to write a PIPEDA privacy policy: what the ten principles require you to disclose, what to add for Quebec, and a checklist before you publish.

AdOpt post

Global Privacy Control (GPC) Explained: What It Is and Who Has to Honor It

Global Privacy Control (GPC) is a browser opt-out signal. Learn how it works, which US states require you to honor it, and how to test your site.

AdOpt post

California CCPA and Cookies: All You Need to Know

Everything about the California CCPA and CPRA: who must comply, the $25M threshold, 7 consumer rights, CCPA vs CPRA explained, the Do Not Sell link, CPPA enforcement, and cookies.

AdOpt post

IOWA ICDPA: DSAR and Privacy Portal

Iowa ICDPA DSAR guide: 90-day response deadline, 45-day extension, 60-day appeal process, limited deletion scope, opt-out from data sales, targeted advertising disclosure requirement, and 90-day cure period.

AdOpt post

AdOpt CMP

AdOpt CMP: Google-certified consent platform with prior blocking, granular choices, encrypted logs, and GTM/Consent Mode

AdOpt post

LGPD and Cookies all do you need to know?

In this article, you will have a great introduction to the topic, as well as various other variations that revolve around the subject: Cookies and LGPD.

AdOpt post

Oregon OCPA: Cookies Policy

What the Oregon OCPA requires from your Cookies Policy: opt-out link, GPC from January 2026, opt-out without authentication, derived data in scope, teen protections, and the elimination of the cure period.

AdOpt post

Why are cookie banners everywhere?

Want to understand why there are cookie banners on every website you visit today? This article is for you!

AdOpt post

Best practices in tag categorization

It's time to talk about one of the most impactful tasks, both for the company and for the visitors of your websites: tag categorization. But why is it so impactful? What is the relevance of this configuration and how can it affect us? It is precisely because of these common questions we receive from our clients that we have written this article on best practices in tag categorization.

AdOpt post

Oregon OCPA: Privacy Policy

What the Oregon OCPA requires from your Privacy Policy: actively monitored contact channel, detailed third-party descriptions, derived data in scope, GPC from January 2026, and the elimination of the cure period.

AdOpt post

Consent Management Across Countries: How One CMP Serves Every Market

Consent management across countries: how one CMP applies the right rules to each visitor, passes the choice to Google and Meta, and honors GPC.

AdOpt post

Montana MTCDPA: DSAR Policy

Rights, Policy and how to understand about the DSAR Montana MTCDPA

AdOpt post

IOWA ICDPA: Cookies Policy

What the Iowa ICDPA requires from your Cookies Policy: opt-out for data sales and targeted advertising, opt-out model for sensitive data, no GPC requirement, no specific link text required, and the 90-day cure period.

AdOpt post

Utah UCPA: Privacy Policy

What the Utah UCPA requires from your Privacy Policy: five mandatory elements, opt-out model for sensitive data, no retention periods required, no active contact channel mandate, and the guaranteed 30-day cure period.

AdOpt post

Canada PIPEDA and Cookies: All You Need to Know

PIPEDA is Canada's federal private-sector privacy law. See when it reaches your website, what it requires for cookies, and how to prove consent.

AdOpt post

How to Choose a CMP (Consent Management Platform)?

Using a CMP (Consent Management Platform) is a great way to make efforts to adapt to new privacy regulations like GDPR, LGPD, DPDPA, CCPA and more...

AdOpt post

Florida FDBR: Cookies Policy

What the Florida FDBR requires from your Cookies Policy: targeted advertising across affiliated sites, opt-out for sensitive data and voice recognition, dark patterns, and tripled penalties.

AdOpt post

LGPD for marketing | A practical guideline.

Every day, millions of users generate data on the web, which is used by companies around the globe to improve their offerings. Therefore, in 2018, a law was created to regulate the use of personal data by companies, and this directly impacts digital marketing. We're talking about LGPD.

AdOpt post

Connecticut CTDPA and Cookies: All You Need to Know

The Connecticut Data Privacy Act (CTDPA) is a state regulation designed to protect the privacy of Connecticut residents. It also regards cookies, so in this article we will help you understand all about this new privacy regulation.

AdOpt post

Florida FDBR: DSAR Privacy Portal

How to handle DSARs under the Florida FDBR: 7 consumer rights, two required submission channels, 45-day deadline with only 15-day extension, tripled penalties for children, and compliance guide.

AdOpt post

Canada PIPEDA: Cookies Policy

What a PIPEDA cookie policy must say: purposes, third parties, opt-out, retention and Quebec rules. Plus a checklist to write yours.

AdOpt post

California CCPA: DSAR Privacy Portal

How to handle DSARs under the California CCPA/CPRA: 7 consumer rights, 45-day deadline, toll-free number required, 12-month lookback, private right of action for breaches, and CPPA enforcement.

AdOpt post

New Hampshire NHDPA: DSAR Privacy Portal

What is a DSAR under NHDPA? Complete guide to consumer rights, response deadlines, and building a compliant Privacy Portal for your site.

AdOpt post

What is the difference between cookies, local storage, and session storage?

Despite cookies being more well-known, what is the main difference between cookies and session storage and local storage? Why choose one over the other? This article will help you with these doubts!

AdOpt logoAdOpt logo

Address: 7345 W Sand Lake Road, Ste 210 Office 5898 Orlando, FL 32819

15 Rue du Général Campredon, 34000 Montpellier, France

207 Rue de Bercy, 75012 Paris, France

EIN: 86-3965064

Phone: +1 (407) 768-3792

AdOpt

Resources

Product

Certifications

Google CMP PartnerIAB Europe TCF Registered Vendor

© GO ADOPT, LLC since 2020 - Made by people who love🍪