PHP code that records visitor traffic for a website and creates statistics from the records.
PHPtrack is a Web tool written in PHP, which helps webmasters get a clear picture of their website's traffic. It uses a MySQL database to record hits and display them. It works in real time.
PHPtrack is simple to use and is based on including a PHP file in the pages you want to track, a file which will record hits. It uses cookies, IP addresses and a generally accepted algorithm for page tracking and unique visitor calculation.
PHPtrack comes with a parser which displays statistics in a pleasant and intuitive format, allowing you to see statistics differentiated over time intervals ranging from years to one single hour! It generates and displays statistics for time units, referrers, browsers and visited pages, all in real time.
Personally, I think PHPtrack is a better alternative to Webserver logs, which record hits at mass level and which depend upon the type of parser you use on them.
I also prefer PHPtrack over public trackers, the kind using images inserted on the pages. With PHPtrack the stats are private and there are no more tracking errors due to the fact that the tracking is done client-side instead of server-side. Some info is lost (screen resolution, browser plugins) in favor of greater tracking accuracy.
PHPtrack works as part of your PHP application and will record only pages which execute correctly.
I feel obliged to state a few facts: the "original" PHPtrack was (and still is) a module among others in a bigger system, the system that I use to manage this site. Any faults PHPtrack may have in its stand-alone version are due to being originally designed for a particular situation. PHPtrack satisfy my needs, but it may not be perfect for you. It will definitely be appreciated by PHP programmers looking to integrate it with their PHP and MySQL based website; less by others.
Here's a few screenshots so you can see how the statistics generated by
PHPtrack actually look like:
PHPtrack is distributed under the terms of the GNU General Public License. You are encouraged to use and distribute it at will, as long as you act according to the GPL and the terms enclosed in the README file in the distribution. You are free to use the code in your own applications as long as you mention the author and the source.