![]() |
Error when adding the Google Tracking Code.
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 |
i got same problem
cant add google analityc scripts where to inplant it |
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. |
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. |
I put mine at the end of the footer, had zero problems.
|
Quote:
(And java is not short for javascript - they are two very different languages. Why they are named so similarly, who knows! :) ) Quote:
|
Quote:
|
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 |
Quote:
|
Thanks, Lynne.
|
All times are GMT. The time now is 05:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|