News for hackers. Stuff that matters.
Re:Deconstructing the Google Analytics tracking script by shreve on Thursday June 29, 2017 @08:14AM (#14662583)
I'm amused by the fact he thinks `array.push(arguments)` inside the nested function evaluates and pushes the arguments from the parent function.
Re:Deconstructing the Google Analytics tracking script by lucideer on Thursday June 29, 2017 @01:14PM (#14664968)
Yeah, I'm surprised noone had pointed this out.

For all those here mentioning that he's only "deconstructed" the snippet, and not the actual main linked analytics script, you're the first to observe that he's deconstructed the snippet incorrectly.

Don't get me wrong, it's really great and heartening to see someone new to JS getting back to basics and trying to understand things in proper minute detail (instead of doing another tutorial about a boilerplate React app), but this is hardly HN front-page material? It's a very simple JS snippet.