Tim Mattison

Hardcore tech

Fixing In-Page Analytics With Google Analytics

| Comments

After migrating to Octopress I started getting interested in my site’s analytics again. A co-worker told me about in-page analytics with Google Analytics and how it would show you what people were doing on your site so you could tune your layout. We tried loading it and ran into some problems.

First, we got the “Loading…” spinner for a long time:

Loading...

Then we got the “Still loading…” message that didn’t inspire much confidence:

Still loading...

Finally, we got a popup that said “Problem loading In-Page Analytics”:

Problem loading In-Page Analytics

What the problem was in my case was that I told Google Analytics that I wanted to track timmattison.com but my site redirects to blog.timmattison.com. My two options were to make my site actually be served from timmattison.com or to change my tracking code. I opted to change my tracking code. I’ll walk you through how I did it.

NOTE: You will lose your existing tracking data if you do this! If you want to keep your tracking data you’ll need to find another way. For me it wasn’t a big deal because I just moved my site anyway and my analytics were reset a week or two ago already.

Here are the steps:

  • Log into your analytics account

Log into your analytics account

  • Click the admin button

Click the admin button

  • Click “View Settings”

Click "View Settings"

  • Scroll all the way to the bottom of the page

  • Click “Delete View”

Click "Delete View"

  • Click “Delete View” again. At this point you’ll lose all of your analytics history!

Click "Delete View" again

  • Click the admin button

Click the admin button

  • Click the property drop down and then click “Create new property”

Click the property drop down and then click "Create new property"

  • Re-create your property and make sure you use the site you redirect to. In my case “blog.timmattison.com”, not “timmattison.com”.

  • Put your new tracking code into your site. Don’t forget to do this or tracking won’t work at all!

And that should do it. Let me know if it works for you or if you need some help.

Comments