Please use an optimized Google Analytics snippet and insert it at the bottom of the page.
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.
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