Deconstructing the Google Analytics tracking script

What does the Google Analytics script actually do? It’s pretty convoluted at first glance. (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),… | Bill Franklin | Working at ChartMogul. Oxford University student.
https://billfranklin.svbtle.com/deconstructing-the-ga-script