[TYPO3-english] Google Analytics Async Code

François Suter fsu-lists at cobweb.ch
Thu May 20 21:10:14 CEST 2010


Hi,

> Here is my TS
>
> page.wrap (
> <script type="text/javascript">
> [snip]
> </script>  |
> )

I wouldn't use the "wrap" property of the PAGE object to achieve this. I 
would rather make the code one of the cObject in the page. So something 
like:

page = PAGE
page.1 = TEXT
page.1.value (
<script type="text/javascript">
...
</script>
)

if you want it to be at the top, or page.1000 or something similar to 
place it as the last element. Anyway inside a TEXT object, you can use 
the pipe symbol freely, so you shouldn't have any problem.

Alternately, if you're running TYPO3 4.3, you may want to look at the 
new properties for including inline JavaScript (check out "jsInline" and 
"jsFooterInline" in the TSref).

HTH

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-english mailing list