Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Joao Correia  >  Google Analytics Cookie Parser  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Google Analytics Cookie Parser
Retrieve and parse Google Analytics cookies
Author: By
Last change: Fix ! $_COOKIE was missing from the argument in example.php
Date: 2009-09-21 07:55
Size: 617 bytes
 

Contents

Class file image Download
<?

require("class.gaparse.php");

$aux = new GA_Parse($_COOKIE);

echo 
"Campaign source: ".$aux->campaign_source."<br />";  
echo 
"Campaign name: ".$aux->campaign_name."<br />";
echo 
"Campaign medium: ".$aux->campaign_medium."<br />";
echo 
"Campaign content: ".$aux->campaign_content."<br />";
echo 
"Campaign term: ".$aux->campaign_term."<br />";
     
echo 
"Date of first visit: ".$aux->first_visit."<br />";
echo 
"Date of previous visit: ".$aux->previous_visit."<br />";
echo 
"Date of current visit: ".$aux->current_visit_started."<br />";
echo 
"Times visited: ".$aux->times_visited."<br />";
                 

?>