PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2007-07-19 (11 years ago) RSS 2.0 feedStarStarStar 51%Total: 1,371 All time: 2,793 This week: 356Up
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
  Performance   Level  
Name: Cesar D. Rodas <contact>
Classes: 39 packages by
Country: Paraguay Paraguay
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,371
This week:0
All time:2,793
This week:356Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2216