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.
Good statistics script?
Moderator: General Moderators
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
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.
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.