Matomo Analytics

Documentation

How do I opt out of the Google FLoC network?

FLoC (Federated Learning of Cohorts) was an experimental tracking mechanism Google trialled in Chrome. Google discontinued FLoC in 2022 and replaced i...

FLoC (Federated Learning of Cohorts) was an experimental tracking mechanism Google trialled in Chrome. Google discontinued FLoC in 2022 and replaced it with the Topics API, so the old opt-out is no longer necessary.

Historically you could opt out by sending a Permissions-Policy: interest-cohort=() response header. Because FLoC has been removed from Chrome, this header now does nothing — it is harmless if you already have it, but there is no need to add it to new sites.

The newer Topics API cannot be disabled with a single response header the way FLoC could; it is governed by the user's browser settings and the Privacy Sandbox. For general privacy and security hardening, focus on a solid Content-Security-Policy and the standard security headers instead.

Dennis Smink

Written by Dennis Smink

Dennis brings over 13 years of hands-on experience in server management, specializing in optimizing web services for scalability and security.

Ready to dive in?
Start your free trial today.

Create an account and enjoy your 5-day free trial — no credit card required.

Start your free trial