[TYPO3-english] How and where to add "Google's Analytic code"?

Xavier Perseguers typo3 at perseguers.ch
Mon Dec 1 15:17:47 CET 2008


Ronald,

>>> <script type="text/javascript">
>>> try (
>>> var pageTracker = _gat._getTracker("UA-5313313-1");
>>> pageTracker._trackPageview();
>>> ) catch(err) {}</script>
>>>      
>>> )
>>>     
>> in second <script> tag, try followed by a parenthese (and same for catch 
>> preceded by one) has never been JavaScript...
>>
>>   
> I read your lines 8 times, my wife also a couple of times and my son
> too, but we all could not figure out what you suggest to do.
> Do you mean the Google script is wrong????

I meant that after the "try", you need a curly bracket "{", not a 
parenthese "(" and before the "catch(err)", you need a curly bracket too 
"}", not a parenthese ")".

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list