PHP Classes

Google Analytics Cookie Parser: Retrieve and parse Google Analytics cookies

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,038 All time: 3,541 This week: 182Up
Version License PHP version Categories
gaparse 1.0GNU Lesser Genera...5.0HTTP, PHP 5


This class can be used to retrieve and parse Google Analytics cookies.

It retrieves values cookies set by Google Analytics and parse the values to extract several types of values.

Currently, it returns the campaign source, campaign name, campaign medium, campaign content, campaign term, date of first visit, date of previous visit, date of current visit and times visited.

Innovation Award
PHP Programming Innovation award nominee
September 2009
Number 3

Prize: One downloadable e-book of choice by O'Reilly
Google Analytics is a tool that keeps track of all sorts of statistics of the visitors of a site.

It setups cookies with several types of information about where the user has been.

This class can parse the information stored in Google Analytic cookies to return more meaningful values.

Manuel Lemos
Picture of Joao Correia
Name: Joao Correia <contact>
Classes: 1 package by
Country: Portugal Portugal
Age: 45
All time rank: 231132 in Portugal Portugal
Week rank: 503 Up11 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.gaparse.php Class Google Analytics Cookie Parser Class
Accessible without login Plain text file example.php Example Example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,541
This week:182Up
User Comments (1)