Today, multiple data privacy laws regulate millions of businesses and protect the data of billions of individuals globally. This landscape is in constant flux, driven not only by updates to existing laws and the creation of new ones but also by evolving business practices and technological advancements in how data is collected, stored, and used.
Privacy professionals and novices alike have been diligently working to determine the best ways to adhere to the increasing and sometimes divergent requirements of data privacy laws across different jurisdictions.
While the regulatory environment remains dynamic, several best practices have emerged—notably, the implementation and optimization of cookie banners.
Data privacy regulations frequently require businesses to disclose to website visitors their use of data collection technologies (such as third-party and first-party cookies).
They must also provide clear and accessible links to their privacy policies. And, they should offer methods for visitors to manage their consent—either opting into or out of data collection—depending on the specific legal framework governing their operations.
Cookie banners have become a widely adopted tool to meet these requirements effectively and unobtrusively.
What Is a Cookie Banner?
A cookie banner is the notice that appears when you first visit a website. It typically includes a cookie notice that informs visitors about the website’s use of cookies and other trackers and lets users consent to, reject, or customize them. If your website uses cookies that collect personal data, like analytics or advertising cookies, you probably need one.
What your cookie consent banner has to do depends on the applicable cookie laws based on where your visitors are. In the EU, it usually has to collect consent before nonessential cookies load. In much of the US, it has to give people a clear way to opt out, and in a growing number of states, it has to honor browser signals like the Global Privacy Control (GPC).
A robust consent management solution will include mechanisms to categorize cookies and offer a preference center where visitors can update, add, or revoke consent for different cookie types. Some cookies are essential for the website’s functionality—such as remembering items in a shopping cart—while others are used for marketing, personalization, or analytics, which visitors may choose to block or allow according to their preferences.
Finally, these banners often include a link to the cookie policy, which provides detailed information about all cookies used on the site, their purposes, and more. Keeping the cookie policy updated and easily accessible is crucial for maintaining transparency and compliance.
Why Are Cookie Banners Important For Compliance?
Privacy laws, such as the GDPR and the California Privacy Rights Act (CPRA), require the visitor’s consent and proof of consent each time you process their personal data. For cookie usage, this translates into a few steps:
- Informing visitors about cookie usage and giving them the option to accept or reject non-essential cookies. In many jurisdictions, it may be illegal to load non-essential cookies until the visitor gives explicit consent.
- A cookie policy with details about each type of cookie used.
- A backend that captures consent records for auditing.
- The ability to block cookies that are not consented to.
- A way to categorize cookies.
- A preference center that enables visitors to update, add, and revoke their consent.
- The ability to show different language, preference select, and consent options based on the local law.
Cookie consent requirements are met quickly and efficiently through banners. However, they aren’t the only way—some find cookie banners overly intrusive, which can negatively impact a website's user experience.
Global Privacy Control and Other Opt-Out Signals
The Global Privacy Control is a browser setting that tells every site you visit that you’re opting out of the sale or sharing of your personal data. GPC is an opt-out, not a form of consent, and a growing number of US states require you to treat it as one. California, Colorado, Connecticut, Texas, and Oregon are among them.
California keeps raising the bar. Since January 1, 2026, its CCPA regulations have required businesses to display whether they’ve processed a visitor’s opt-out signal. Starting January 1, 2027, the California Opt Me Out Act requires web browsers to offer a built-in opt-out signal setting, which will likely mean many more of your visitors send one.
GPC doesn’t replace your cookie banner. Your banner still has to work for visitors who haven’t turned GPC on, and its settings have to match the signal for visitors who have.
Despite the rise of alternatives like GPC, cookie banners will likely remain a staple of modern websites. They ensure that every visitor is presented with relevant privacy information and the opportunity to express their consent preferences. Ultimately, requesting and honoring consent is not only a legal requirement but also a respectful and ethical practice for safeguarding website visitors’ data.
Do I Need a Cookie Banner on My Website?
Do you use cookies that process personal data or track your website visitors? Then the answer is yes, you require a cookie banner.
Cookie banner requirements differ significantly from law to law. For instance, in the EU, it’s not only considered best practice but often a legal requirement to have a separate, easily accessible cookie policy. A GDPR-compliant cookie banner should adhere to these guidelines.
Meanwhile, in the U.S., the requirements can vary by state—some laws allow for the inclusion of cookie information within the privacy policy, while others, like California’s CPRA, may impose stricter consent requirements, especially for tracking and selling personal data.
With the increasing adoption of privacy laws in other regions, such as Brazil’s LGPD and Canada’s PIPEDA, the necessity of a cookie banner is becoming more widespread globally. Regardless of the specific requirements in your jurisdiction, a cookie banner is a must-have to ensure compliance and to respect your visitors’ fundamental right to privacy.
Types of Cookie Consent Banners
Cookie banners come in various forms and designs. Most providers allow you at least some basic customization, though they shouldn’t permit so much customization as to render your banner non-compliant. Examples include changing colors and fonts to match your branding or adding your own logo.
In terms of placement, cookie banners can appear in the middle of the page, at the bottom, or the top. The key factor is ensuring that the visitor interacts with the banner, especially in jurisdictions requiring opt-in consent.
The various data privacy laws worldwide broadly require one of two types of consent: opt-in or opt-out. But what does that mean for your cookie banner?
Depending on the specific regulation, businesses may need to implement an opt-in/opt-out banner or cookie policy to ensure compliance.
Opt-in Consent
Opt-in consent is more commonly used outside of the U.S. and requires visitors to agree to data processing before any such activities can begin. The GDPR in Europe and the LGPD in Brazil are examples of regulations that necessitate compliant cookie banners.
Image of Osano's Cookie Banner for GDPR
Another term for opt-in consent is explicit consent. This means the banner does not assume website visitors have given consent to data collection unless they explicitly indicate their consent. It remains active until the visitor interacts with it, and often allows visitors to select which categories of cookies they do or do not agree to.
Under explicit or opt-in consent regimes, you may only load essential cookies for a first-time visitor. After they consent to non-essential cookies, you can load those as well.
Opt-out Consent
Opt-out consent is more common in the U.S. and is also known as implicit consent. You need to be transparent about using cookies, but you can assume consent until the visitor revokes their permission.
Image of Osano's Cookie Banner for the US (not including California and Virginia)
A typical example is a banner stating, “By continuing to use this website, you consent to the use of cookies.” However, under stricter laws like the GDPR or LGPD, such banners are non-compliant. They may still be permissible under some U.S. laws, such as the CPRA, although even within the U.S., the trend is moving towards more explicit forms of consent, particularly in states like California and Virginia, where stricter regulations are in place.
Cookie Banner Requirements
The requirements for cookie banners differ slightly across regulations. Let’s take a look at a few examples.
GDPR Cookie Banners
The GDPR, together with the ePrivacy Directive (often referred to as the "EU cookie law"), provides the regulatory framework for how cookies must be managed within the European Union. Each EU member state has its own data protection authority, which issues specific requirements for how cookie banners must function within that jurisdiction. Some consent management solutions offer a single GDPR banner, but using one banner across all EU jurisdictions may not be compliant. Broadly, GDPR compliant cookie consent banners require the following characteristics:
- Functions under opt-in or explicit consent.
- Includes a button to accept cookies and may allow the visitor to select which categories of cookies they accept.
- Contains details about why the site uses cookies.
- Includes a link to cookie settings.
- Alerts the visitor if the site shares data through third-party cookies.
- Includes a link to the cookie policy.
The EU’s rules may chang, however. The European Commission’s Digital Omnibus proposal, published in November 2025, would add new consent exemptions and limit how often sites can ask again after a visitor says no. As of this writing, EU lawmakers are still negotiating it, and the cookie provisions have changed several times along the way. Until a final version passes, the current GDPR and ePrivacy rules apply.
Learn about the differences between GDPR vs CCPA.
UK GDPR Cookie Banners
The UK changed its cookie rules with the Data (Use and Access) Act 2025. Since February 5, 2026, you don’t need consent for some low-risk cookies, including analytics cookies used only to improve your site, as long as you give people a simple, free way to object. Advertising cookies still need consent. The Act also raised the maximum fine for cookie violations from £500,000 to £17.5 million or 4% of global annual turnover, whichever is higher.
California (CCPA/CPRA)
California doesn’t require opt-in consent for most cookies. It does require you to give visitors a clear way to opt out of the sale or sharing of their personal information, which covers many advertising cookies, and to honor GPC as a valid opt-out request. Under the CCPA regulations, you also have to:
-
Display whether you’ve processed a visitor’s opt-out preference signal.
-
Make opting out as easy as opting in. California regulators treat a lopsided choice, like one-click
-
“Accept” next to a multistep opt-out, as a dark pattern.
-
Get opt-in consent before selling or sharing the personal information of consumers you know are under 16.
Other US State Privacy Laws
Over 20 states (23 as of this writing) now have comprehensive privacy laws, and most take the same basic approach to cookies. You tell people what you collect and let them opt out of targeted advertising and the sale of their data.
The biggest difference is how you have to handle opt-outs. Colorado, Connecticut, Texas, Oregon, and several other states require you to honor universal opt-out signals like GPC. Virginia, Utah, and Iowa don’t. Each state is different, so check out our guide to US state privacy laws to find out what the specific cookie consent requirements for the states relevant to your business.
Most of these laws also require opt-in consent before you process sensitive data, like health information or precise location. If your trackers touch that kind of data, an opt-out banner won’t cover you.
LGPD Cookie Banner
The LGPD's cookie requirements are similar to those of the GDPR, so the requirements for the cookie banner are largely the same. However, it’s important to monitor any specific guidance from Brazilian authorities, as interpretations and enforcement can vary slightly from the EU’s approach.
China’s Personal Information Protection Law Cookie Banners
While China’s Personal Information Protection Law (PIPL) became effective in November 2021, its enforcement and interpretation have been evolving. Businesses operating in China must ensure compliance with PIPL, especially regarding cross-border data transfers and obtaining explicit consent for processing sensitive personal data. Cookie banners should reflect these requirements and provide clear options for users to manage their consent.
Japan’s Act on the Protection of Personal Information Amendments
Amendments to Japan’s Act on the Protection of Personal Information (APPI) took effect in April 2022, tightening requirements around consent for data usage, especially for cross-border transfers and the handling of sensitive data. Cookie banners in Japan should be updated to comply with these stricter consent requirements, ensuring that users are fully informed and can manage their privacy preferences effectively.
What Happens If Your Cookie Banner Isn’t Compliant?
Most companies fined over cookies in the past few years had a banner. The problem was that it didn’t do what it told visitors it would.
- Honda paid $632,500 to the California Privacy Protection Agency in March 2025. Part of the problem: accepting cookies took one click, while opting out took several.
- Healthline paid $1.55 million to the California Attorney General in July 2025 after its banner let people switch off advertising cookies that kept running anyway.
- In September 2025, France’s CNIL fined Google €325 million and Shein €150 million, in part over cookie consent. Shein placed advertising cookies before visitors agreed and offered refusal options that didn’t work.
A banner can look right while the scripts behind it ignore what the visitor chose. That’s why testing what your banner actually does matters as much as having one.
How Do I Install a Cookie Consent Banner on My Website?
Every solution is different, and the implementation process will vary depending on whether you use an out-of-the-box solution or build your own. For readers interested in an out-of-the-box consent management solution, we can speak to Osano CMP’s setup and installation process.
Osano’s consent management solution is installed using a single line of JavaScript added to your page header. The entire process consists of five steps that can usually be accomplished in just a few minutes, regardless of your platform.
(If you want to dive deeper into how Osano CMP is installed, check out our CMP Setup Guide!)
Check Your Cookie Banner for Free
Whether you’ve had a banner for years or installed one last week, it’s worth checking what it actually does. Osano’s free compliance scan checks your site for the problems regulators look for, like ignored GPC signals and dark patterns in your banner.
If the scan turns up issues, Osano CMP can help you fix them. It detects where each visitor is coming from and shows the banner their region requires. It’s also backed by our No Fines, No Penalties guarantee: if you’re a paying customer and you’ve implemented Osano according to our documentation, we’ll cover up to $500,000 in regulatory fines caused by our platform.
Cookie Banner FAQs
Is It Illegal Not to Have a Cookie Banner?
It can be. No law requires a “cookie banner” by name, but the GDPR, the ePrivacy Directive, and many US state laws require what a banner does: disclosing your cookies and collecting consent or opt-outs. If your site uses nonessential cookies and gets visitors from those places, a banner is usually the most practical way to comply.
Does a Cookie Banner Need a “Reject All” Button?
In the EU, regulators like the CNIL expect rejecting cookies to be as easy as accepting them, which usually means a reject option on the banner’s first layer. California takes a similar view: opting out shouldn’t take more steps than opting in.
Do I Need a Cookie Banner If I Only Use Analytics Cookies?
It depends on where your visitors are. In most of the EU, analytics cookies need consent, although some regulators, including the CNIL, exempt narrowly configured audience measurement. In the UK, you may not need consent if the cookies only help you improve your site and you give people a simple way to object. Most US states don’t require opt-in consent for analytics, but if your analytics data is shared for advertising, opt-out rules can apply.
How Do I Add a Cookie Banner to My Website?
Most consent management platforms install with a script in your site’s header. From there, you scan your site for cookies, sort them into categories, and set rules for each region your visitors come from. Then test it: confirm the banner blocks the cookies it says it blocks.
US Privacy Laws Survival Guide
Trying to keep track of the US's privacy patchwork? Our guide breaks down an overview of each state comprehensive privacy law, including their consent requirements.
Download Your Copy
Osano Staff
Osano Staff
Osano Staff is a pseudonym used by team members when authorship may not be relevant. Osanians are a diverse team of free thinkers who enjoy working as part of a distributed team with the common goal of working to make a more transparent internet.