vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - BBR Google Analytics Addon (https://vborg.vbsupport.ru/showthread.php?t=229347)

caciocode 08-26-2010 03:59 PM

Installed. Here Thanks.

Not sure how it works though. Will just providing my Google Account ID make it work, or will I have to validate it with Google

TeknoSounds 08-27-2010 04:39 AM

Quote:

Originally Posted by caciocode (Post 2089893)
Installed. Here Thanks.

Not sure how it works though. Will just providing my Google Account ID make it work, or will I have to validate it with Google

You'll need to set up your google account with google analytics

http://www.google.com/analytics/

GardenPartyTeas 09-01-2010 07:06 PM

Quote:

Originally Posted by fayax (Post 1931970)
For newbies like me :D working with vb4CMS I would like to clarify a few things.

These are just clarification to main directions above.

in admincp do the following to get this to work.

Admincp>plugins & products> manage products> add/import product> Browse to the file you downloaded >

Once that is complete then

Control panel Home > setting> options > in the long list of option go to BBR google analytics and double click it. Put the number from the information you received from the analytics page from google.

it can have this format also UA-xxxxxxx-xx ( where x- is a number)

Hope this helps others. And correct me if I am wrong.

Regards,
fayax

Thank you very much! I too am new and I could not figure out where to enter my number. This was very helpful.

Reeve of shinra 09-11-2010 07:39 PM

a) I noticed that using the "before body" option places the GA code above the <body> tag but below the </head> tag. I'm not sure if that causes issues for GA. Google says to place it before the </head> tag.

b) I also noticed that Google may have changed their javascript code.

I hope BBR doesn't mind but here are the 2 edits I made to correct this.

admincp -> products and plugins -> plugin manager
Look for "BBR Google Analytics Addon" and click edit

Look for:
PHP Code:

 $BBR_find '<body>'

and replace that with:
PHP Code:

 $BBR_find '</head>'


Look for:
PHP Code:

 (document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(ga); 

and replace that with:
PHP Code:

 var document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s); 


Thanks

pretty.witch 09-26-2010 03:19 PM

Thanks!

Fra VB 10-12-2010 04:12 PM

thanks reeve

but i found two different pages in google help

one invite us to put above </head>, another one above </body>

:mad::confused:

speedracer68 11-18-2010 02:09 AM

I think I have done everything right and after several days it's not working.

On my VB 3+ site I just put the code or text in I think the footer or where ever it was supposed to go and it worked great. The day I upgraded to VB4 it stopped working. I installed this, entered my account number and nothing. So, where to I start diagnosing?

mgurain 11-20-2010 10:24 AM

Hi,
Is the code snippet up-to-date ? What if google changes the code ?
Thanks,,

speedracer68 11-21-2010 03:19 AM

Quote:

Originally Posted by speedracer68 (Post 2123018)
I think I have done everything right and after several days it's not working.

On my VB 3+ site I just put the code or text in I think the footer or where ever it was supposed to go and it worked great. The day I upgraded to VB4 it stopped working. I installed this, entered my account number and nothing. So, where to I start diagnosing?

My bad. I was missing a -1 in my code.

Doh!

marcopolo 12-06-2010 08:57 AM

We need to add the standard and advanced code, is this possible?


All times are GMT. The time now is 03:12 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.01305 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete