News for hackers. Stuff that matters.
Re:Firefox replaces Google Analytics with fake no-op in stri... by Brian_K_White on Friday February 26, 2021 @06:46PM (#26281197)
I love this.

It's whack-a-mole, but better whack-a-mole to learn-to-love-the-mole.

Another way to think of it besides the futility of whack-a-mole is, it's pushback, resistance, sand in the gears. It's making an undesired behavior less valuable. Yes you didn't stop sites from including analytics, yes tomorrow google will have some counter move, but that doesn't mean the effort was pointless. If you can exert a 5% pressure on some system and maybe only get a 5% reaction, that's perfectly fine.

Re:Firefox replaces Google Analytics with fake no-op in stri... by cosmie on Friday February 26, 2021 @07:36PM (#26281529)
They already have a counter move, to an extent. One of the deployment models for GA is via Google Tag Manager. One of the deployment models for GTM is this[1] server-side mode deployed to an App Engine container in Google Cloud. The only browser-visible communication happens between your browser and the App Engine instance, and then you send server side calls from that to the downstream systems based on those events (GA, Facebook Conversion API, etc).

It can also be used like the traditional GTM model, where it loads the primary GTM script browser-side, then that loads additional browser-side scripts based on the tags you implement (GA, Facebook, chat systems, map widgets, whatever). But the default GA support built into it avoids loading anything from Google's domains directly by the browser. And it's not even subject to the CNAME cloaking protections[2] that ITP have implemented, since it's not using the "CNAME to third party" technique that's typically common for these sorts of things to get first party access/privileges and is instead actually running on your infrastructure.

[1] https://developers.google.com/tag-manager/serverside

[2] https://webkit.org/blog/11338/cname-cloaking-and-bounce-trac...

Re:Firefox replaces Google Analytics with fake no-op in stri... by smadge on Friday February 26, 2021 @08:15PM (#26281764)
Integrating with Google Analytics on the server-side as opposed to the client-side has always been available. Developers just rarely do it because it is easier to add a JavaScript snippet to the page.
Re:Firefox replaces Google Analytics with fake no-op in stri... by sp332 on Friday February 26, 2021 @08:27PM (#26281828)
It gives much more detailed data like how long a user keeps a page open, and browser fingerprinting data that's not available server-side like querying fonts or viewport size.
Re:Firefox replaces Google Analytics with fake no-op in stri... by bigiain on Friday February 26, 2021 @09:44PM (#26282153)
All of that stuff can still run as 1st party js on your site, then use your own server to proxy it all back to GA if you want to.
Re:Firefox replaces Google Analytics with fake no-op in stri... by bradleykingz on Saturday February 27, 2021 @01:31AM (#26283148)
Yeah. But it's much easier to copy paste a script.
Re:Firefox replaces Google Analytics with fake no-op in stri... by tinus_hn on Saturday February 27, 2021 @06:22AM (#26284122)
How do they provide that? Doesn’t that require you to use a proscribed server stack?
Re:Firefox replaces Google Analytics with fake no-op in stri... by grishka on Saturday February 27, 2021 @04:34AM (#26283723)
Does the server-side integration allow cross-site tracking? I don't see how it possibly could.
Re:Firefox replaces Google Analytics with fake no-op in stri... by npteljes on Sunday February 28, 2021 @05:05AM (#26292160)
Not familiar with the particulars, but server-side GA, has the same theoretical ability as the current Javascript-based GA. The only difference is that the client code is served by the first party, and not the Google servers.
Re:Firefox replaces Google Analytics with fake no-op in stri... by marvinblum on Saturday February 27, 2021 @06:26AM (#26284142)
GA can compare fingerprints from different websites, so that should work.
Re:Firefox replaces Google Analytics with fake no-op in stri... by lhorie on Friday February 26, 2021 @07:07PM (#26281352)
What's really clever is that at the scale that GA is deployed, it's really really hard for Google to willy-nilly break API just to get around this because a lot of webmasters will simply not bother updating their scripts, and if Google forcefully pushes a breaking change, people might stop using GA, or worse, they get an avalanche of bad PR for breaking half the web.
Re:Firefox replaces Google Analytics with fake no-op in stri... by elemos on Friday February 26, 2021 @08:23PM (#26281811)
I don’t think this is true. GA has at least 2 versions it doesnt support in the past decade.

I imagine the opposite is true, in that they hold so much power they can do as they please.

Re:Firefox replaces Google Analytics with fake no-op in stri... by lhorie on Friday February 26, 2021 @08:39PM (#26281897)
My understanding is they are veeery careful around rolling out changes and deprecations. The cleverness is that there's a huge asymmetry in how fast Firefox can globally deploy updated shims vs how fast Google can change GA API.