WebmasterID logoWebmasterID
Privacy & compliance

Lawful basis for analytics processing

The GDPR requires a lawful basis for processing personal data. For analytics the realistic candidates are consent and legitimate interests, each with conditions: consent must be valid and is often required where ePrivacy applies to cookies, while legitimate interests demands a balancing test and grants the visitor a right to object. Picking and documenting the basis is the operator's job. This is educational, not legal advice.

Verified against primary sources

What this means

GDPR Article 6 lists the lawful bases for processing personal data. For web analytics, two are commonly discussed: consent (Article 6(1)(a)) and legitimate interests (Article 6(1)(f)). The basis must be identified before processing, documented, and communicated in your privacy notice.

Consent vs legitimate interests

Consent must meet the strict validity test and, where ePrivacy applies, is typically required just to set non-essential cookies — so cookie-based analytics often lands on consent regardless. Legitimate interests can support some processing but requires a documented balancing test weighing your interest against the visitor's rights, and the visitor can object. Neither is automatically 'the analytics basis'; it depends on the data, the technique, and the jurisdiction.

How it appears in analytics and logs

If you process personal data for analytics without an identified lawful basis, the processing is unlawful. The basis you pick changes the visitor's rights.

Diagnostic use case

Identify which lawful basis your analytics relies on and document it, recognising consent and legitimate interests carry different conditions and rights.

What WebmasterID can help detect

By minimising and anonymising, WebmasterID reduces how much processing is of personal data, shrinking the situations where a lawful basis must be established.

Common mistakes

Privacy and accuracy notes

Choosing a basis is a legal judgement; consult counsel. Minimised, anonymous measurement can avoid processing personal data at all, sidestepping the question.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.