Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Traffiic Script

by andrew (Acolyte)
on Sep 28, 2002 at 02:28 UTC ( [id://201402]=perlquestion: print w/replies, xml ) Need Help??

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??

Replies are listed 'Best First'.
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.
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://201402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found