Good statistics script?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Mori
Forum Newbie
Posts: 2
Joined: Fri May 20, 2005 7:02 am

Good statistics script?

Post by Mori »

Well, I'm searching for a good statistics script (a free one). The most important thing for me is to track dynamic pages with parameters (for example: index.php?option=value). I would like to see daily stats for each one of them separatly (so hits to index.php, index.php?option=1 and index.php?option=2 would be separated).
Also - the statistics must not be included by JavaScript (I would like to use include/require).

So, if you know such script that I can download and use for free, please, leave a link.

Thanks in advance


Mori.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

Mori
Forum Newbie
Posts: 2
Joined: Fri May 20, 2005 7:02 am

Post by Mori »

No, none of the scripts I checked there was suitable for me...

And please, don't send me to a SE or scripts catalogue, I'm not that stupid, ok?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

No one suggested you are..
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

Mori wrote:No, none of the scripts I checked there was suitable for me...

And please, don't send me to a SE or scripts catalogue, I'm not that stupid, ok?
code it yourself?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Pretty easy actually.
On index.php you could have something along the lines of on every page call, insert into the database your query string ($_SERVER['QUERY_STRING']) as well as a timestamp.

Now when wanting to view the stats

a) Either flush out yesterday's stats and recompile them into a single row, instead of having to re-calculate the whole thing every time (which could be a hassle when you have 1 years worth of hits)
b) Have a query pull out all the rows in todays hits
c) Create a simple bar graph by calculating dimentions, or create a complex graph using JPGraph.
Post Reply