[Typo3] Google Analytics Script after meta tag

Dmitry Dulepov typo3 at fm-world.ru
Wed Nov 16 08:22:42 CET 2005


Hi!

Jan-Hendrik Heuing [DD] wrote:
> The thing is, it seems as if it should seriously be right before the 
> </head>-tag, as it does not work "somewhere" in the head-area, which I just 
> did via TS ;) At least that's what it says in their description as well.

They do not say "right before the </head>". This is exactly what they say:
---------------
Click in the box below to select all code. Next, copy it. Then, paste
the code segment after the <head>, <meta> tags and before the </head>
tag on each page you are planning to track.
---------------

It is important to place script after meta-s because they could get
vsarious information from DOM than (encoding, norobots, description, etc).

The following code will do:
---------------
page.headerData.10 = HTML
page.headerData.10.value = <script
src="http://www.google-analytics.com/urchin.js"
type="text/javascript"></script><script type="text/javascript">_uacct =
"UA-148765-1";urchinTracker();</script>
---------------
Note: there are ONLY TWO lines of TS! Lines can be wrapped by mail
program but there should be only two of them in TS setup!

Dmitry.



More information about the TYPO3-english mailing list