How does Firefox disable 'Google Analytics' tracking?


by

Johnathan Nightingale

Firefox, a web browser developed by Mozilla, is touted as a browser focused on protecting user privacy. Regarding the 'enhanced tracking prevention ' function provided by Firefox, how to avoid tracking by Google Analytics has become a hot topic on SNS.



Many web pages visited by Internet users have a wide variety of tracking tools embedded in them to collect data such as their behavior and things of interest. While collecting user data is useful for improving content and displaying advertisements, many users consider it a problem from the viewpoint of privacy.

Firefox's enhanced tracking prevention is a feature that blocks various trackers and malicious scripts on the web, limiting the ability of third parties to collect user data. In fact, enhanced tracking prevention can block a wide range of things, including 'social media trackers, ' ' cross-site cookies, ' ' tracking content, ' ' cryptocurrency mining, ' and ' fingerprint collection.'



Web developer

Jakub G (@__jakub_g) said on February 27, 2021, 'Firefox replaces Google Analytics with'non-functional fake Google Analytics' to prevent website corruption in enhanced tracking prevention. I'm tweeting. '

On the page of Mozilla's bug tracking system Bugzilla referred to by Mr. Jakub G, there is a report that 'the button on the website does not work with the enhanced tracking prevention function turned on'. After investigating this issue, it was found that blocking Google Analytics with enhanced tracking prevention prevented the code that called the Google Analytics function from executing and failed to load the resource.

The solution was to 'replace Google Analytics with'non-functional fake Google Analytics' and run it.' By incorporating 'non-functional fake Google Analytics' into enhanced tracking prevention and running it on the website instead of normal Google Analytics, it is possible to keep the website displayed while preventing the collection of user data. It is said that it is.

About this report Internet users said, 'I think this is beautiful.' 'Marketers will sooner or later need to learn to adapt to a privacy-centric world.' 'This is great. Lazy Google. Due to the implementation of analytics, there are many websites that fail when blocked. '



in Web Service,   Security, Posted by log1h_ik