Usually not in the EU. Under the ePrivacy rules, analytics that store or read data on a visitor’s device require consent, except for narrow exemptions some regulators accept, such as France’s CNIL audience-measurement exemption. In the UK, a statistical purposes exception in force since February 2026 allows some first-party analytics without consent, if visitors are told and can object.
Two separate rules apply, and both must be met.
Article 5(3) of the ePrivacy Directive allows storage or access only with consent, based on “clear and comprehensive information”, unless it is for the sole purpose of transmitting a communication or strictly necessary to provide a service the user explicitly requested. Analytics is not listed as an exemption in the Directive.
Our guide to GDPR and cookies covers cookie consent more generally.
Most analytics in the EU needs consent. Some national regulators accept that tightly limited audience measurement can count as strictly necessary.
The French regulator, CNIL, has the best-known exemption. Its guidance on audience measurement says analytics trackers can be exempt from consent if they:
CNIL also expects users to be informed and able to object, and sets limits on how long trackers and data are kept. Other EU regulators take their own positions, so an exemption accepted in France may not be accepted elsewhere.
The EDPB’s Guidelines 2/2023 on the technical scope of Article 5(3), adopted in final form on 7 October 2024, explain which techniques fall under the rule. They cover use cases including URL and pixel tracking, local processing and tracking based only on IP addresses. The guidelines read Article 5(3) broadly, so swapping cookies for another technique does not remove the need to check.
The Data (Use and Access) Act 2025 added Schedule A1 to PECR, which has been in force since 5 February 2026. Paragraph 5 allows storage or access without consent where:
The ICO’s guidance on storage and access technologies, finalised on 29 April 2026, reads the exception strictly. It applies only where the technology is used solely for that purpose. Analytics tags that also feed advertising, or data shared with a provider that uses it for its own purposes, still need consent.
The UK and EU positions now differ. A single cookie banner across both markets needs to follow the stricter rule in each country.
Not automatically. What matters is whether information is stored on or read from the user’s device, and what happens to the personal data afterwards.
Analytics data often goes to a provider outside the EU or UK. That is a restricted transfer under Chapter V of the GDPR, and needs an adequacy decision, appropriate safeguards such as standard contractual clauses, or an exception.
For transfers to the US, the EU-US Data Privacy Framework adequacy decision of 10 July 2023 covers certified organisations only. Our guide to GDPR data residency requirements explains where the GDPR does and does not require data to stay in the EU. If you use Google Analytics specifically, see our Google Analytics GDPR compliance guide.
Two sets of information duties apply.
Keep the cookie notice and the privacy notice consistent. If they give different retention periods for the same data, regulators and users will notice. Name the analytics provider or describe it by category, and update both notices when you change tools.
There is no single answer to whether you can track visitors without consent. In the EU, the default remains consent, with narrow national exemptions. In the UK, the 2026 statistical purposes exception gives more room for first-party analytics, with strict conditions. In both places, the GDPR applies to whatever personal data you collect.
The safest approach is to treat analytics as a configuration question: limit the purpose, the data and the recipients, then check each country’s rule.
GDPRLocal’s GDPR consultancy can review your cookie and analytics set-up against the ePrivacy rules, PECR and the GDPR. You can also start with a free Compliance Hub account for our compliance tools and framework guides. For detailed UK rules, see our guide to the difference between GDPR and PECR.
In most cases, yes. Article 5(3) of the ePrivacy Directive requires consent to store or read information on a device unless it is strictly necessary for a requested service. Some regulators, such as CNIL, accept a narrow exemption for limited audience measurement.
Not always. Since 5 February 2026, PECR Schedule A1 allows storage or access used solely to collect statistics to improve your own service or website, if users are informed and can object. The ICO reads this narrowly.
No. Server-side tagging changes where data is processed. If any information is still stored on or read from the user’s device, the ePrivacy rules or PECR apply, and the GDPR applies to any personal data collected.
It can be. An IP address can identify a person when combined with other information, so the GDPR usually applies to IP addresses collected by analytics. Masking or shortening them reduces, but may not remove, that risk.
You can, if it meets the stricter rule in each market. A banner that relies on the UK statistical purposes exception may not meet EU requirements, where consent is still the default for analytics.
Disclaimer: This blog post is intended solely for informational purposes. It does not offer legal advice or opinions. This article is not a guide for resolving legal issues or managing litigation on your own. It should not be considered a replacement for professional legal counsel and does not provide legal advice for any specific situation or employer.