Google Analytics is cool - and then not so cool
Posted by: Matt in Web tools, tags: Google, toolsI have been playing with Google Analytics the past few days. It’s an extremely cool web monitoring system, with great graphs and such. Shame it’s so poorly documented and sometimes doesn’t work.
Installing GA is really simple - you sign up and get an account, which gives you a unique id number for the site(s) you want to monitor. You can have many ID’s per GA account. Once you have the id, you paste the supplied script into the bottom of each page you want to monitor. The script looks something like this:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-#######-#"; // your site id goes here urchinTracker(); </script>
All very well and good, except when I tried putting this piece of code into the footer of my Wordpress site, Google Analytics says it can’t find the code, when it’s definitely there when I do a view source on the page. Just to make sure it wasn’t some sort of Javascript thing, I even pulled up the page using Telnet, and I can see the script there. Can’t find any fixes for this on the web, either. Pity, too, because Google Analytics is something I’d really like to use.

Entries (RSS)
Well, I figured out what my problem was. It turns out it was all my fault (surprise surprise). My web host has my site at “mattharrah.com”, and I had Google Analytics set up as “www.mattharrah.com”. That was enough to cause GA not to find the code.