Do I need a consent banner for website analytics?
Disclaimer: general information, not legal advice. Rules and regulator guidance change, and they are not the same in every country. Before you rely on this, check your national data protection authority or ask a qualified adviser. We never claim that no consent is needed.
People often ask this as a "cookie banner" question. The legal test in the EU is wider than a browser cookie. If your site uses other trackers, ads, embeds or chat tools, those have their own rules even when your analytics is carefully designed.
Two laws, two questions
- The ePrivacy rule (Article 5(3) of the ePrivacy Directive) asks: does the tool store or read information on the visitor's terminal equipment? If it does, prior consent is the default, with narrow exemptions for communications or a service the user explicitly requested. The European Data Protection Board's Guidelines 2/2023 read this technical scope broadly: it is not limited to traditional browser storage.
- The GDPR asks: is personal data processed, and on what legal basis? Reducing what you collect can make a GDPR basis easier to justify, but it does not automatically answer the ePrivacy question, and the website owner remains responsible for their own setup.
A tool can be designed to touch less under both laws and still not be "consent-free" in every country.
The CNIL audience-measurement exemption (France)
France's CNIL publishes conditions under which audience-measurement tracers may be exempt from consent. The current page (updated 4 July 2025, in French) says those tracers must, among other things:
- be used only to measure the audience of that site or application, for the publisher alone (performance, navigation problems, technical or ergonomic optimisation, server sizing, analysis of content consulted);
- produce anonymous statistics only;
- not lead to data being combined with other processing, or to non-anonymous data being sent to third parties;
- not allow the person to be followed across different sites or applications.
CNIL also recommends informing users (for example in the privacy policy), limiting tracer lifetime (it mentions 13 months, not automatically extended on each visit), and limiting retention (it mentions 25 months), with periodic review.
This is a French position, under article 82 of the French data-protection law. It is not an EU-wide licence, and the CNIL does not certify analytics products. Countnest is not CNIL-certified, and no tool may claim to be. CNIL also provides an English developer's-guide sheet (Sheet 16, dated 11 June 2020) on the same theme; the French page above is the more recently updated official source we checked.
Even in France, features such as advertising measurement, cross-site tracking, or combining analytics with a customer file fall outside that exemption as CNIL describes it.
Other European countries are not identical
ePrivacy is a directive, so national rules differ. In short (checked for our country overview on 4 November 2026, and not a substitute for the official texts):
- Germany: § 25 TDDDG. Consent is needed unless access is strictly necessary for a service the user requested. German regulators (DSK) generally treat analytics as needing consent.
- Netherlands, Italy and Spain: each authority has described possible, tightly limited audience-measurement exemptions. Check the current guidance.
- Denmark: the Danish executive order generally requires consent for storing or reading information on a device. Check Datatilsynet and Digitaliseringsstyrelsen.
If your visitors come from several countries, you have to consider each relevant rule, not only the most permissive one.
What Countnest does, factually
- Stores nothing on the visitor's device.
- Never saves IP addresses. A daily-rotating one-way code is used to count unique visitors, and the daily key is deleted within about two days.
- Does not follow people across days or across websites, and builds no profiles.
- Does not count visits from browsers that send Do Not Track or Global Privacy Control.
- Stores data in the EU (Frankfurt).
Our records are still pseudonymous, not strictly anonymous in the legal sense, because visits from the same browser and network on a single day can be grouped. That is why we never claim consent is unnecessary everywhere. See also the privacy explainer and the browser storage page.
What we recommend
- Mention your analytics in your privacy policy, including the provider and where data is stored.
- Read the official guidance for each country whose visitors you target, especially Germany.
- If you also use ads, embeds, heatmaps, session replay or marketing tags, treat those separately: they often need consent even when your analytics tool is minimal.
- If in doubt, ask your own adviser.
A longer country table is in Do you need consent for website analytics in Europe?. For the UK, Switzerland, the US and other regions, see privacy rules worldwide.
Official sources
- ePrivacy Directive, Article 5(3) (EUR-Lex)
- EDPB Guidelines 2/2023 on the technical scope of Art. 5(3) ePrivacy Directive
- France: CNIL, solutions for audience-measurement tools (updated 4 July 2025, in French) and Sheet 16, English, 11 June 2020
- Germany: § 25 TDDDG, BfDI, DSK guidance
- EDPB members (national authorities)
Disclaimer: general information, not legal advice.
Questions and answers
So do I need a consent banner or not?
It depends on your country and your setup. We do not promise that no consent is needed, for Countnest or for any other tool. Check your national regulator or a qualified adviser.
Does storing nothing on the visitor's device mean no consent is required?
No. That design answers part of the ePrivacy question, but national rules still differ, GDPR may still apply to any personal data you process, and the EDPB reads Article 5(3) more broadly than classic browser storage. This is not legal advice.
Is Countnest exempt under the CNIL audience-measurement rules?
We do not claim that. The CNIL exemption is a set of conditions in French law and guidance, not a product certification. Countnest is not certified by the CNIL, and no tool may claim to be.
Is this legal advice?
No. It is a general explanation with links to official sources. Your situation depends on your visitors, your configuration and current regulator guidance.
Where can I read the country-by-country detail?
In our article on consent for website analytics in Europe, and in the worldwide overview for countries outside the EU.
30-day free trial, no card required. Then from $14 a month. Cancel anytime.
Start free for 30 daysSources
- CNIL: Solutions for audience measurement tools (updated 4 July 2025, in French)
- EDPB Guidelines 2/2023 on the technical scope of Art. 5(3) ePrivacy Directive
- ePrivacy Directive 2002/58/EC, Article 5(3) (EUR-Lex)
- EDPB Guidelines 2/2023 document page
- CNIL Sheet 16: Use analytics on your websites and applications (11 June 2020, English)
- Bundesgesetzblatt: TDDDG § 25 (gesetze-im-internet.de)
- DSK Orientierungshilfen
- BfDI