Google Analytics is yet another free statistic collector for your website. Google Analytics tallies up the data once a day. You’ll get incoming link information, number of visitors, location of visitors and time spent on your site and the pages each visitor viewed.
Analytics will give you more data than most of the free statistics tools out there. But I’m still a fan of StatCounter too. They update data much more often.
I waited a long time to use Google Analytics because you have to enter the JavaScript with your code on every page on your website. Now that TimesToCome is cleaned up and much of it moved to blog format I decided it was time. Still there were about 500 files that needed the code added to them.
So I wrote a small PERL script ( permanent link on top left of page ) to do this. It searches every file in the directory you place it in for ‘</body>’ and adds in the Google Analytics code just before that tag. Read the notes in the script before using it. You’ll need to enter your personal analytics code number to the script.
Of course for your Blogger and Wordpress blogs you need only change the template and enter the code just above the </body> tag. One entry is needed for Blogger. You may have to change index.php, single.php and page.php for Wordpress depending on your theme. Where ever you find </body> in your template files you need to add the script.
6 responses so far ↓
1 rchmura // Jul 3, 2007 at 3:26 am
If you like how often statcounter updates, you should try GoStats. The updates are super fast and the amount of data that you can analyze is much larger than the 500 limit which statcounter has.
2 feemurk // Mar 15, 2008 at 12:19 am
Hi There,
Was interested in your Pearl script - it won’t download (http 404 error).
3 admin // Mar 15, 2008 at 7:13 am
Sorry, I’ve moved all the websites to a new server and it behaves a bit different than the previous one.
Give me a little while - it looks like none of the Perl scripts are downloading. Will have it fixed soon.
4 admin // Mar 15, 2008 at 8:52 am
OK, I saved them as .txt files, not optimal but I’ve moved 10 websites to a new host this week and there are lots of kinks to work out.
5 MyWebsiteAdviser // Apr 30, 2008 at 4:17 pm
You have a nice and useful blog.
I saw you have a few articles about Coppermine gallery.
I tried to find how to get web statistics for Coppermine gallery, but didn’t found anything. So I wrote it myself - you can see it here:
Web Statistics for Coppermine Gallery
Enjoy,
Alex Webs.
6 ljmacphee // Apr 30, 2008 at 5:19 pm
Thank you.
I’m sure many webmasters will find that useful.
You must log in to post a comment.