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.
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
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.
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.
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
- Let your previous analytics run in parallel for a few weeks until Statistikwerk has enough data.
- 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.
- 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.
- 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.
Try it out with your own website.
Free, no credit card, set up in two minutes.
You might also like
All guidesHow Statistikwerk counts visitors without cookies
What happens on a page view, what gets stored and what is left of it at the end of the day.
4 min read
Several domains in one set of statistics
Website, shop and app on different domains? This is how you see everything in one set of statistics and still see each domain on its own.
5 min read
Rankings, Search Console, visitors: what really counts?
Ranking first on Google no longer means lots of visitors. What rankings, Search Console and your web analytics show, and how to read them together.
6 min read