แต่ก่อนผมใช้อันนี้ แต่เดี๋ยวนี้เค้าเปลี่ยนใหม่แล้วเหรอครับ เพิ่งเข้าไปดู เพราะแต่ก่อนก๊อปของเดิมมาเปลี่ยนเลขตลอด
รู้สึกว่าของใหม่ load ช้ากว่าเดิมเนอะ
หรือเพราะเอามาใส่ก่อน </head> ไม่ได้ </body> เหมือนอันเก่า
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("<script src='" gaJsHost "google-analytics.com/ga.js' type='text/javascript'></script>"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-xxxxxxxxx-1");
pageTracker._trackPageview();
} catch(err) {}</script>
อันใหม่
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxxx-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? '[url]https://ssl[/url]' : 'http://www') '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>