Guides

Setting up a cookie banner: compliant and without losing sales.

The cookie banner is the first thing visitors see. On many sites it fills the whole phone screen, and some people leave before they’ve seen anything of you.

In short: In the EU, cookies and tracking that aren’t strictly necessary need consent before they load. Rejecting must be as easy as accepting. A small banner at the bottom plus Google Consent Mode keeps both the page and your measurement clean.

What the rules say

  • Necessary cookies, like the ones for the cart, don’t need consent.
  • Analytics, ad pixels and embedded videos need consent before they load.
  • “Reject all” sits on the same level and is as big as “Accept all”.
  • Consent can be changed at any time, usually via a link in the footer.

What costs you sales

A banner that covers the first screen takes away your first impression. Better: a slim bar at the bottom that leaves product and headline visible. Legally that’s just as fine.

Measuring despite rejections

With Google Consent Mode, Google Analytics and Google Ads learn whether someone consented. For people without consent, Google models the numbers anonymously. If you run Google Ads in the European Economic Area, you need Consent Mode anyway.

In Shopify

Shopify comes with its own consent banner that works with Shopify pixels. For many stores that’s enough. If you embed lots of third-party services, use a dedicated consent tool.

Frequently asked questions

Which law is behind cookie consent in Germany?

Section 25 of the TDDDG, called TTDSG until May 2024, together with the GDPR.

Does this apply in Switzerland?

Swiss rules are looser. But if you have customers in the EU, it’s safer to set up your banner by EU rules.

More about websites and landing pages

Read next