Do I need a cookie banner for website analytics?
Last updated October 22, 2026
It depends on what your analytics stores on or reads from your visitors' devices, and on where those visitors are. In the US there's no federal cookie law, and California works by notice and opt-out rather than a consent banner. In the UK and the EU the rules cover more than cookies, and analytics is exempt from consent only when it meets their conditions.
Facts checked on October 22, 2026, each against its source. Every number links to where it came from.
This is a plain-English summary of the rules, not legal advice. If your business depends on the answer, ask a lawyer who knows your market.
Why "cookie" is the wrong word to look for
The European rule that started cookie banners never mentions cookies. Article 5(3) of the ePrivacy Directive covers storing information on a person's device, or reading information already stored there, and allows it only with their consent, unless it's strictly necessary for a service they asked for1.
The UK regulator reads its version the same way. The ICO lists cookies, tracking pixels, link decoration, web storage, fingerprinting, and scripts and tags as technologies the rules apply to2. And the European Data Protection Board's guidelines, adopted in October 2024, say tracking pixels, tracking links and even tracking based on IP addresses can fall under the same rule3.
So "we don't use cookies" doesn't answer the question in Europe. The rules turn on what the tool stores or reads, what it does with it, and who else gets it.
In the United States
Congress hasn't passed one comprehensive consumer privacy law; it has passed laws for particular industries and kinds of data4. The states are where the rules are, and California's is the one most people mean.
California's law applies to a for-profit business that does business in the state and meets one of three tests: gross annual revenue over $26,625,000 (the adjusted figure since January 1, 2025)5, or buying, selling or sharing the personal information of 100,000 or more California residents or households a year, or making half or more of its revenue from selling or sharing it6. Many small businesses meet none of these.
For a business it does cover, the law asks for two things, neither of them a banner:
- A notice. At or before the point of collection, say what categories of personal information you collect, why, and whether you sell or share it7.
- A way to opt out, if you sell or share. A business that sells or shares personal information needs a "Do Not Sell or Share My Personal Information" link, or must honor an opt-out signal from the browser instead7. Sharing here means passing data on for advertising that follows people across sites, which is what ad pixels do.
That browser signal is Global Privacy Control. California's Attorney General says covered businesses must honor it as a request to stop selling or sharing8, and Colorado has required businesses its law covers to honor it since July 1, 20249.
In the United Kingdom
The UK changed its rule this year. Since February 5, 202610, the Data (Use and Access) Act lets a site store or read information on a device without consent when the only purpose is collecting statistics about how the site is used so it can be improved11. The conditions:
- The information isn't shared, except with someone helping you improve the site.11
- Visitors get clear and comprehensive information about the purpose.11
- Visitors get a simple, free way to object, and haven't objected.11
The ICO calls this "essentially for analytics purposes" but "not a broad exception": it's about how your site is used, not who uses it, and it doesn't cover identifying or tracking people, or advertising12. So for analytics that stays within it, a UK visitor gets a clear notice and an easy way to say no, instead of a consent banner.
In the European Union
The EU directive itself has no analytics exemption: the only way around consent is "strictly necessary", and the directive doesn't mention statistics. Some national regulators have set conditions under which they treat analytics as exempt. France's CNIL, for one, exempts audience measurement used only for the site's own statistics, producing anonymous figures, never combined with other data, never passed on to third parties unless anonymous, and never following people across sites. It suggests, for example, 13 months for the trackers and no more than 25 months for the data13.
The details differ from country to country, and the EDPB says each case has to be assessed: falling under the rule doesn't always mean consent is needed, because an exemption may apply3.
What to check about your own site
- Check whether your analytics sets cookies or uses local storage. Many tools do by default, and some can be switched to work without.
- Check whether the provider uses your visitors' data for its own purposes. If so, it falls outside the UK exception and the CNIL exemption alike.
- Check whether it follows people across sites or keeps a record of each visitor. The ICO lists logs or recordings of individual visitors, and tracking or profiling them, as needing consent12.
- Look at what else is on the page. Ad pixels, embedded videos, chat widgets and maps can set cookies of their own. A privacy-friendly analytics tool doesn't make the rest of the page consent-free.
- Make sure your privacy notice says what you use. Every rule above expects one.
Where Nodium fits
Nodium's script sets no cookies and stores nothing on the visitor's device, never stores the IP address, and doesn't count a browser that sends Do Not Track or Global Privacy Control14. Its privacy docs give you a sentence for your privacy notice. Whether counting without cookies needs consent where your visitors are is still a legal question for you and your adviser, and we'd rather say so than guess.
Sources
- Directive 2009/136/EC, Article 2(5), amending Article 5(3) of the ePrivacy Directive, opened October 22, 2026
- ICO: What are storage and access technologies?, opened October 22, 2026
- EDPB: Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0, opened October 22, 2026
- Congressional Research Service: Preemption and Privacy Law, opened October 22, 2026
- California Privacy Protection Agency: Updated Monetary Thresholds in CCPA, opened October 22, 2026
- California Privacy Protection Agency: Frequently Asked Questions, opened October 22, 2026
- California Consumer Privacy Act of 2018, as in effect January 1, 2026, opened October 22, 2026
- State of California Department of Justice: Global Privacy Control (GPC), opened October 22, 2026
- Colorado Attorney General: Universal Opt-Out Mechanism, opened October 22, 2026
- The Data (Use and Access) Act 2025 (Commencement No. 6 and Transitional and Saving Provisions) Regulations 2026, opened October 22, 2026
- Data (Use and Access) Act 2025, Schedule 12, opened October 22, 2026
- ICO: What are the exceptions?, opened October 22, 2026
- CNIL: Cookies, solutions pour les outils de mesure d'audience, opened October 22, 2026
- Nodium Docs: Privacy on your site, opened October 22, 2026
Something here out of date? Write to support@usenodium.com and we'll fix it.