Counter + Cached MakeStats
This package inludes two tools -- one sends images for counting your
pages accesses (or do it as a hidden image - clear pixel) , like all the
other counter scripts around do and logs the counts. And the other which
performs statistical analysis of the log files.
What' s different:
- The different part is makestat.pl tool. It caches the results. Anytime
you call this script it parses the new log files, renames and compess them.
So new logs go to the fresh file. The results are stored in the DataBase.
So every time you rerun the tool you will have the overhead of the processing
the new data since last run. The retrieval from the DataBase is almost
immediate. To make things even more faster results for each month are getting
stored in separate database.
- Also I've tried to reduce the number of counts if someone reloads the
page a few times with help of cookies. It'll not work for all browsers
but majority will do. So you will have more accurate hits statistics. Anytime
you enters the page the cookie is being set , now if you reload the page
my script increment the count only if the some reasonable time has been
passed (you define it in the config file). Actually it works perfect with
Netscape. Again it will not make exact counts but will be close to the
real ones!
Counter logs only the following information: date-time and url
It's based on the counter written by Matt
- counter.pl returns images to the caller
- hidcounter.pl returns a clear pixel (so the visitor is unaware of being
counted . Only the cookie will reveal it if it's not auto set)
You will need a fly
utility in order to produce the image .
Makestat
- It can produce report for n days, weeks or months
back , you specify the n in the makestat form.
- Also you can request only specific urls report,
by entering the regexp for the url.
- You can request a report for the range of dates
too
Here is the snapshot of the cgi form
(it's disabled!)
Current version: 1.01
Download counter.zip or counter.tar.gz