Guides
Do you need a cookie banner? When it's required and when it isn't
You need a cookie banner as soon as your site loads tracking, ad cookies or embeds like YouTube. What the law in Germany requires and what a banner looks like.

4 min readKey takeawaysThe main points and every section to jump to.Show or hide the summary
- 01
A cookie banner is required as soon as your site stores or reads anything on a visitor's device that isn't strictly necessary to run it.
- 02
Google Analytics, ad pixels, YouTube videos and Google Maps almost always trigger the requirement.
- 03
Rejecting has to be as easy as accepting on the first layer, and nothing may load before the visitor decides.
- 04
Free banners come with Cloudflare Zaraz, as the open source tool Klaro and as free versions of WordPress plugins.
- 05
Without tracking tools and third-party content, your website doesn't need a banner.
A cookie banner is required as soon as your website stores or reads information on a visitor’s device that isn’t strictly necessary to run the site. That covers almost every analytics tool, every ad pixel and embedded content like YouTube videos or Google Maps. If your site only uses strictly necessary cookies, you don’t need a banner.
This article covers the rules for websites in Germany, which follow EU law. It isn’t legal advice. For your specific case, ask your data protection officer or a law firm.
What the law requires
Two laws work together:
- Section 25 of the TDDDG (called TTDSG until May 2024): Anyone who stores information on a visitor’s device or reads it from there needs consent first. The exception is anything strictly necessary to deliver the service the visitor explicitly asked for. This applies equally to cookies, local storage, pixels and fingerprinting.
- GDPR: If personal data is processed along the way, such as the IP address or an identifier, that needs a legal basis. For tracking and advertising, in practice that’s consent.
The rules apply to every business website, whatever the size of the company.
When you don’t need a cookie banner
You don’t need a banner if your site only stores what it can’t work without. That includes:
- a session cookie for a login or shopping cart,
- the cookie in which your banner stores the visitor’s choice,
- cookies that protect against bots and attacks, like the ones Cloudflare sets,
- fonts and scripts served from your own server.
If your site loads nothing else from third parties, you don’t need a banner.
What triggers the requirement
- Analytics: Google Analytics, Microsoft Clarity, Hotjar and Matomo with cookies.
- Advertising: Meta Pixel, Google Ads, LinkedIn Insight Tag and TikTok Pixel.
- Embedded content: YouTube and Vimeo videos, Google Maps, Instagram feeds and chat widgets.
- Marketing tools: tracking from HubSpot or other CRM systems.
Google Fonts loaded straight from Google’s servers are a special case. They don’t set a cookie, but they send the IP address to Google. In 2022, a Munich court awarded a visitor damages for exactly that. Serve fonts from your own server and the issue is gone.
What a cookie banner has to look like
- Reject on the first layer: The reject button sits next to the accept button and is just as visible.
- No pre-checked boxes: In 2020, Germany’s Federal Court of Justice ruled that a pre-checked box isn’t consent.
- Separate purposes: Visitors can allow statistics and marketing separately.
- Nothing loads before the choice: No tool starts before the visitor agrees.
- Withdrawal at any time: A link in the footer reopens the banner. Withdrawing has to be as easy as agreeing.
- Legal pages stay reachable: The banner doesn’t cover the links to the legal notice and privacy policy.
Free and paid cookie banners
Free: If your domain runs through Cloudflare, Cloudflare Zaraz has its own banner with purposes and multiple languages built in. The Cloudflare Zaraz guide shows how to set it up. Klaro is an open source banner you embed yourself. For WordPress, Complianz and Real Cookie Banner come in free versions.
Paid: Cookiebot, Usercentrics and CCM19 scan your site for cookies on a schedule and maintain text blocks for your privacy policy. They charge by number of pages or traffic.
Measuring without a cookie banner
Every banner costs you data. On my own website, Google Analytics counted only 17 visits from Google Search between late July and late October 2026, while Search Console counted 107 clicks for the same period. Everyone else rejected or ignored the banner.
Some tools count without cookies and without an identifier in the browser, such as Cloudflare Web Analytics, Plausible or Pirsch. The comparison of Google Analytics alternatives covers what they can do. Ask your data protection officer whether your setup can run without consent that way. Another option is server-side tracking, where your website collects the data itself and passes it on filtered.
Check your banner in three steps
- Before the choice: Open your site in a private window along with your browser’s developer tools. Storage should show only necessary cookies, and Network should show no requests to google-analytics.com, facebook.com or doubleclick.net.
- After yes: Accept everything and reload the page. Now the tools you allowed show up.
- After withdrawal: Reopen the banner from the footer link, reject and reload. The tools have to disappear again.
For how I set up tracking through Cloudflare that only measures after consent, see the Cloudflare Zaraz page.
Questions
Yes. Google Analytics stores an identifier in the browser and therefore needs the visitor's consent first. Without a banner, you can't load Google Analytics in Germany.
No, as long as your site doesn't store or read anything else on the device and doesn't load third-party content such as YouTube or Google Maps. You can check this in your browser's developer tools under Storage and Network.
No. A notice without a choice isn't consent. Either your site doesn't need consent, in which case you don't need a notice either, or it does, in which case visitors have to be able to say no.
Yes. The rules in the German TDDDG and the GDPR don't depend on company size. What matters is what your website loads.
Free options are the banner in Cloudflare Zaraz, the open source banner Klaro and the free versions of Complianz or Real Cookie Banner for WordPress. Paid services like Cookiebot or Usercentrics charge by number of pages or traffic.
Storing or reading information on a device without consent violates Section 25 of the German TDDDG. Regulators can fine that up to €300,000, and GDPR violations far more. This article isn't legal advice. For your case, ask your data protection officer or a law firm.
