Privacy-friendly analytics: the guide for Switzerland, the EU and the UK

Which rules apply when you measure the visitors to your website? This guide sorts out the Swiss FADP, the GDPR and the cookie rules of neighbouring countries, compares the common measurement methods and ends with a checklist for your website.

Updated on · Reading time: approx. 8 minutes

In short

Web analytics touches two sets of rules: data protection law when personal data is processed, and the rules on accessing the visitor's device. In Switzerland the FDPIC does not generally require consent for statistics, but it does require information and a way to object. In the EU almost any measurement with JavaScript falls under the ePrivacy rules, even without cookies, and Germany has no exemption for statistics. Since February 2026 the UK allows statistics used solely to improve your own service without consent, if visitors are clearly informed and can object easily.

Two questions, two sets of rules

To assess web analytics legally, it helps to ask two questions separately:

  1. 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.
  2. 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.

MethodWhat happens in the browserRecognitionAssessment in the EU
CookiesAn identifier is stored and read on every visitPossible for monthsStorage and access, usually consent
Local storageAn identifier is stored in the browser, similar to a cookiePossible indefinitelySame as cookies
Server-side hashA script sends data, the server builds a hash with a rotating saltOne day to one month, depending on the saltAccess by the script
FingerprintingDevice and browser properties are read and combinedLong-term and without the visitor knowingAccess, highly intrusive
Server logsNothing, the web server logs requestsHardly, at most via the IP addressIP 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. 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. 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. 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. 4

    Update your privacy policy

    Name the tool, purpose, recipients, storage location and any countries abroad. Explain how visitors can object.

  5. 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. 6

    Use heatmaps and recordings selectively

    Enable them only on pages you want to improve and exclude forms with sensitive information.

  7. 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.

Frequently asked questions

Privacy-friendly analytics: frequently asked questions

Do I need consent for web analytics in Switzerland?
According to the FDPIC guidelines, neither the FADP nor Art. 45c TCA generally require consent. Information and a way to object are mandatory. According to the FDPIC, express consent is needed for sensitive data and high-risk profiling, and for federal bodies already for cookies that lead to «normal» profiling.
Is cookieless analytics automatically allowed without consent in the EU?
No. Under the EDPB Guidelines 2/2023, JavaScript that makes the browser send data also falls under Art. 5(3) of the ePrivacy Directive. Whether an exemption applies is up to the member states. Germany has no exemption for statistics, France has one under strict conditions.
Is an IP address personal data?
The Italian data protection authority stated this explicitly in 2022. The FDPIC writes in its cookie guidelines that even cookie IDs can be personal data and that you should assume so in case of doubt. Treat IP addresses as personal data.
What changed in the UK in 2026?
Since 5 February 2026 the amended PECR allow storage and access for statistics without consent if visitors are informed and can object simply and free of charge. Advertising and profiling still require consent.
Can I still use Google Analytics?
Yes, but in the EU usually only with consent, and you have to cover the transfer to the USA in your privacy policy. What to watch out for is in the guide Google Analytics 4 and GDPR.
Free up to 2,000 pageviews · no credit card

Web analytics from Switzerland.

No cookies, hosting in Zurich and Geneva, heatmaps and recordings included.