Web statistics script for this site

in Sites, WWW, Webdev

I use some scripts to gain information about the site statisics. The first one is Shaun Inman’s Shortstat, and the second one is refer script by Textism. About the first, Thalia mentioned something about the database rows. Yes, you’re right Thalia. Well, this is how I use those scripts.

Easy-to-read statistics

Shaun Inman’s Shortstats gives me something easy to read. And, it is quite complete. I can have these information: total hits, unique visitors, browsers, referers, search strings, and visitors’ country origins. When I write this, there are thousands of rows in my statistics table.


The same thing with Textism refer script. Just like its name, I use this to gain list of referers, how people come to my site. The difference is that I can have the visitors’ IP addresses, and the website URL (origin). When I find some stupid referers (read it as: potentially spammers), I put the information (IP address, query strings, and badwords) in my .htaccess file. I have lots of line in my .htaccess. For example, I found visitors come from stupiddomain.com/with/stupid/folder/, I put RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)stupid(-|.).*$ (Note: this is only part of my .htaccess file, I have many variations for this.)

Clean it up regularly

I do not keep the information forever. Every month, I clean up the statistics table. Both Shortstat and Refer have a simple mechanism to reset the database. A simple process. :)

Why not keeping the information?

The simplest answer for this is that I — probably most of you — have a bundled statistics in my web hosting control panel. :)

If you're new here, you may want to subscribe to my RSS feed go get the latest entry from your RSS reader. You can also have my contents delivered to your inbox.

This entry receives 4 comments.

  1. thalia

    a-ha! maybe i’ll go and try the Textism script as well and see how it goes. so far, i’m liking the Shortstat. i think it’s should be okay if i could flush all the data on the previous month.

    thanks for all the info, thomas…you rock! :)

    Jun 8, 2005 at 10:31 pm

  2. alarix

    hmm.. dulu pernah nyoba install shortstat tapi ga bisa2 :D

    Jun 10, 2005 at 6:10 pm

  3. jeffry

    i wish i used MT

    Jun 11, 2005 at 5:05 pm

  4. Thomas

    Alarix, itu kan dulu… sekarang mesti lah sudah gak masalah ;)

    Jeffry, tidak harus MT sih. Asal punya hosting support PHP dan ada database MySQL nya bisa saja itu Shortstat.

    Jun 13, 2005 at 3:09 am

Subscribe

Buy me coffee

Do you like articles and other in my blog? If you find them useful, you can support me by sending donation.