You can use Perl or PHP to read these common environment variables. They contain anything that web server can gather from HTTP requests sent by the client machines. Find out how to read visitor's IP, distant machine language preferences, URL of the reffering page and many others. Knowing this data you will be able to build your own script to collect web site statistic information.