Home
Web Hosting
Domains FAQ
Resources
About Contact Client Portal
Guides ยท ยท 12 min read

Can You Use Google Analytics in Switzerland? A Data Protection Guide

ยท 12 min read

Data protection for analytics in Switzerland is lighter than in the EU, but it is not a free-for-all. You can run Google Analytics on a Swiss website, and you do not need the opt-in cookie banner an EU site needs for it. You do need to tell visitors what you collect, who receives it and which countries it goes to, and you must give them a visible way to say no. This guide covers the rules that apply, what Google Analytics needs to stay on the right side of them, and why self-hosted analytics on a Swiss server removes most of the work.

Last reviewed: 1 December 2026. Based on the FDPIC's cookie guidelines (version of 6 October 2025) and its cookie factsheet of 31 March 2026. This is general information, not legal advice.

The short answer

Yes, Google Analytics is allowed in Switzerland. Swiss law asks for clear information and an easy way to refuse (opt-out) rather than prior consent, unless the tracking amounts to high-risk profiling or involves sensitive data. Google is certified under the Swiss-U.S. Data Privacy Framework, so sending analytics data to Google in the US is permitted, but your privacy notice has to say so. If your site also targets visitors in the EU, the stricter EU consent rules can apply on top. Self-hosting your analytics in Switzerland keeps the data in one place and under your control, which makes most of these duties simpler.

Which rules cover analytics in Switzerland

Two laws do the work. The revised Federal Act on Data Protection (FADP), in force since 1 September 2023, governs any processing of personal data, including what an analytics tool collects about visitors. Article 45c of the Telecommunications Act (TCA) is the only Swiss provision written specifically for cookies: processing data on a visitor's device is allowed only if the visitor is told about it and its purpose, and told that they can refuse. Wilful or negligent breaches of Article 45c can be fined up to CHF 5,000.

How the two fit together in practice is set out by the Federal Data Protection and Information Commissioner (FDPIC), Switzerland's data protection regulator. Its guidelines on cookies and similar technologies were published on 22 January 2025 and revised on 6 October 2025, and a shorter factsheet followed on 31 March 2026. The guidelines are not a statute, and courts have the final word, but they tell you how the regulator will supervise websites. They also cover cookieless techniques such as browser fingerprinting, pixels and user IDs, so avoiding cookies does not take you outside them.

Is analytics data personal data?

Often, yes. In the Logistep case of 2010 (BGE 136 II 508), the Federal Supreme Court held that IP addresses can be personal data under Swiss law. Cookie IDs and device fingerprints work the same way, because they single out one visitor. The FDPIC advises assuming personal data may be involved whenever identifiability is uncertain. Data that is truly anonymised falls outside the FADP, but only if it can no longer be linked to a person without disproportionate effort.

Do you need a cookie banner in Switzerland?

Swiss law puts the emphasis on transparent information and a right to object, not on the prior consent EU law requires. The FDPIC sorts cookies and similar technologies into three groups:

No consent neededTechnically necessary cookies

Cookies that make the site work, such as a login session, a shopping cart or a stored cookie choice. You still mention them in your privacy notice.

Opt-outAnalytics and other non-essential cookies

Visitors must be informed and given a clearly visible option to refuse, generally before the cookies are activated. Because the refusal has to be possible before the cookies are set, that usually means a banner or notice with a reject option on the first visit, even though it does not have to ask for consent up front.

Opt-inHigh-risk profiling and sensitive data

Tracking that builds high-risk profiles or processes sensitive personal data needs express consent before it starts, and a pre-ticked box does not count. Tracking that visitors would not expect needs at least an opt-out highlighted in proportion to how unusual it is, and consent if it is also highly intrusive.

