[TYPO3-english] Google Analytics Code

Victor Livakovsky v-tyok at mail.ru
Tue Jan 24 12:08:51 CET 2012


Hi, Kevin.

page.wrap (  | <script type="text/javascript">  var _gaq = _gaq || []; 
_gaq.push(['_setAccount', 'UA-xxxxxxxx-x']);  _gaq.push(['_trackPageview']); 
(function() {    var ga = document.createElement('script'); ga.type = 
'text/javascript'; ga.async = true;    ga.src = ('https:' == 
document.location.protocol ? 'https://ssl' : 'http://www') + 
'.google-analytics.com/ga.js';    var s = 
document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, 
s);  })(); </script> )Thnx in advance      =

Maybe, my newsreader shows it wrong, but your wrap value should come from a 
new line, if you're using parenthesis, as far as I know. 



More information about the TYPO3-english mailing list