1. Sam Stenvall
  2. yii-ga

Commits

Sam Stenvall  committed 144ff7c

moved _trackPageview after setDomainName, apparently the latter doesn't work
otherwise. They just couldn't state it in their documentation... *shakes fist*

  • Participants
  • Parent commits 3896346
  • Branches default

Comments (0)

Files changed (1)

File components/GoogleAnalytics.php

View file
 		$headScript = <<<EOD
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', '{$this->accountId}']);
-_gaq.push(['_trackPageview']);
 EOD;
 
 		if(isset($this->cookieDomain))
 			$headScript .= "\n_gaq.push(['_setDomainName', '{$this->cookieDomain}']);";
-
+			
+		$headScript .= "\n_gaq.push(['_trackPageview']);";
 		$bodyEndScript = $this->getTransactionsJS();
 		$bodyEndScript .= <<<EOD