Plain website statistics usually sit in the middle group. The FADP recognises statistics as an overriding interest that can justify processing without consent, provided three conditions hold (Article 31(2)(e)): the data is anonymised as soon as the purpose permits, which on a website usually means immediately; sensitive data reaches third parties only in a form that identifies no one; and published results identify no one. The FDPIC says external analytics tools can meet these conditions too, as long as the supplier processes the data only on your behalf and not for its own purposes. That last condition matters for Google Analytics.

Using Google Analytics in Switzerland

Google Analytics is allowed in Switzerland, but a default setup leaves gaps. These are the points to cover.

The transfer to the US. Personal data may leave Switzerland freely only to countries on the Federal Council's adequacy list. Since 15 September 2024, that list includes the United States, but only for companies certified under the Swiss-U.S. Data Privacy Framework. Google LLC is certified, so the transfer itself is permitted without standard contractual clauses or a transfer impact assessment.

Your privacy notice. The FADP requires you to name the recipients of personal data and, when data goes abroad, the country and the safeguard used (Article 19). For Google Analytics that means naming Google, the United States and the Data Privacy Framework. Wilfully failing to inform visitors, or giving false or incomplete information, can lead to a fine of up to CHF 250,000. Unlike under the GDPR, that fine is aimed at the responsible individual rather than the company.

The settings. Google Analytics 4 does not log or store IP addresses from users in the EU, Switzerland or the UK, but it does set first-party cookies with an identifier for each browser. Three things decide where your setup stands:

  • "Google products & services" data sharing. With it off, Google acts purely as your processor. With it on, Google becomes an independent controller of the shared data and uses it for its own products, which is exactly what the FDPIC says an external tool must not do. Turn it off.
  • Consent Mode for advertising cookies. Since 15 June 2026, Google Signals no longer controls whether the Analytics tag collects Google Ads cookies and identifiers. Consent Mode is now the single control, so switching Signals off is not enough. Unless a visitor agrees, set Consent Mode's ad_storage to denied. Advertising profiles need at least a clearly visible opt-out and, where they amount to high-risk profiling, prior consent.
  • The browser identifier. Even with data sharing off, GA4's identifier persists from visit to visit, so the data is not anonymised as soon as possible in the way the statistics exception expects. A standard GA4 setup therefore rests on clear information and a visible opt-out, not on that exception.

Visitors from the EU. If your site targets people in the EU, the GDPR can apply to a Swiss operator that monitors their behaviour, and EU cookie rules generally require opt-in consent for non-essential cookies such as Google Analytics. A Swiss business with an EU audience therefore usually ends up with a consent banner anyway.

Self-hosted analytics in Switzerland

The alternative is to run open-source analytics on your own server. The data stays on that machine, no third party uses it for its own purposes, and if the server stands in Switzerland the data is not sent to another country, provided your backups, monitoring and other integrations stay in Switzerland too. It also fits the FDPIC's statistics exception naturally, because the better tools anonymise or discard identifiers as they go.

Plausible Community Edition is the free, self-hosted version of Plausible Analytics. It sets no cookies and does not store visitor IP addresses. It needs Docker and a CPU with SSE 4.2 support (NEON on ARM) for its ClickHouse database, and the project recommends at least 2 GB of RAM.

Matomo On-Premise is the closest match to Google Analytics in depth. It can be forced to track without cookies and can mask IP addresses, and it needs only a web server, PHP and a MySQL or MariaDB database. Matomo 6, released in November 2026, requires PHP 8.1 and MySQL 8.0 or MariaDB 10.6 or newer.

Umami is a lighter open-source option under the MIT licence, popular with people who already run Docker.

Self-hosting does not remove every duty. You still list the tool in your privacy notice, you still offer a way to object, and your web server's access logs contain IP addresses too, so keep their retention short. What it removes is the third-party recipient, the transfer abroad and the settings you have to police at someone else's company. Our guide to running WordPress without Google covers the same idea for fonts, maps and embeds, and Google Fonts and the GDPR explains why embedded third-party resources raise the same questions as analytics.

