A cookie banner is a notice through which visitors consent to or reject the storage of cookies and similar technologies. For SEO it matters because it affects what your analytics can measure and how stable a page loads.
Which rules apply?
In the EU, Article 5(3) of the ePrivacy Directive (2002/58/EC) covers consent for storing information on a user’s device and for accessing information stored there. Germany implements this in § 25 TDDDG. Article 7 GDPR sets the conditions for consent, and Article 7(3) covers its withdrawal. Germany’s Federal Commissioner for Data Protection (BfDI) explains on its cookie banner page how it views banner design.
This is not legal advice.
How does a cookie banner affect SEO?
Measurement. Without consent, tracking can be limited. Tag Manager supports consent mode with types such as analytics_storage, and Google tags adjust their behavior to the consent granted. Fewer consents mean fewer sessions in Google Analytics, while Search Console clicks stay unaffected because they are counted in Google Search. The two figures can drift apart (an assessment based on the consent mode documentation).
Layout shifts. A banner that is injected late and pushes content down can raise Cumulative Layout Shift. web.dev names dynamically injected content as a common cause and sets 0.1 or less as the target at the 75th percentile. A banner that overlays the page or has reserved space moves nothing.
Example (invented numbers)
A website records 10,000 clicks from Google Search in a month. GA4 shows 6,500 organic sessions. Visitors who decline tracking explain part of the difference.
Common mistakes
- A banner that pushes content down when it loads.
- Tags in Tag Manager that fire before consent is given.
FAQ
What is a cookie banner for? It collects consent for cookies and similar technologies that are not technically necessary.
Which laws cover cookie consent? In the EU, Article 5(3) of the ePrivacy Directive and, for the conditions of consent, Article 7 GDPR. Article 5(3) also names exceptions, for example storage or access that is strictly necessary to provide a service the user explicitly requested.
Sources
- Directive 2002/58/EC (ePrivacy Directive), Article 5(3), consolidated version of 19.12.2009 – EUR-Lexeur-lex.europa.eu
- Regulation (EU) 2016/679 (GDPR), Article 7 – EUR-Lexeur-lex.europa.eu
- Cookie-Banner – Federal Commissioner for Data Protection and Freedom of Information (BfDI, German)bfdi.bund.de
- Consent mode in Tag Manager – Tag Manager Helpsupport.google.com
- Cumulative Layout Shift (CLS) – web.devweb.dev
- How clicks and impressions are counted – Search Console Helpsupport.google.com
- What is a Cookie Banner? – Usercentrics (secondary)usercentrics.com
- Cookie Banner – Osano (secondary)osano.com
- Cookie Banner – Cookiebot (secondary)cookiebot.com
Last updated: