Skip to content
Sealmetrics
Regulation

GDPR and Web Analytics: A Framework for 2026

18 min readBy Rafa Jiménez

Two rules apply to analytics: ePrivacy Article 5(3) for the device and the GDPR for personal data. Legal bases, a checklist, country notes and an implementation guide.

"GDPR-compliant analytics" is one of the most searched phrases in European marketing, and one of the least understood. Many businesses either accept the data loss that comes with cookie consent or run in a grey area they would rather not look at closely.

This framework explains what the GDPR and the ePrivacy Directive ask of web analytics, which legal bases are used, and how to measure without losing the visitors who reject or ignore the cookie banner. It is not legal advice: conclusions about a real deployment belong with your DPO.

Key Takeaways:

  • Consent-based analytics loses the visitors who reject or ignore the cookie banner; the stronger position is minimising the data so far that no banner is needed for your analytics
  • Two rules apply: ePrivacy Article 5(3) for what is stored on or read from the device, and the GDPR for personal data
  • Sealmetrics stores nothing on the device and no data that identifies anyone; its session identifier rotates daily and, once rotated, not even Sealmetrics can reconstruct it, and reports are always aggregated
  • Country-specific rules (TDDDG in Germany, the CNIL's criteria in France) add requirements beyond the baseline

What the GDPR Asks of Analytics

Three Principles

Legal basis (Article 6): every processing of personal data needs a lawful basis. For analytics that touches personal data, that means consent or legitimate interest. How little data you handle, and for how long, determines how strong that position is.

Data minimisation (Article 5): collect only what is adequate, relevant and limited to what is necessary. That rules out unnecessary identifiers, full IP addresses without justification, and retention longer than needed.

Data protection by design (Article 25): technical and organisational measures from the design stage, including pseudonymisation, encryption and privacy-protective defaults.

Sealmetrics was designed around all three.

Legal Bases for Analytics

GDPR Article 6 defines six legal bases. For web analytics, two get used — consent and legitimate interest. The question that comes first, and usually gets skipped, is how much personal data you are processing, and for how long.

Consent (Article 6(1)(a)) — The Problem

Consent means users must actively opt in before any tracking occurs.

The data loss problem: in our experience with clients, between 40% and 60% of traffic doesn't accept cookies. And of those who do, 40% don't accept on the first pageview.

Be careful how you translate that into a data loss figure — it is a consent figure, not your loss rate. Consent Mode v2 models part of the unconsented traffic back in as estimates, and visitors who ignore a banner on one visit sometimes accept on the next. What actually reaches your reports is a shortfall whose size depends on your sector, the strength of your brand and where your traffic comes from. Measure it on your own site.

Implementation complexity: consent must be explicit, informed and freely given. Your banner must explain what you collect and why, allow granular control, and make withdrawal as easy as acceptance.

Proof: consent must be documented and provable — who consented, when, to what, and whether it is still valid.

Legitimate Interest (Article 6(1)(f))

Legitimate interest allows processing when your interest is not overridden by the user's rights. You weigh your interest against the user's, document the reasoning and keep it on file.

Your interest: understanding how visitors use your website to improve it and decide where to invest.

User impact: low when analytics is cookieless, stores no IP addresses and minimises data.

What it comes with: relying on any Article 6 basis means you are processing personal data, so the downstream obligations follow — data subject rights, the right to object under Article 21, records of processing, the balancing test you have to defend. The less data you hold, and the shorter you hold it, the lighter those become.

Minimal, Short-Lived Data — The Stronger Position

GDPR Recital 26 is explicit that anonymous information is outside the GDPR, but that pseudonymised data — data that could still be attributed to a person with additional information — is personal data. A daily-rotating session identifier is a pseudonym while its key and salt exist. Sealmetrics keeps that window to one day: the salt rotates daily and the old one is destroyed, after which not even Sealmetrics can reconstruct the identifier, and reports are always aggregated. That minimal operational data relies on legitimate interest, Article 6(1)(f).

ePrivacy Article 5(3) is the separate rule that actually mandates cookie banners. It requires consent to store information on, or gain access to information stored in, a user's device. It is not about personal data at all — it applies to anything written to or read from the device. A tool that writes nothing still engages it if it reads information from the device — Sealmetrics reads standard browser properties to compute its session identifier — and then needs an exemption, such as the audience-measurement exemption described below.

Both have to hold. Clear one and fail the other and you still need a banner.

When this position applies: to cookieless analytics that:

  • Collects only necessary data (pageviews, sessions, referrers)
  • Stores no data that identifies anyone — no IP addresses, not even hashed
  • Writes nothing to the device — no cookies, no localStorage, no persisted fingerprint — and reads from it only what an audience-measurement exemption covers
  • Doesn't use data for other purposes (advertising, profiling)
  • Retains aggregates for a reasonable period (24 months for trend analysis)

The CNIL's 2020 guidelines set out when audience measurement can run without consent: own-purpose statistics, no cross-site tracking, no re-identification, limited tracker lifetime and data retention. The CNIL does not certify or approve individual analytics tools, and neither does any other supervisory authority. What exists is guidance you can assess yourself against — see our CNIL self-assessment.

The Checklist

Technical Requirements

No unnecessary data collection: collect only what analytics needs. Sealmetrics records pageviews, sessions, referrers, device types and engagement metrics — no names, no emails, no precise locations.

IP address handling: IP addresses can be personal data (CJEU, Breyer, C-582/14), and hashing them is pseudonymisation, not anonymisation. We don't store IPs: to filter bots we check the IP in flight against a public list of automated-traffic IPs, and don't keep it.

Retention limits: set retention periods and enforce them. Sealmetrics keeps aggregates and conversion events for 24 months, hourly aggregates for 90 days and the per-hit log for one day, enforced automatically.

Security: encryption in transit and at rest, and access controls. Sealmetrics encrypts data at rest with AES-256 and offers role-based access.

Legal Requirements

Privacy policy: explain what analytics you use, what is collected, how long it is kept, and on what footing you operate. With Sealmetrics, say that it handles minimal pseudonymised data under legitimate interest, keeps the per-hit log for one day, reports in aggregate, and explain why no consent is required for it.

Legal position documentation: whichever footing you use, document what is stored field by field and how long each part is kept. For legitimate interest, also document the purpose, why the data is necessary, how you minimise impact and what safeguards apply.

Data Processing Agreement: GDPR Article 28 requires a DPA between you and your analytics provider. Sealmetrics includes a standard DPA.

DPIA: required when processing is likely to result in high risk. Minimal cookieless analytics usually doesn't meet that threshold, but document why you concluded a DPIA isn't needed.

Organisational Requirements

Records of processing (Article 30): what analytics you use, why, on what basis, what data and where it is stored.

Training: make sure the team knows how to handle data requests.

Incident response: procedures for breaches, including notification to the authority within 72 hours where required.

Where Analytics Setups Run Into Trouble

IP Addresses

The GDPR defines personal data as any information relating to an identified or identifiable person, and the Court of Justice has held that IP addresses can be personal data (Breyer).

The hashing myth: hashing an IP is pseudonymisation, not anonymisation. The same IP produces the same hash, hashes can be matched across systems, and the IPv4 space is small enough to enumerate. Recital 26 is clear that pseudonymised data remains personal data.

Sealmetrics never stores IP addresses. Its session identifier is ephemeral: nothing is stored on the device, and the server re-keys it with a salt that rotates daily and is then destroyed, so it cannot be linked across days or across sites.

Cookies and Device Access

ePrivacy Article 5(3) — often called the cookie law — requires consent before storing or reading information on user devices, alongside the GDPR.

The consent trap: analytics tools that use cookies can ask for consent and lose the visitors who reject or ignore the banner, or run without consent outside an exemption, which the rule does not allow.

The exemptions: Article 5(3) exempts what is strictly necessary for a service the user explicitly requested. Analytics cookies generally do not qualify, except where an authority's audience-measurement criteria are met.

Sealmetrics stores nothing on the device, and its ephemeral session identifier, which rotates daily, is assessed against the audience-measurement exemption rather than consent — so, on our own assessment, no consent banner for its own analytics and no data loss from rejections (in Germany an open question — see Germany).

Transfers Outside the EU

Schrems II (CJEU, 2020) invalidated the Privacy Shield framework, holding that US surveillance law did not offer adequate protection for EU personal data. In 2022 the Austrian, French and Italian authorities issued decisions finding specific Google Analytics implementations unlawful on transfer grounds. Those decisions predate the EU-US Data Privacy Framework adopted in July 2023, which US transfers can now rely on. Your DPO will still ask where analytics data is processed and by whom.

For Sealmetrics: analytics data is hosted and processed only in the EU (Dublin). Service emails go through Resend (US) under SCCs; the full list of sub-processors is Annex 3 of the DPA.

How Sealmetrics Handles the GDPR

No Consent Banner for Its Own Analytics

The reasoning has two parts. Nothing is stored on the user's device; the tracker does read standard browser properties to compute a session identifier, which engages ePrivacy Article 5(3) and relies on its audience-measurement exemption rather than on consent. And nothing stored identifies anyone: the session identifier rotates daily and becomes unrecoverable, and reports are aggregated; that short-lived pseudonymised data relies on legitimate interest, Article 6(1)(f). This is our self-assessment; in Germany it is an open question.

The technical foundation: the tracker computes, in the browser, a hash of standard device characteristics and never writes it to the device. Before anything is stored, the server re-keys it with a secret and a daily salt that is destroyed on rotation, so the stored identifier changes every day and two days of the same device cannot be linked. A session ends after 2 hours of inactivity. The site's account ID in the hash prevents correlation across sites. See what we track.

No IP Storage

We don't store IP addresses — not full, not truncated, not hashed. When a pageview arrives, the IP is checked in flight against a public list of automated-traffic IPs, and not kept. Country comes from the browser timezone, not the IP.

24-Month Retention

Sealmetrics retains aggregated analytics data for 24 months, below the CNIL's 25-month ceiling for consent-exempt audience measurement:

  • Year-over-year comparisons and full seasonal cycles
  • Automatic deletion after 24 months, enforced by database TTLs
  • What is retained is aggregate data containing no personal identifiers

EU Infrastructure

Analytics data is hosted and processed only in the EU (Dublin). The sub-processor list is short — infrastructure and database hosting in Ireland, managed LLM inference in Paris for the optional Seal AI Private add-on, and a transactional email provider (Resend, US, under SCCs). The authoritative, always-current list is Annex 3 of the DPA, which also sets out the notification procedure if sub-processors change. If you use LENS with your own LLM key instead, that provider is your contract, not our sub-processor.

Country-Specific Considerations

Germany (TDDDG)

Germany's TDDDG (renamed from TTDSG in May 2024) regulates storing and reading information on devices in §25, with exemptions in §25(2).

Sealmetrics position: an open question. Sealmetrics stores nothing on the device, and our reading is that no consent is needed. But the DSK does not extend the §25(2) exemption to audience measurement, and the tracker reads device properties via JavaScript, which may count as "access" under §25(1) (EDPB Guidelines 2/2023 read access broadly). Check with your DPO or counsel.

France (CNIL)

The CNIL's 2020 guidelines describe audience measurement that can be exempt from consent under conditions:

  • Purpose limited to measuring the audience of the site, for its own use
  • No cross-site tracking and no combination with other processing
  • No data sharing with third parties for other purposes
  • Tracker lifetime of at most 13 months and data retention of at most 25 months
  • Transparent information to users

Sealmetrics and the CNIL criteria: on our self-assessment, Sealmetrics meets the CNIL criteria for the audience-measurement exemption. No supervisory authority certifies analytics tools.

Other Countries

Other authorities publish their own guidance on analytics and consent. Check the one that applies to your audience, and document what you process — no IPs, no cookies, minimal pseudonymised data under legitimate interest that becomes unrecoverable daily, aggregated reports — in your privacy policy.

Implementation Guide

Step 1: Establish Your Legal Position

Decision tree:

Does your analytics store identifying data
(IP addresses, hashed or not, user IDs, persistent identifiers)?
│
├─ No, and it writes nothing to the device
│  └─ Legitimate interest for minimal, short-lived data
│     No consent needed if the audience-measurement
│     exemption to ePrivacy 5(3) is met
│
└─ Yes → pick a basis for that data:
   │
   ├─ Consent → implement a cookie banner
   │  └─ Accept consent-driven data loss, unevenly distributed
   │
   └─ Legitimate interest → run and document a balancing test
      └─ Accept the obligations that come with processing personal data

Minimal-data checklist — every answer must be yes:

  • Are you certain no IP address is stored, in any form, including hashed?
  • Is nothing written to the user's device (no cookies, no localStorage, no persisted fingerprint), and is anything read from it covered by an ePrivacy exemption?
  • Are all identifiers session-scoped and never correlated across visits?
  • Is the retained data aggregate, with no field that could single out a person, and is any per-hit data purged quickly?
  • Can you show all of the above to a DPO in writing?

If any answer is no, you are processing more personal data than you need, and the no-banner position gets harder to defend. Don't assert it for a tool that doesn't earn it.

Step 2: Technical Setup

For Sealmetrics, one tag in the <head>:

<script src="https://t.sealmetrics.com/t.js?id=YOUR_SITE_ID" defer></script>

No cookie configuration and no consent management for Sealmetrics itself. Installation takes 5 to 30 minutes depending on the platform; see tracker installation.

For other platforms:

  • Remove or configure cookie-based tracking
  • Disable advertising features and user ID tracking
  • Check where data is stored and processed

Step 3: Legal Documentation

Privacy policy — add or update your analytics section, for example:

We use Sealmetrics for web analytics. Sealmetrics collects minimal
usage data (pages viewed, referral sources, aggregate engagement)
without cookies and without storing IP addresses. Nothing is stored
on your device; standard browser properties are read only to compute
a session identifier that changes daily and cannot link your visits
across days; once rotated, it cannot be reconstructed. This
pseudonymised data is processed on the basis of our legitimate
interest (GDPR Art. 6(1)(f)), the per-hit log is kept for one day,
reports are aggregated, and measurement relies on the
audience-measurement exemption rather than consent. Analytics data
is retained for 24 months for trend analysis and hosted and
processed only in the EU (Dublin, Ireland). You can object at
[link to your objection page]; we will then stop loading the
analytics script for you.

Internal records:

  • What is stored, field by field, and how long (per-hit log one day, aggregated reports 24 months)
  • That nothing is written to the device, what is read from it (standard browser properties for the session identifier), and the ePrivacy Article 5(3) exemption relied on for that read
  • That the session identifier is pseudonymised data under legitimate interest, Article 6(1)(f), and becomes unrecoverable after the daily rotation
  • Safeguards: cookieless, no IP storage, EU-only analytics data, limited retention
  • Alternative considered: consent-based analytics, rejected because of consent-driven data loss

DPA: execute the Sealmetrics DPA, which covers processor obligations, sub-processors, assistance with data subject rights, breach notification and deletion at the end of the contract.

Step 4: Verify

Technical:

  • Open developer tools → Application → Cookies, and confirm no analytics cookies are set
  • Check the dashboard is receiving data
  • If you offer an objection page, check the tracker no longer loads after objecting

Legal:

  • Privacy policy describes the analytics accurately, including why no consent is required
  • DPA executed
  • Internal documentation complete
  • Retention schedule understood (fixed 24 months for aggregates and conversions)

Ongoing: review the configuration and documentation when practices or guidance change.

Common Mistakes

Mistake 1: Relying on Consent for Analytics by Default

The problem: consent sounds safe but costs you the visitors who reject or ignore the banner, spread unevenly across your channels — which reorders your rankings rather than just shrinking your totals.

The fix: use a properly implemented cookieless tool that stores nothing on the device and no data that identifies anyone, and rely on legitimate interest for the minimal data it handles. Document what is stored and for how long.

Mistake 2: Installing a Cookie-Based Tool With Default Settings

The problem: default configurations of cookie-based tools typically set cookies before consent, enable advertising features and send data to the vendor for its own purposes.

The fix: configure the tool deliberately (consent integration, advertising features off, data sharing reviewed) and accept consent-driven data loss, or use cookieless analytics for your own measurement.

Mistake 3: Thinking Hashed IPs Solve It

The problem: hashing IP addresses is pseudonymisation, not anonymisation, and pseudonymised data is still personal data.

The fix: use analytics that doesn't store IP addresses at all.

Mistake 4: No DPA With the Analytics Provider

The problem: Article 28 requires a DPA between controller and processor. Operating without one is a breach regardless of how privacy-protective the tool is.

The fix: sign the provider's DPA.

Mistake 5: Vague Privacy Policy Disclosures

The problem: Article 13 requires transparent information. "We use analytics" is not enough.

The fix: disclose which analytics you use, what is collected, where it is stored, how long it is kept, on what basis, and how users can object. See Step 3.

What the Sources Say

The CNIL

The CNIL's 2020 guidelines are the most detailed published criteria for consent-exempt audience measurement: purpose limited to the site's own audience measurement, no cross-site tracking or profiling, limited tracker lifetime and data retention, and transparent information. Several other authorities point to similar criteria. The output has to be statistical: reports aggregated and non-identifying.

GDPR Article 5(1)(c) — Data Minimisation

"Personal data shall be adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed."

For analytics: collect the metrics you use, no unnecessary identifiers, no IP storage if your approach doesn't need it, and no retention beyond your documented purposes.

The Sealmetrics Approach

Sealmetrics was designed around these principles:

  1. Cookieless: nothing stored on the device; the session identifier is assessed against the audience-measurement exemption rather than consent, so no data loss from rejections
  2. No IP storage: IPs are checked in flight for bots and not kept
  3. Session-based: an identifier that rotates daily, with no cross-day or cross-site tracking
  4. EU location: analytics data hosted and processed only in the EU (Dublin)
  5. Purpose limitation: audience measurement only — no advertising integrations, no data selling
  6. Documented retention: 24 months, purged automatically

Sealmetrics is designed to comply with the GDPR; that is our self-assessment, not a certification. No supervisory authority certifies analytics tools, and Sealmetrics holds no ISO 27001 or SOC 2 certification.

Conclusion

The consent-or-data-loss dilemma comes from cookie-based architectures, not from the GDPR. The path to a defensible position without giving up the visitors who reject the banner:

  1. Ask the prior question: how little data can you handle, and for how short a time?
  2. Use cookieless analytics that writes nothing to the device and reads from it only what an exemption covers
  3. Store no IP addresses, hashed or truncated
  4. Document your approach: what is stored, for how long, and on what basis
  5. Update your privacy policy with specific disclosures
  6. Sign a DPA with your analytics provider

Sealmetrics is designed for that position: nothing stored on the device, a session identifier that rotates daily, no IP storage, analytics data hosted and processed only in the EU (Dublin), and 24-month retention with automatic purging. It measures the traffic the banner loses, not just the visitors who accept it.

Related reading

Frequently Asked Questions

Is Google Analytics GDPR-compliant?

It depends on the configuration and on consent. Google Analytics uses cookies, so in the EU it needs consent under ePrivacy Article 5(3), which means a banner and the visitors who reject or ignore it. Google states that GA4 does not log or store IP addresses (Google, checked 3 December 2026). In 2022, the Austrian, French and Italian authorities found specific Google Analytics implementations unlawful on transfer grounds; those decisions predate the EU-US Data Privacy Framework adopted in July 2023. Sealmetrics is designed to comply with the GDPR without a banner for its own analytics (our self-assessment, not a certification).

Can I use analytics without a cookie banner?

On our own assessment, yes, with properly implemented cookieless analytics like Sealmetrics (in Germany an open question). Cookie banners are required by the ePrivacy Directive when websites store information on user devices or read information from them, unless an exemption applies. If your analytics uses no cookies and whatever it reads is covered by an exemption, no banner is needed for it. The GDPR is a separate question, and both have to be satisfied.

What's the difference between legitimate interest and consent?

Consent (Article 6(1)(a)) requires users to opt in before processing begins: for analytics, a banner and the consent gap in your data. Legitimate interest (Article 6(1)(f)) allows processing when your interest is not overridden by the user's rights, provided the purpose is audience measurement rather than advertising, collection is minimised, safeguards are in place and users can object. What makes legitimate interest strong is how little data you hold.

Does hashing IP addresses make them anonymous under the GDPR?

No. Hashing is pseudonymisation, not anonymisation, and Recital 26 states that pseudonymised data "which could be attributed to a natural person by the use of additional information should be considered to be information on an identifiable natural person." Sealmetrics never stores IP addresses, hashed or otherwise.

How long can I store analytics data under the GDPR?

The GDPR doesn't set a number: keep data only as long as necessary for documented purposes. The CNIL's criteria for consent-exempt audience measurement cap retention of the collected data at 25 months and tracker lifetime at 13 months. Sealmetrics keeps aggregates and conversion events for 24 months, with automatic deletion.

Do I need a DPA with my analytics provider?

Yes. GDPR Article 28 requires a written contract between controller and processor covering the subject matter, duration, nature and purpose of processing, the types of data and data subjects, and the processor's obligations. Sealmetrics includes a standard DPA.

Do I need a DPIA?

A DPIA is required under Article 35 when processing is likely to result in high risk — for example systematic profiling with significant effects or large-scale processing of special-category data. Minimal cookieless analytics usually doesn't reach that threshold; document your reasoning either way.

Can I use Sealmetrics without consent in Germany (TDDDG)?

It is an open question. Sealmetrics' reading is that no consent is needed, but check with your DPO or counsel: the DSK does not extend the §25(2) TDDDG exemption to audience measurement, and the tracker reads device properties via JavaScript, which may count as "access" under §25(1). How §25 applies to that read is assessed in our Germany self-assessment.

What if my DPO pushes back on cookieless analytics?

Give them the material to assess it: the CNIL's guidelines (criteria, not a certification), the technical documentation (no cookies, no IP storage, session-scoped identifiers never written to the device, EU-only analytics data), and what is stored field by field and for how long. Be precise about consent-driven data loss and don't inflate it — a DPO who catches an exaggerated number will discount everything else. If concerns remain, ask for a second opinion from external counsel.

How do I document a consentless analytics setup?

Purpose: "We measure website usage to understand how visitors navigate our site, to improve it and to decide where to invest." Scope: Stored: pages viewed, referrer, aggregate engagement, country derived from the browser timezone. Not stored: IP addresses in any form, user IDs, cross-session identifiers. Device storage: none; standard browser properties are read only to compute a session identifier that the server re-keys daily. Conclusion: the session identifier is pseudonymised data under legitimate interest (Article 6(1)(f)), the per-hit log is purged after one day and the identifier is unrecoverable after the daily rotation; reports are aggregated. Safeguards: cookieless, no IP storage, EU-only analytics data, 24-month retention with automatic purging. Objection: describe how your site stops loading the tracker for visitors who object.