41 points · by mitchbob · 3y ago · 34 comments
{
"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": [
"declarativeNetRequest"
],
"manifest_version": 3
}
And the rules.json file: [
{
"id": 1,
"action": { "type": "block" },
"condition": {
"domainType": "thirdParty",
"requestDomains": [
"analytics.google.com",
"google-analytics.com"
],
"resourceTypes": [
"ping",
"script",
"xmlhttprequest"
]
}
}
]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?
See this HN submission: Firefox replaces Google Analytics with fake no-op in strict tracking protection[1].
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.
/* Copyright 2010 Google Inc. All Rights Reserved. http://tools.google.com/dlpage/gaoptout/intl/en/eula_text.html */
(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);
})();Wat?
Are you going to analyze every update? Or even remember to check online to find the results of someone else's analysis of every update?
Or do you trust Google to never change their priorities with regards to how this extension operates?
I don't need to, if they changed it then it would go to the top of HN for a day at least. That is much better than some random extension creator that can sell it to a malicious actor at any point, that isn't news so would likely go under my radar.
The Google Analytics JavaScript (gtag.js, analytics.js) runs on sites using Google Analytics, to share site-usage data (which can be gathered from either consented cookies, or "legitimate interest" exceptions) with Google Analytics.
The EU-mandated cookie box/popup literally lists Google Analytics on sites that use it, and this categorically states you can control refusal of that by using the browser add-on -- which is clearly informed consent, because you can choose not to install it, knowing the data (which could be gathered by other means anyway) will then be passed on to Analytics.
Of course this is for the average non-technical end user, who hasn't -- for example -- already used something like NoScript to block the JavaScript from running in the first place...
I don't even know if you are sarcastic but:
That is not how that works, legally or otherwise.
The GA add-on is purely about that same data being passed to GA - and the very same cookie pop-up literally tells you what information is sent, why, and tells you how you can opt out (by either blocking the JavaScript, or installing the add-on) -- it literally meets the requirements for informed consent, as you put it, "legally or otherwise."
Might want to go check that out before trying to make baseless claims, "legally or otherwise."