Saturday, December 1, 2007

Adding Google Analytics to Blogger

Just added Google Analytics to my blog. Didn't know it was so easy. Basically you just need to sign up for an Analytics account. Add your blog URL to your Analytics account. Then follow through the remaining steps till you're shown your Analytics code block. Copy the code block to your clipboard. Don't close this window yet.

Now sign in to your Blogger dashboard. Click on the Template tab. Then click on Edit HTML. Scroll down to the end of your template's HTML. Now paste your Analytics code block just before the ending </body> tag. Something like this:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-XXXXXXX-X";
urchinTracker();
</script>
</body>
</html>

Save your template.

Now go back to your Google Analytics account. Click Continue to finish the remaining steps. That's it!

No comments: