[TYPO3-english] How and where to add "Google's Analytic code"?
Tyler Kraft
tyler.kraft at netefficiency.co.uk
Mon Dec 1 14:42:52 CET 2008
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
Ronald Wiplinger (Lists) wrote:
> Xavier Perseguers wrote:
>>> Still no success.
>>>
>>> # Google Analytics:
>>> page.10000=HTML
>>> page.10000 (
>>> <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>
>>>
>>> )
>>>
>> in second <script> tag, try followed by a parenthese (and same for catch
>> preceded by one) has never been JavaScript...
>>
>>
> Xavier,
>
> 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????
>
>
> bye
>
> Ronald
More information about the TYPO3-english
mailing list