Two questions, two sets of rules
To assess web analytics legally, it helps to ask two questions separately:
- Is personal data processed? Then data protection law applies: in Switzerland the revised Federal Act on Data Protection (FADP), in the EU the GDPR. Identifiers can be personal data even without a name. The FDPIC states in its cookie guidelines that cookie IDs can be personal data and that, in case of doubt, you should assume they are. The Italian data protection authority held in 2022 that an IP address is personal data.
- Is the visitor's device accessed? There are separate rules for that, regardless of personal data: in Switzerland Art. 45c of the Telecommunications Act (TCA), in the EU Art. 5(3) of the ePrivacy Directive with its national implementations, and in the UK the PECR.
Which law applies depends on your audience, not only on where your company is based. A Swiss website aimed at customers in Germany also has to keep the EU rules in mind. The guide Cookie banners in Switzerland shows when that is the case.
Switzerland: information and objection instead of consent
The FDPIC guidelines on cookies and similar technologies (version 1.1 of 6 October 2025) state that neither the FADP nor Art. 45c TCA make consent mandatory for non-essential cookies. What is mandatory is that visitors are informed and can refuse the processing. For statistics, Art. 31(2)(e) FADP is central: processing for non-personal purposes such as statistics can be justified if the data is anonymised as soon as the purpose allows and the results do not allow conclusions about individuals. External analytics tools are possible if the provider processes the data only on your behalf and not for its own purposes.
On top of that come the general FADP duties:
- Information (Art. 19): the privacy policy names at least the identity and contact details, the purpose and the recipients. If data goes abroad, you name the country and the safeguard.
- Processors (Art. 9): you sign a contract with the tool provider that governs the processing.
- Disclosure abroad (Art. 16): since 15 September 2024 the USA counts as adequate only for companies certified under the Swiss-U.S. Data Privacy Framework.
- Privacy by default (Art. 7): only what the purpose requires is collected.
According to the FDPIC, you need prior express consent if sensitive personal data such as health data is processed or if high-risk profiling takes place. Federal bodies need it even for cookies that lead to «normal» profiling (Art. 6(7) FADP), and they also need a legal basis. The details are in the guide Swiss FADP and website analytics and on the pages for the public sector and healthcare.
EU: device access usually means consent
In the EU, Art. 5(3) of the ePrivacy Directive governs when information may be stored on or read from a device. The European Data Protection Board (EDPB) interprets this rule broadly in its Guidelines 2/2023. It covers not only cookies but also JavaScript that makes the browser send data, tracking pixels, identifiers in links and IP-based tracking, unless it is certain that the IP does not originate from the device. Generating the information locally does not change that. How cookieless methods fare is explained in the guide Cookieless tracking.
Member states handle the exemptions differently:
- Germany: § 25 TDDDG allows storage and access without consent only where strictly necessary to provide a service the user explicitly requested. There is no exemption for statistics.
- Austria: according to its FAQ, the data protection authority requires consent for all cookies that are not technically necessary, and services that evaluate visitor behaviour do not count as technically necessary.
- France: the CNIL exempts audience measurement from consent if it serves only the publisher, produces only anonymous statistics and does not track across websites. It recommends at most 13 months for identifiers and 25 months of retention.
For Google Analytics 4, questions about the transfer to the USA and about Consent Mode come on top. They are summarised in the guide Google Analytics 4 and GDPR.
UK: a statistics exception since February 2026
With the Data (Use and Access) Act 2025 the UK amended the PECR. Since 5 February 2026, storage and access for statistics are allowed without consent if the sole aim is to understand how the service is used and to improve it. Visitors must be clearly informed and able to object simply and free of charge. The data may only be shared to help with the improvements. According to the ICO, an external provider must act as a processor, and advertising, profiling or linking with ad partners still requires consent.
Measurement methods compared
How a tool counts visitors determines which rules apply and how accurate the numbers are. The assessment in the right-hand column follows the EDPB Guidelines 2/2023 and does not take national exemptions such as the CNIL's into account.
| Method | What happens in the browser | Recognition | Assessment in the EU |
|---|---|---|---|
| Cookies | An identifier is stored and read on every visit | Possible for months | Storage and access, usually consent |
| Local storage | An identifier is stored in the browser, similar to a cookie | Possible indefinitely | Same as cookies |
| Server-side hash | A script sends data, the server builds a hash with a rotating salt | One day to one month, depending on the salt | Access by the script |
| Fingerprinting | Device and browser properties are read and combined | Long-term and without the visitor knowing | Access, highly intrusive |
| Server logs | Nothing, the web server logs requests | Hardly, at most via the IP address | IP tracking can be covered |
For private operators in Switzerland, all of these methods are generally possible with information and a way to object, as long as no sensitive data or high-risk profiling is involved. Fingerprinting remains delicate there too, because visitors can neither see it nor easily prevent it.
What to look for when choosing a tool
- Provider and data location: where is the data stored, and is the provider or one of its subprocessors based in a third country?
- Role of the provider: does it process the data only on your behalf, or does it also use it itself? That is decisive for the justification under Art. 31 FADP and for the exemptions in France and the UK.
- Data minimisation: does the tool collect only what you need out of the box? Can retention and level of detail be configured?
- Objection and consent: can the tool support an opt-out or work with a consent banner, depending on your audience?
- Heatmaps and recordings: are form fields and passwords masked, and can the feature be controlled per website?
Logiwolf sets no cookies, stores all data in Zurich and Geneva and offers a data processing agreement under Art. 28 GDPR and Art. 9 FADP. In session recordings passwords and form fields are masked automatically, and heatmaps load only where you enable them. Whether your website needs an opt-out or consent depends on your audience and configuration. An overview of other tools is in the comparison of web analytics tools.
Checklist for your website
- 1
Clarify your audience
Is your website aimed only at Switzerland, or also at visitors in the EU or the UK? That decides whether an opt-out is enough or consent is needed.
- 2
Check the tool and method
Write down what the tool stores or reads in the browser, where the data is stored and whether the provider uses it for its own purposes.
- 3
Sign a contract
Sign a data processing agreement with the provider and, for providers outside Switzerland and the EU, check the safeguards for the transfer.
- 4
Update your privacy policy
Name the tool, purpose, recipients, storage location and any countries abroad. Explain how visitors can object.
- 5
No personal data in URLs
Web analytics records the address that was opened. Email addresses, names or health information never belong in a URL or in UTM parameters.
- 6
Use heatmaps and recordings selectively
Enable them only on pages you want to improve and exclude forms with sensitive information.
- 7
Check the register and impact assessment
In Switzerland, companies with fewer than 250 employees are often exempt from the register. The exemption does not apply to large-scale processing of sensitive data or high-risk profiling.
If you want to switch from Google Analytics, the steps are in the guide Replace Google Analytics. Terms such as Consent Mode or Data Privacy Framework are explained in the glossary.
This overview is not legal advice. For websites with sensitive data or for public bodies, it is worth having a specialist review your set-up.
Sources: FDPIC cookie guidelines, v1.1 (German), Federal Act on Data Protection (German), Telecommunications Act, Art. 45c, EDPB Guidelines 2/2023, § 25 TDDDG (German), Austrian DSB, cookie FAQ (German), CNIL, audience measurement (French), Data (Use and Access) Act 2025, Schedule 12, S.I. 2026/82, ICO, Exceptions, Garante, June 2022 (Italian). As of October 2026.