vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Google Analytics - Where to add in VB4.0.2? (https://vborg.vbsupport.ru/showthread.php?t=237628)

chuckrobbie 03-06-2010 06:51 AM

Google Analytics - Where to add in VB4.0.2?
 
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
HTML Code:

<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

Quote:

Originally Posted by chuckrobbie (Post 2000201)
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
HTML Code:

<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


All times are GMT. The time now is 04:54 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
  • Page Generation 0.01095 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete