1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Use an optimized Google Analytics snippet

Discussion in 'Closed Suggestions' started by komi, Mar 23, 2013.

  1. komi

    komi Member

    Please use an optimized Google Analytics snippet and insert it at the bottom of the page.
    <script>var _gaq=[['_setAccount','UA-XXXXXXXX-X'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'));</script>
    Just omitting the unnecessary protocol check and replacing it with a hardcoded string is already up to two thousand times faster.
    Have a look at http://mths.be/aab for more information.
    Mouth likes this.

Share This Page