andrew has asked for the wisdom of the Perl Monks concerning the following question:
Now Im so stumped, how do sites know who has been at my site, I.P and all the page they viewed referrals and all that stuff, I mean were is it all stored. I wanna make a script that shows how many people have been to the site each month and there I.P how many clikcs they did, Is this already stored somehwere I dont know about??
Re: Traffiic Script
by spartacus9 (Beadle) on Sep 28, 2002 at 03:25 UTC
|
There's another option which makes pulling that kind of data on-the-fly much easier. Check out the Apache::DBILogger module. It allows you to configure Apache to log all of the access data to MySql (or technically, any DBI-comaptible database). I use it and it works exceptionally. I find it much easier to generate statistical data from site activity when I can just crank out a Perl script to read data from MySql rather than parse a text log file.
One caveat, however, is that it does require that your Apache be built with Mod_Perl. | [reply] |
Re: Traffiic Script
by scottstef (Curate) on Sep 28, 2002 at 03:00 UTC
|
Your web servers should have access logs that store that information. With apache, you can configure these logs to track almost all information that you want assumeing the browser passes it to the site.
"The social dynamics of the net are a direct consequence of the fact that nobody has yet developed a Remote Strangulation Protocol." -- Larry
Wall | [reply] |
|