Google Analytics on Your Wordpress Blog

So I did a couple searches yesterday looking for the technique for putting Google Analytics on my blog. Since I’ve already put their code on the main pages of my portfolio site, I wanted to add it to the blog as well.

I found a quick little bullet-point that revealed how it’s done on Matt Cutt’s Blog (he was one of the first search results I found when searching). He says:

If you’re using WordPress with a theme like almost-spring, you would edit your header.php file, e.g. wp-content/themes/almost-spring/header.php and put the JS just above the tag. That’s it. Do a view-source on this page and search for “urchin” to see where to drop the code.

I tried this, and it’s already sending through hits. Wow, cool. Thanks Matt. I’ll have to monitor this over time, as it looks like it’s not sending as specific information through as I’d like. I’ve heard of other blog tracking tools, but this should be sufficient for now.

So guess what? I now know you’ve visited. Yeah! Upward and onward.

Comments are closed.