Login   Register  
PHP Classes
elePHPant
Icontem

gStats: Keep track of site visits and link clicks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-07-19 (7 years ago) RSS 2.0 feedStarStarStar 51%Total: 1,327 This week: 1All time: 2,708 This week: 1,557Up
Version License PHP version Categories  
gstats 1.0GNU General Public Lice...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
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 37 packages by
Country: Paraguay Paraguay
Age: 27
All time rank: 71 in Paraguay Paraguay
Week rank: 27 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 24x

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,327All time:2,708
 This week:1This week:1,557Up
 User Ratings  
 
 All time
Utility:78%StarStarStarStar
Consistency:64%StarStarStarStar
Documentation:-
Examples:53%StarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:1553