[TYPO3-english] Google Analytics Async Code

Frédéric Ollivier lordef at gmail.com
Thu May 20 22:08:41 CEST 2010


Hello François

Thanks for your help.

It works well making it a cObject.

As I'm using 4.3.3, I tried with jsinline but without success.

Here is the failing TS :
page.jsinline.10 = TEXT
page.jsinline.10.value (
<script type="text/javascript">
...
</script>
)

Maybe I'm wrong with this syntax…

Again thank you, now at least, I've got my stats ;-)

Fredol

2010/5/20 François Suter <fsu-lists at cobweb.ch>:
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list