ย  Google Analytics 4 Self-hosted on a Swiss server
Who receives the data Google, in the US Only you; the host supplies the server
Where the data goes To the US, under the Swiss-U.S. Data Privacy Framework Stays in Switzerland, if backups do too
Cookies First-party cookies with a browser identifier None with Plausible; optional with Matomo
Privacy notice must name Google, the US and the safeguard The tool and what it collects
Swiss visitors Visible opt-out; consent for advertising cookies Notice and an objection route
EU visitors Opt-in consent banner Cookieless setups often avoid consent, depending on the country
Cost and effort Free, nothing to run A server, plus updates and backups

Running your analytics on a Swiss VPS

Plausible Community Edition's 2 GB RAM recommendation makes our Swiss Cloud VPS #2 (3 vCPU, 3 GB RAM, 40 GB storage, โ‚ฌ22.90/month) the smallest plan we would put it on. Matomo and Umami are lighter and run on less. Our Cloud VPS are full KVM virtual machines, so Docker works as it would on a dedicated server. Before installing Plausible, run grep -c sse4_2 /proc/cpuinfo: any number above zero means the CPU meets ClickHouse's requirement. See Swiss Cloud VPS plans for the full lineup, VPS hosting in Switzerland for what the Swiss location gives you, and what to do with a VPS for other services worth running next to it.

We follow the same advice ourselves. packetra.com does not use Google Analytics. Our visitor statistics come from a self-hosted Plausible Community Edition instance, which sets no cookies.

A checklist for analytics in Switzerland

  1. List every tool that sets cookies or sends visitor data elsewhere, including embedded fonts, maps and videos.
  2. Sort each one: technically necessary, analytics, or advertising and profiling.
  3. In your privacy notice, name each recipient, each country outside Switzerland and the safeguard that covers it.
  4. Show a clearly visible way to refuse non-essential cookies before they load, and ask for consent before any advertising profiling.
  5. In Google Analytics, keep "Google products & services" data sharing off, and set Consent Mode's ad_storage to denied until a visitor agrees to advertising cookies.
  6. If you target visitors in the EU, apply the EU consent rules as well.
  7. Keep web server access logs only as long as you need them.

For the wider legal picture, including the FDPIC, data subject rights and what the FADP means for hosting, see our guide to Swiss data protection law for hosting.

Frequently Asked Questions

Is Google Analytics legal in Switzerland?

Yes. Google is certified under the Swiss-U.S. Data Privacy Framework, so the transfer to the US is permitted. You must name Google, the US and the framework in your privacy notice, and give visitors a visible way to refuse the cookies. The safe course is to ask for consent before switching on its advertising features.

Do I need a cookie banner for analytics in Switzerland?

Not a consent banner for ordinary statistics, but visitors need a clearly visible way to refuse before the cookies are set, which in practice means a banner or notice with a reject option. High-risk profiling and sensitive data need prior consent, and EU visitors bring EU consent rules with them.

Is an IP address personal data under Swiss law?

It can be. The Federal Supreme Court held in 2010 that IP addresses can be personal data, and the FDPIC advises treating data as personal whenever identifiability is uncertain.

Does the GDPR apply to a Swiss website?

It can. The GDPR applies to operators outside the EU that offer goods or services to people in the EU or monitor their behaviour there, and web analytics is a form of monitoring. A Swiss site aimed only at Swiss visitors is governed by the FADP.

What are the penalties?

Wilfully failing to inform visitors, or giving false or incomplete information, can be fined up to CHF 250,000 under Article 60 FADP, and that fine targets the responsible individual. Breaches of the cookie rule in Article 45c TCA can be fined up to CHF 5,000.

Research note and sources

This article summarises Swiss law and the FDPIC's published guidance as of the review date. The FDPIC's guidelines describe how the regulator applies the law and are not binding on the courts. Product details for Plausible, Matomo and Google Analytics come from each vendor's own documentation. This is general information, not legal advice.

Need Reliable Hosting?

Privacy-focused, anonymous, and built for people who value their data.