2008-01-01

Google Analytics

Today, being the first day of the year, I installed Google Analytics. I've been meaning to do that for some time now, well, since I put up this blog about a week ago. It's so easy that it does not require more than a minute of time for somebody who knows what they are doing. Basically type in analytics.google.com and fill out the panel consisting of three text boxes. Like what's the sites name, what's your name, what's your email. Then it gives you either legacy code or newer code with some additional unspecified cool features. I chose the cool features. You paste this code at the bottom of the template right before the closing body tag. Done, it's that easy!
<script type='text/javascript'>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type='text/javascript'>
var pageTracker = _gat._getTracker("UA-3315021-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

No comments: