PHP Classes

gStats: Keep track of site visits and link clicks

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 1,385 This week: 1All time: 2,806 This week: 560Up
Version License PHP version Categories
gstats 1.0GNU General Publi...3.0Databases, User Management
Description 

Author

This class can be used to keep track of the visits the links that are clicked on pages of a site.

It uses Javascript code to collect information about site visitors and the intercept the links that they click.

The collected information is sent to a PHP script that uses the class to record the information on a MySQL database for posterior statistical processing.

The class can keep track of unique visitors using PHP sessions. It also records the information about the browsers that are used and referral page URL.

It also keeps track of the links that are clicked including the URL and the text of the link. Clicks on ads from Google AdSense and Yahoo Publisher Network are recorded in a separate table.

Innovation Award
PHP Programming Innovation award nominee
July 2007
Number 6


Prize: One book of choice by SAMS
There are many solutions that provide metrics about the audience of a site that give all sorts of information.

However, one detail that often is not provided is which links the users are clicking when they leave your site to visit another.

This package implements a solution that can provide the information about user clicks.

It may be particularly useful when you want to track the links that the users clicked on advertising placed for instance by Google AdSense or Yahoo Publisher Network.

Manuel Lemos
Picture of Cesar D. Rodas
  Performance   Level  
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 38 packages by
Country: Paraguay Paraguay
Age: 36
All time rank: 71 in Paraguay Paraguay
Week rank: 24 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

  Files folder image Files  
File Role Description
Accessible without login Plain text file db_install.sql Data SQL for store information
Accessible without login Plain text file gStats.js Data Javascript that gather information
Plain text file gStats.php Class main class
Accessible without login Plain text file example_page.html Data Example of how to include the code into a page
Accessible without login Plain text file example_track.php Example Example of tracking

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,385
This week:1
All time:2,806
This week:560Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:65%StarStarStarStar
Documentation:-
Examples:57%StarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2747