2

Could some explain what does 'www.google-analytics.com/analytics.js' do? I mean how the code works and what are the 2469 lines of code do...

I have seen an explanation of what the code that loads this script do. It is here: Google Analytics Code Explanation. This is useful, but it only explains how the final script gets loaded, not the inner workings of the actual analytics.js file.

  • Welcome to Stack Overflow. This is a pretty tricky thing to do, but I'm trying my best. I think you should read the [tour] and maybe check out the [faq] whilst you wait for me to waste my life trawling through pages of documentation and decoding this mess of obfuscated code. ;-D – wizzwizz4 Oct 06 '18 at 10:40
  • Hey, I've noticed you've been popping back to Stack Overflow every so often. If you're interested, I've started the analysis up again. – wizzwizz4 Apr 15 '19 at 13:26
  • thanks for this... it is not easy to understand but it helps a lot – Rafael Casado Sep 12 '19 at 07:44
  • Reading the law in my region, there might be a limit to the parts I can legally reverse-engineer. As far as I can tell, everything I've done so far is allowed, but I might have to stop early. – wizzwizz4 Sep 13 '19 at 20:40
  • Reading the law in my region… there's a law that says I can, and a law that says I can't, so I'm erring on the side of caution for now and deleting the answers. Sorry. – wizzwizz4 Sep 17 '19 at 20:30
  • There's a law in your region that prevents you from renaming variables and formatting code that is downloaded and executed on every visitor's device? O.o – ericek111 Mar 09 '21 at 13:04

0 Answers0