Lack of interest Use an optimized Google Analytics snippet

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

komi

Member
Please use an optimized Google Analytics snippet and insert it at the bottom of the page.
Code:
<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.
 
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom