Google Analytics and wordpress.com

Google Analytics is the new tool offered by Google to monitor activity on your website. It’s free, and choke-full of information and graphs. The noise you hear is the cheer from Site Meter users.

Unfortunately, there’s a catch : to use it, you have to include a little bit of javascript in the page you wish to monitor. And if your blog is hosted at wordpress.com, you know by now that you basically have no control over HTML template on your blog (or almost none). HOWEVER, not all is lost, as I discovered this tip also applied to scripts – basically, all you have to do is open your wordpress.com dashboard, go to “Links”->”Add Link”, then paste the Google Analytics script in the “Image URI” field (in the “Advanced” area, down near the bottom of the page). And it should work.

By the way, I don’t know what’s going on, but every blurb I post on wordpress today appears with the timestamp “December 31st, 1970”. Something weird is going on, I’m telling you.

UpdateApparently, things just looked like they were working : Google Analytics has been gathering data from my site for 3 days now, with no end in sight. So the tip does not work – you really need to be able to edit the html code by hand. Which sucks.

Maybe things will improve with the planned upgrade to WordPress.com tonight… :P 

This entry was posted in Web. Bookmark the permalink.

4 Responses to Google Analytics and wordpress.com

  1. Elitum says:

    It’s not good that html code can’t be edited😦. I tried yours tip, but not sure if this works.

  2. vnoel says:

    Well actually it *looks* like it’s working (the Google Analytics page says “Installation successful, gathering data” or something like that), but it’s been gathering data for three days now… So I guess the experiment is a failure😦

  3. Neeraj says:

    If i remember right, for Google Analytics to work we need to add that code snippet to every page we want to gather info. If we put it just in sidebar, I don’t think it will work correctly.

  4. Donncha says:

    Even if you could edit the HTML of the template there’s no way that Javascript would be allowed through – a Javascript worm worked it’s way through Myspace not so long ago, and they’re lucky that the worm didn’t steal people’s login info!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s