The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I am unaware of where to implant my Google Analytics JavaScript code. I hear it is best to place it in the VB Footer Template. So, this is my footer code:
Quote:
This is likely caused by a malformed conditional statement. Any ideas on how to fix this? Many Thanks, Mike |
|
#2
|
|||
|
|||
|
i got same problem
cant add google analityc scripts where to inplant it |
|
#3
|
||||
|
||||
|
I put it into the template ad_footer_end. But, you can also put it at the end of the footer code. But, until they fix the bug with parsing some javascript, you will need to wrap it in <vb:literal> tags. This was talked about in a few threads over on vb.com.
Please see this sticky regarding questions about default vB4 - Installation Issues / Questions or bug reports regarding default vBulletin 4.0 And please use the code tags for code, not the Quote tags. Thank you. |
|
#4
|
||||
|
||||
|
I found its a problem when they do the final rendering on the templates. It tries to parse the java with in the php. Any time I try to input javascript in the template its self I get a parse error.
There is two solutions. One would be to use this which I coded to make it easy. https://vborg.vbsupport.ru/showthread.php?t=229347 Two would be to put the javascript in its own file and include the javascript file with in the footer. |
|
#5
|
|||
|
|||
|
I put mine at the end of the footer, had zero problems.
|
|
#6
|
||||
|
||||
|
Quote:
(And java is not short for javascript - they are two very different languages. Why they are named so similarly, who knows! )My guess is you are using the old code. The old code has no problems, but the new code does. |
|
#7
|
|||
|
|||
|
I think because of netscape^^
|
|
#8
|
||||
|
||||
|
Thanks, Lynne, and sorry for the quotes. I actually imputed the old Javascript code, and it is collecting data as we speak. Thanks for you help. It's all appreciated!
Mike |
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
||||
|
||||
|
Thanks, Lynne.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|