Created
February 8, 2012 23:28
-
-
Save Ravenna/1775393 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error_reporting(E_ALL); | |
| ini_set("display_errors", 1); | |
| require_once( get_template_directory(). '/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 />"; | |
| ?> | |
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| source = "<?php $aux->campaign_source ?>" | |
| $("#source").text(source); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment