The General Data Protection Regulation (GDPR) applies to any website that processes data from EU citizens, regardless of where it is hosted. Cookies that collect personal data or track user behavior constitute data processing that requires prior, free, informed and unambiguous consent.
Types of Cookies and Their Legal Treatment
- Technical or strictly necessary cookies: enable basic site functionality (user session, shopping cart, language preferences). No consent required — users cannot reject them.
- Analytics or measurement cookies: Google Analytics, Matomo, Hotjar. Require consent if they collect full IPs or other user-identifying data.
- Advertising or tracking cookies: Google Ads, Meta Pixel, DoubleClick. Always require explicit consent. The most sensitive under GDPR.
- Third-party cookies: placed by domains other than the site's (social networks, CDNs with tracking). Require consent if they track users across different websites.
What Data Protection Authorities Require for Cookie Banners
Under GDPR, consent must be freely given, specific, informed and unambiguous. Dark patterns that make rejection more difficult than acceptance are illegal.
- No dark patterns: the 'Reject all' button must have the same size, color and prominence as 'Accept all'. It cannot be hidden or require more clicks.
- No pre-checked options: users must actively enable each category — silence does not equal consent.
- Category granularity: ability to independently accept or reject analytics, advertising and third-party categories.
- Easy withdrawal: withdrawing consent must be as simple as giving it. An accessible link from any page (usually in the footer).
- Complete information accessible: which cookies, what purpose, who manages them and for how long.
Security Flags: Secure, HttpOnly and SameSite
- Secure: cookie is only transmitted over HTTPS connections. Mandatory for session and authentication cookies.
- HttpOnly: cookie is not accessible from JavaScript. Prevents session cookie theft via XSS scripts.
- SameSite=Strict: cookie is not sent in cross-site requests. Strongest CSRF protection.
- SameSite=Lax: balance between security and usability. Allows the cookie in top-level navigations (link clicks).
- SameSite=None: required for legitimate third-party cookies. Must also have the Secure flag.
GDPR Fines for Non-Compliance
- Serious violations: up to €10 million or 2% of global annual turnover.
- Very serious violations (using advertising cookies without consent): up to €20 million or 4% of annual turnover.
- Common fines for SMBs over cookies: between €5,000 and €50,000, especially for using Google Analytics without consent or with an inadequate banner.
- Data protection authorities can also order temporary suspension of data processing, which can halt digital marketing campaigns entirely.
Quick Checklist
- Does the banner have equally visible 'Accept' and 'Reject' buttons?
- Do Google Analytics and Meta Pixel load only after user consent?
- Do session cookies have the Secure, HttpOnly and SameSite flags configured?
- Is there a detailed, up-to-date cookie policy accessible from the footer?
- Can users easily modify or withdraw their consent from any page?
DomainScored analyzes the site's cookies, classifies them by type (technical, analytics, advertising, third-party), verifies the presence of a consent banner, and checks the Secure, HttpOnly and SameSite flags in the GDPR module.