Login   Register  
PHP Classes
elePHPant
Icontem

SmartGAPI: Display site statistics from Google Analytics

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-05-01 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,283 This week: 4All time: 2,761 This week: 453Up
Version License PHP version Categories  
smartgapi 0.3GNU General Public Lice...5.0PHP 5, Statistics, AJAX
Description Author  

This class can display site statistics from Google Analytics.

It uses the Google Analytics client class by Stig Manning to retrieve site statistics by sending HTTP requests to the Google Analytics API Web server.

The main class can generate HTML and JavaScript that users jQuery to send AJAX requests that retrieves and displays the site statistics.

Innovation Award  
PHP Programming Innovation award nominee
March 2011
Number 2


Prize: One subscription to the PDF edition of the PHP Architect magazine
Google Analytics is a service used by many Web site publishers to obtain statistics about the accesses of the users to their sites.

Usually you need to log in the site to look at the reports that provide such statistics.

This class implements a solution to display on any Web page the statistics of access to a Web site retrieved from Google Analytics using its API.

Manuel Lemos
Picture of Michele Andreoli
Name: Michele Andreoli is available for providing paid consulting. Contact Michele Andreoli .
Classes: 6 packages by
Country: Italy Italy
Age: 28
All time rank: 70325 in Italy Italy
Week rank: 117 Up6 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • shot.jpg
  Files folder image Files  
File Role Description
Files folder imagejs (1 file)
Files folder imageutils (2 files)
Plain text file index.php Example Example of use
Plain text file SmartGAPI.class.php Class smartGAPI class

  Files folder image Files  /  js  
File Role Description
  Plain text file jquery-1.4.2.js Data jquery library

  Files folder image Files  /  utils  
File Role Description
  Plain text file gapi.class.php Class google api
  Plain text file request.php Example script for the ajax request

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,283All time:2,761
 This week:4This week:453Up