PHP Classes

Analytics API: Retrieve site statistics from Google Analytics

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 1,634 All time: 2,411 This week: 455Up
Version License PHP version Categories
analytics-api 1.0.0GNU General Publi...3.0PHP 5, Statistics, Web services
Description 

Author

This class can be used to retrieve site statistics from Google Analytics.

First it can send a HTTP request to the Google Accounts site to authenticate on behalf of a given user with a password in order to retrieve an OAuth token.

The class can send other HTTP requests to the Google Analytics API Web server using the previously retrieved token to retrieve several types of site access statistics like: getting the sites under a Google Analytics account, get several types of individual site access metrics and summaries.

Innovation Award
PHP Programming Innovation award nominee
September 2012
Number 5
Google Analytics is a popular free service from Google that can track the audience of sites.

It provides a Web based tool to inspect and analyze the collected audience data.

Alternatively, if you need to perform a different type of analysis on your audience data, you can use Google Analytics API to retrieve the collected data and process it in whatever way is suitable for your purposes.

This class can retrieve specific data from a given Google Analytics account. It can also produce summaries that can be configured to match your needs.

Manuel Lemos
Picture of Hillebrand Fernando
Name: Hillebrand Fernando <contact>
Classes: 1 package by
Country: Argentina Argentina
Age: ???
All time rank: 174922 in Argentina Argentina
Week rank: 164 Up3 in Argentina Argentina Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Plain text file analytics_api.php Class This class allows you to use Google Analytic api
Accessible without login Plain text file example.php Example the example to use de de api class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,634
This week:0
All time:2,411
This week:455Up
User Ratings User Comments (1)
 All time
Utility:70%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2903
 
Very usefull, and easy to use class.
12 years ago (Laszlo Varkondi)
70%StarStarStarStar