Commits

Sam Stenvall committed d6297df

fixed syntax error in the generated Javascript (damn you Chrisu!)

  • Participants
  • Parent commits fde5f25

Comments (0)

Files changed (1)

File components/GoogleAnalytics.php

 		ob_start();
 		foreach($this->_transactions as $transaction)
 		{
-			echo "_gaq.push({$transaction->toJS()})";
+			echo "_gaq.push({$transaction->toJS()});".PHP_EOL;
 			echo $transaction->getItemsJS();
-			echo "_gaq.push(['_trackTrans'])";
+			echo "_gaq.push(['_trackTrans']);".PHP_EOL;
 		}
 		return ob_get_clean();
 	}