GDPR-Compliant-Analytics-Can-You-Track-Visitors-Without-Consent

GDPR-Compliant Analytics: Can You Track Visitors Without Consent?

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.

Key Takeaways

  • Two sets of rules apply: the ePrivacy rules (PECR in the UK) decide whether you need consent to access the device, and the GDPR governs the personal data you collect.
  • Cookieless and server-side setups do not automatically avoid the ePrivacy rules. The EDPB says techniques such as tracking pixels and some URL tracking can fall within Article 5(3).
  • No analytics tool is compliant on its own. Compliance depends on how you configure it, what you collect, who receives the data and where it goes.

Which Laws Apply to Website Analytics?

Two separate rules apply, and both must be met.

  • The ePrivacy rules cover storing or reading information on a user’s device, such as cookies, local storage, pixels and fingerprinting. In the EU, this is Article 5(3) of the ePrivacy Directive, applied through national laws. In the UK, it is regulation 6 of PECR. These rules apply whether or not the information is personal data.
  • The GDPR (or UK GDPR) covers any personal data your analytics collects, such as IP addresses, device identifiers and user IDs. It requires a lawful basis, privacy information, data minimisation, security and rules for transfers.

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.

When Does Analytics Need Consent, and When May It Not?

The EU Position

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:

  • Are used only to measure the audience of the site or app, for the publisher’s sole benefit.
  • Produce anonymous statistical data only.
  • Do not lead to data being combined with other processing or passed to third parties.
  • Do not allow tracking of a person across different sites or apps.

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.

What the EDPB Says About the Technical Scope

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 UK Position Since February 2026

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 sole purpose is to collect statistics about how your service or website is used, to improve it.
  • The information is not shared with anyone except those helping you make those improvements.
  • Users get “clear and comprehensive information” about the purpose.
  • Users have a simple, free way to object, and do not object.

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.

Does Cookieless or Server-Side Analytics Avoid Consent?

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.

  • Cookieless techniques – fingerprinting, local storage, and some pixel or URL tracking – still access the device. The EDPB guidelines and the ICO guidance both cover these techniques.
  • Server-side tagging: moving the collection to your server can reduce what third parties receive, which helps with data minimisation and sharing. If the set-up still reads or stores information on the device, the ePrivacy rules still apply.
  • Log-file analysis: analysing your own server logs may not involve accessing the device, depending on the technique. The GDPR still applies to the IP addresses and other personal data in the logs.
  • Aggregated, anonymous output: producing only aggregated statistics reduces GDPR risk. It does not, by itself, decide the ePrivacy question.

What About Data Residency and Transfers?

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.

What Should Your Notices Say About Analytics?

Two sets of information duties apply.

  • Under the ePrivacy rules or PECR: explain what is stored on or read from the device and why. Where you rely on the UK statistical purposes exception, Schedule A1 also requires a simple, free way to object.
  • Under the GDPR: where analytics involves personal data, Articles 13 and 14 require you to state the purposes, the lawful basis, the recipients or categories of recipients, any transfers outside the EU or UK and the safeguards used, and the retention period or criteria.

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.

Checklist for a Compliant Analytics Set-Up

  1. Map what runs. List every analytics script, pixel, SDK and server-side tag on your sites and apps.
  2. Identify the purpose of each. Separate pure audience measurement from advertising, personalisation and cross-site tracking.
  3. Decide the ePrivacy basis per country. Consent, or a specific exemption your regulator accepts, such as CNIL’s in France or Schedule A1 paragraph 5 in the UK.
  4. Block before consent. Do not set non-exempt trackers before the user agrees.
  5. Limit what you collect. Turn off features you do not need, shorten or mask IP addresses where possible, and avoid collecting form inputs or user IDs.
  6. Check the provider’s role. Confirm the provider acts as your processor under an Article 28 contract and does not use the data for its own purposes.
  7. Check transfers. Identify where the data goes and the transfer mechanism for each destination.
  8. Set retention. Choose how long raw analytics data is kept and configure the tool to match.
  9. Update your notices. Describe the analytics in your cookie notice and privacy notice, with a way to object where an exemption applies.
  10. Review regularly. Recheck the set-up when tags, providers or the law change, and record what you checked.

Conclusion

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.

Frequently Asked Questions

Do I Need Consent for Analytics Cookies in the EU?

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.

Do I Need Consent for Analytics Cookies in the UK?

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.

Is Server-Side Tracking Exempt From Cookie Rules?

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.

Is an IP Address Personal Data?

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.

Can I Use the Same Cookie Banner for the UK and EU?

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.

About the Author

Zlatko Delev

Head of Commercial & Country Manager

Zlatko Delev is Head of Commercial and Country Manager at GDPRLocal, where he leads the company’s commercial strategy and market presence. He brings international experience across sales, marketing, and customer success, along with a legal background from his studies at Iustinianus Primus Law School in Skopje, Macedonia.

Zlatko sits at the front line of GDPRLocal’s client relationships, guiding organisations through the first stages of their compliance journey and helping them understand where they stand and where they need to go on GDPR, information security, and the emerging landscape of AI regulation. His role bridges commercial strategy with practical data protection knowledge, ensuring clients get clear, actionable direction from their very first conversation with GDPRLocal.

Alongside his commercial focus, Zlatko has trained extensively in project management and organisational leadership, including risk management, stakeholder communication, agile methodology, and digital marketing, a broad skill set that supports his structured, delivery-focused approach to growing GDPRLocal’s business internationally.