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

Christopher Torgalson bedlamhotel at gmail.com
Mon Dec 1 16:30:03 CET 2008


Hi,

On Mon, Dec 1, 2008 at 7:21 AM, Ronald Wiplinger (Lists)
<ronald_lists at elmit.com> wrote:
> Tyler Kraft wrote:
>> Try putting this in (copy and paste it exactly):
>>
>> #~~~~~~~~~~~~ begin copy
>>
>> # Google Analytics:
>> page.99=HTML
>> page.99.value(
>>
>> <script type="text/javascript">
>>       var gaJsHost = (("https:" == document.location.protocol) ?
>> "https://ssl." : "http://www.");
>>       document.write(unescape("%3Cscript src='" + gaJsHost +
>> "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
>> </script>
>> <script type="text/javascript">
>>       try {
>>               var pageTracker = _gat._getTracker("UA-5313313-1");
>>               pageTracker._trackPageview();
>>       } catch(err) {}</script>
>>
>> )
>>
>> #~~~~~~~~~~ end copy
>>
>>
>
> Thanks! That worked now!
>
> bye


Check your page source to be sure it's right though: if you are using
templavoila, the code in this thread will place your analytics code
*after* the closing html and body tags...


-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list