View Full Version : Google Analytics - Where to add in VB4.0.2?
chuckrobbie
03-06-2010, 06:51 AM
Hi all
I have searched the forums and only found posts about older versions of VB.
In VB4.0.2 you cannot add this google script to the footer template like you always used to!!!!
How do we do it now please?
ChopSuey
03-06-2010, 07:35 AM
Try using
<vb:literal><Google analytics code></vb:literal>
Works great on my board :D
chuckrobbie
03-06-2010, 09:54 AM
YAY!!! Thank you so much!!
Works 100% thank you!
matt wood
03-08-2010, 07:52 PM
could someone explain how in non techie terms?
chuckrobbie
03-09-2010, 02:54 AM
Hi Matt
Yeah I also wish that a lot more is done for us non-techie peeps!
Basically you need to go to your Admin Panel.
Go down to Styles and Style Manager.
Choose the style you are using and double click on the <<>> at the right side of the box.
All your style info now shows.
Scroll down to "footer"
When that opens, scroll down to the very end and paste the cose in,
<vb:literal><Google analytics code></vb:literal>
DO NOT SAVE YET
Then in another window wher you have your Google Analytic code, highlight the full code and paste it in where is says <Google analytics code> removing the 2 brackets
so now it should look like
<vb:literal><script>blah blah blah</script></vb:literal>
SAVE AND RELOAD in case you did something wrong.
If it accepts it, then it will save properly...
GL
<vb:literal><Google analytics code></vb:literal>
Blocker
03-09-2010, 08:46 AM
Thanks chuckrobbie, works a treat.
chuckrobbie
03-09-2010, 09:44 AM
Pleasure ... athough thanks should go to Chopsuey as he put me in the right direction!
Samhayne-MMS
03-24-2010, 07:00 PM
Perfect, thanks so much for the detailed instructions :)
Jax2u
03-25-2010, 02:57 PM
Thank you!!
your24hourstore
03-26-2010, 11:54 AM
Hi Matt
Yeah I also wish that a lot more is done for us non-techie peeps!
Basically you need to go to your Admin Panel.
Go down to Styles and Style Manager.
Choose the style you are using and double click on the <<>> at the right side of the box.
All your style info now shows.
Scroll down to "footer"
When that opens, scroll down to the very end and paste the cose in,
<vb:literal><Google analytics code></vb:literal>
DO NOT SAVE YET
Then in another window wher you have your Google Analytic code, highlight the full code and paste it in where is says <Google analytics code> removing the 2 brackets
so now it should look like
<vb:literal><script>blah blah blah</script></vb:literal>
SAVE AND RELOAD in case you did something wrong.
If it accepts it, then it will save properly...
GL
<vb:literal><Google analytics code></vb:literal>
lol I installed it but have no idea how to use it
i grabbed the code it was in 2 scripts
<vb:literal><script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}</script></vb:literal>
and it seems to be ok but now what do i do to see the results? in my google webmaster page or what
Taurus MFF
03-26-2010, 03:18 PM
this does it for you automatically, updates all templates, etc.
https://vborg.vbsupport.ru/showthread.php?t=229347
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.