Skip to content
Statistikwerk

Do I need a cookie banner for my web analytics?

It depends on how your analytics counts and where your visitors come from. Here you can read what applies in Switzerland and the EU, and when you can do without the banner.

Team Statistikwerk Last updated: 4 min read Also in: Deutsch, Français, Italiano, Español

In short

You need a cookie banner for cookies your website doesn't strictly need. If your analytics works without cookies and nothing else on your site sets such cookies, you can drop the banner. You should still mention your analytics in your privacy policy.

Contents
  1. What the banner is for
  2. What applies in Switzerland
  3. What applies in the EU
  4. Google Analytics and Statistikwerk compared
  5. How Statistikwerk counts without cookies
  6. What to watch out for when switching
  7. Frequently asked questions

What the banner is for

The banner asks for permission before a website stores something on your visitors' device or reads it from there. Usually this is about cookies. Google Analytics, for example, stores a cookie with an identifier and uses it to recognise the browser for up to two years.

Cookies your website can't work without don't need permission. These include a shopping basket or a login. Analytics cookies are not among them, because your site works fine without them.

What applies in Switzerland

In Switzerland, the Federal Act on Data Protection (FADP) and Art. 45c of the Telecommunications Act govern the use of cookies. You have to tell your visitors which cookies you use and why, and how they can refuse them. In most cases the law does not require consent before cookies are set.

Even so, many Swiss websites show a banner. Usually because they also have visitors from Germany or Austria.

What applies in the EU

The rules in the EU are stricter. The ePrivacy Directive requires consent before a website sets cookies that are not strictly necessary. In Germany this is laid down in Section 25 TDDDG, in Austria in the Telecommunications Act. As soon as personal data such as an IP address or a cookie identifier is involved, the GDPR applies as well.

So if your website also targets visitors in the EU and your analytics sets cookies, you need a banner. It may only load the analytics once someone clicks “Accept”.

Google Analytics and Statistikwerk compared

Google Analytics Statistikwerk
Cookies on your visitors' device yes no
Recognition up to 2 years same day only
Where the data is stored with Google, including in the USA in Switzerland
Banner for EU visitors required not required for analytics

You can see the difference in the numbers, too. Analytics with a banner only counts visitors who agree, and that is often only some of them.

Bar chart with sample figures: on every day of the week Statistikwerk counts more visitors than analytics with a banner.
Sample figures: the same website in the same week. Analytics with a banner only counts those who click “Accept”.

How Statistikwerk counts without cookies

Statistikwerk stores nothing on your visitors' device. To avoid counting a visitor twice on the same day, the server creates an anonymous value from the IP address, browser details and a daily key. Statistikwerk does not store the IP address itself.

Process: IP address, browser details and a daily key produce an anonymous daily value. The IP address is discarded, only the value remains, and the key is deleted at night.
Three details become one anonymous value. The IP address is then discarded and the daily key is deleted at night.

Once the daily key has been deleted, yesterday's value can no longer be linked to anyone, not even by us. Anyone who returns the next day counts as a new visitor.

Read more in How Statistikwerk counts visitors without cookies.

What to watch out for when switching

  1. Let your previous analytics run in parallel for a few weeks until Statistikwerk has enough data.
  2. Check whether your website sets any other cookies, for example through embedded YouTube videos, Google Maps, an advertising pixel or a chat window. You will still need the banner for those.
  3. Mention Statistikwerk in your privacy policy: what is collected (for example also the country and region or clicks on phone numbers and files), why, and that the data is stored in Switzerland.
  4. Only remove the banner once nothing else needs one.

This guide explains the basics and is not legal advice. If you run an online shop or process sensitive personal data, have your website checked by an expert.

Frequently asked questions

Can I use Google Analytics and Statistikwerk at the same time for a while?

Yes. As long as Google Analytics is running, you will still need the banner for visitors from the EU. Allow a few weeks, then switch over completely.

Does Statistikwerk also count visitors who reject the banner?

Yes. Statistikwerk sets no cookie and does not depend on the banner. That is why you will usually see more visitors than with analytics that only counts after “Accept”. If you have chosen to respect “Do Not Track”, Statistikwerk does not count visitors with this browser setting.

Share: Email LinkedIn Telegram X

Try it out with your own website.

Free, no credit card, set up in two minutes.

Start for free