I think this is a much better solution for that problem and many others:
Here's a Manifest V3 extension to block Google Analytics. First, the manifest.json file:

  "name": "Block Google Analytics",
  "version": "1.0",
  "description": "Blocks Google Analytics.",
  "declarative_net_request": {
    "rule_resources": [{
      "id": "ruleset_1",
      "enabled": true,
      "path": "rules.json"
  "permissions": [
  "manifest_version": 3
And the rules.json file:

        "id": 1,
        "action": { "type": "block" },
        "condition": {
            "domainType": "thirdParty",
            "requestDomains": [
            "resourceTypes": [
Just use Brave or install uBlock origin Firefox or other Chromium based browsers. And god forbid do not use Chrome. And make sure you have the Easy-Privacy list active. Brave actually uses the list internally without showing it to the user on the filter list screen.

If you would like to block tracking this way you would need to install thousands of addons for every company/domain/... its a pretty shitty solution. Is Google by law somewhere required to provide this or why is this an actual official extension?

This is probably an good thing if you're in any situation where you'd want an official, perfectly identifiable entity providing the blocking extension.

For instance this could be easier to convince a school board to introduce this extension than another one with a weird name, made by some gorhill guy they've never heard about.

source code:

    /* Copyright 2010 Google Inc. All Rights Reserved. */
    (function () {
    var a = document.createElement("script");
    a.type = "text/javascript";
    a.innerText =
        'window["_gaUserPrefs"] = { ioo : function() { return true; } }';
        document.documentElement.insertBefore(a, document.documentElement.firstChild);
Because if you don't want Google analysing what you do on the internet, of course you're going to trust a Google-supplied add-on to manage that in your interests, and not in Google's.


That's cute, it should read" "opt"-"out" "
Notably it still uses Manifest V2 so it will likely break if it isn't updated before Manifest V3 becomes required.
Who needs standards. Do Not Track? Better build our own extension.
Do I even need this with a "blocking" browser like Cromite?
That’s GDPR evidence for not having informed consent isn’t it?