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)

BBR-APBT 01-31-2010 11:59 PM

Quote:

Originally Posted by simonhind (Post 1971751)
when can u try implent the new analystics code

i've tried it many times as a plugin or php file and still no luck, any chances of trying some time please

What new code?

This supports both types that Google offers. I updated it today.

Version: 1.0.3 - Rewrite of the code to give the option to use the (Standard Tracking Code) or the (Asynchronous Tracking Code)

daveaite 02-01-2010 12:01 AM

Love the modification. :) 5 stars.

Michael Tsai 02-01-2010 12:58 AM

Quote:

Originally Posted by BBR-APBT (Post 1971750)
Well I figured if people are going to install a modification, They would know where the options for almost every modification is located.

Well, sometimes they wouldn't.:)

TheSupportForum 02-01-2010 02:58 AM

thanks for that BBR-APBT

many people have found this very difficult

BBR-APBT 02-01-2010 03:28 AM

Quote:

Originally Posted by simonhind (Post 1971846)
thanks for that BBR-APBT

many people have found this very difficult

Found what difficult?

timhieuxem 02-01-2010 04:04 AM

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 for your kind ... i'm totally new to this... again thanks

TheSupportForum 02-01-2010 04:09 AM

Quote:

Originally Posted by BBR-APBT (Post 1971857)
Found what difficult?

getting the new analystics code to work in the correct place
everytime i tried i got a error with a line error code

BBR-APBT 02-01-2010 04:43 AM

Quote:

Originally Posted by simonhind (Post 1971868)
getting the new analystics code to work in the correct place
everytime i tried i got a error with a line error code

Ahh yes I see it was caused by not using the backslash. I had that error at first as well. Which is why I used the Asynchronous Tracking Code as default. I finally got around to fixing it giving it 24 hours to make sure Google accepted it. So I know it works this time around.

timhieuxem 02-01-2010 09:32 PM

where can i find </head> ? to insert the google code in... thanks

BBR-APBT 02-01-2010 09:43 PM

If you install this modification, it will do it for you automatically once you set the settings.

If you do install please click Mark as Installed.

timhieuxem 02-01-2010 10:14 PM

hi, I'll mark as installed once it's working.... I just import it... I got these code from google when i signup and don't know where to put it in vbulletin:
<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-");
pageTracker._trackPageview();
} catch(err) {}</script>

BBR-APBT 02-01-2010 11:03 PM

Quote:

Originally Posted by timhieuxem (Post 1972595)
hi, I'll mark as installed once it's working.... I just import it... I got these code from google when i signup and don't know where to put it in vbulletin:
<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-");
pageTracker._trackPageview();
} catch(err) {}</script>


You do not need to add any code!!!!!


Quote:

Originally Posted by fayax (Post 1931970)
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

Code:

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


timhieuxem 02-02-2010 06:11 PM

hi fayax... i did follow all the steps. This morning I logined my google analytics.. here is the tracking status: Tracking Not Install... The google analytics tracking code has not been detected on your website's home page. For analytics to function you or your web admin must add the code to each page of your website.... what did i do wrong? THanks

BBR-APBT 02-02-2010 07:42 PM

Quote:

Originally Posted by timhieuxem (Post 1973273)
hi fayax... i did follow all the steps. This morning I logined my google analytics.. here is the tracking status: Tracking Not Install... The google analytics tracking code has not been detected on your website's home page. For analytics to function you or your web admin must add the code to each page of your website.... what did i do wrong? THanks

first off I am not fayax I quoted his post.

Read the instructions really slow. You are not going to the settings for the modification.
Go to your admincp -> settings -> options => in the long list of option go to BBR google analytics and double click it.

Set active to yes. Go to Google Analytics you will see a number like this UA-xxxxxxx-xx ( where x- is a number) Copy that in to the box that is there on the settings page.

I do not know why this is so hard for you. You have not clicked installed. If these instructions are to hard for you I do not know what to say. Installing a modification is not this hard.

patrick6411 02-03-2010 03:54 PM

Works great!! thanks for the great mod!!

jw00dy 02-04-2010 05:30 AM

Great Mod! Thank you for you time and effort to make a pretty easy task even easier!

Possible bug. I tried to use the Asynchronous version and it works for the forum pages, but doesn't for the CMS or Blog. If I switch it to the normal mode it works for all three.

I haven't read every post in this mod, so I'm not sure this has been mentioned or not. I'd kinda like to use the Asynchronous since it's supposed to speed things up.

Seatbelt99 02-06-2010 02:57 AM

appears to be working perfectly for me. Thanks for saving me the trouble of updating all the skins!

I'm on vb 4.0.1 if that matters to anyone else.

sinistergaming 02-07-2010 05:17 PM

im having an issue.
i installed this and when i tried to put in my google id and clicked submit i get some search page in my admincp window.

the address that is loading is this..
p3p0.com/...... cant catch the rest of it.
but it looks like a search engine page with a windows logo on the top left corner and all the links goto some ip address.
here are some images

this is the page that starts loading when you click submit
https://vborg.vbsupport.ru/attachmen...1&d=1265570183

here is the page it loads
https://vborg.vbsupport.ru/attachmen...1&d=1265570183

BBR-APBT 02-07-2010 06:44 PM

That has nothing to do with this modification I can promise you that.

Try to change another setting with another modification see if the same thing happens.

This was Last Update: 31 Jan 2010, Several others have installed since then No one else complained of this problem.

To me it seems as if your adminCP has been compromised. I suggest you first check your htaccess file in your adminCP directory..

sinistergaming 02-07-2010 09:30 PM

ok i did a fresh install of vb and it still does it
works fine on another site so,
im contacting the host about it..
thanks for you speedy responce.

AZRainman 02-08-2010 08:56 AM

Quote:

Originally Posted by jw00dy (Post 1974446)
Possible bug. I tried to use the Asynchronous version and it works for the forum pages, but doesn't for the CMS or Blog. If I switch it to the normal mode it works for all three.

I haven't read every post in this mod, so I'm not sure this has been mentioned or not. I'd kinda like to use the Asynchronous since it's supposed to speed things up.

Same result here w/asynch: noticed the google code was written to the forum.php, but doesn't appear in the cms content.php .

I pasted the code at the top of the header.css, which parses out just below the body tag in all sections.
Don't forget to wrap it, if you do go the manual route: <vb:literal>googlecode</vb:literal>

Valerio 02-08-2010 09:23 AM

I don't knwo why but seems don't work on my forum,

meissenation 02-08-2010 10:27 PM

Just an idea to build on this add-on:
https://vborg.vbsupport.ru/showthrea...57#post1977857

BBR-APBT 02-09-2010 01:54 AM

Quote:

Originally Posted by meissenation (Post 1977859)
Just an idea to build on this add-on:
https://vborg.vbsupport.ru/showthrea...57#post1977857

I will look at adding that that seems like a pretty good idea. But please give me time as we got a hell of a lot of snow and more coming. 3 foot so far and 2 more on its way tomorrow. Then more Thursday and possible of more next week. There already calling for Monday.

meissenation 02-09-2010 11:44 AM

Absolutely no problems, BBR. I'm subscribed to your other threads and have been reading the beating that a lot of ungrateful people are giving you and my add-on is a "nice to have" not a necessity :)

Golzarion 02-17-2010 12:48 PM

Ok. Why don't we use more easy way instead of plugins ... ??

Just using of " Replace viriable " on style :

admincp => all style option => Add New Replacement virable ( at the bottom of the page )

Search for : </body>
Replace it with : " YOUR GOOGLE CODES </body> "

And that's all !! it works for all vBulletin versions !! from 3.0.0 up to vb 4 !!

Why dosen't anybody use this way??

BBR-APBT 02-17-2010 02:02 PM

Quote:

Originally Posted by Golzarion (Post 1984559)
Ok. Why don't we use more easy way instead of plugins ... ??

Just using of " Replace viriable " on style :

admincp => all style option => Add New Replacement virable ( at the bottom of the page )

Search for : </body>
Replace it with : " YOUR GOOGLE CODES </body> "

And that's all !! it works for all vBulletin versions !! from 3.0.0 up to vb 4 !!

Why dosen't anybody use this way??

You are more then welcome to do it how ever you like. This does pretty much that, But a little better then what you are talking about. You have to do that for each skin as with this mod you do not. This way you import one product and enter your account ID in a little box. But as I said you can do it how ever you like.

shaie 02-17-2010 02:10 PM

Thank you .

Golzarion 02-17-2010 09:03 PM

Quote:

Originally Posted by BBR-APBT (Post 1984637)
.... This does pretty much that, But a little better then what you are talking about. You have to do that for each skin as with this mod you do not. This way you import one product and enter your account ID in a little box. ....

Yes,I apricate your sharing of this nice mod ... but I suggested another way .. because upgrading to the different versions of vBulletin sometimes forces people to wait for modificatins update too....
:)

BBR-APBT 02-17-2010 10:42 PM

Quote:

Originally Posted by Golzarion (Post 1985015)
Yes,I apricate your sharing of this nice mod ... but I suggested another way .. because upgrading to the different versions of vBulletin sometimes forces people to wait for modificatins update too....
:)

This will work with out needing a update. The tags this uses will always be there.

sigh 02-19-2010 10:32 AM

I haven't seen this mentioned yet, and I thought it would be a neat addition: GA supports custom variables, and I would love to have this product add the username and usergroup as custom variables.
Code:

pageTracker._setCustomVar(
      1,                  // Custom slot 1
      "UserName",      // Custom slot 1 name   
      "insert username here",      // Have vB insert the username
      1        // Visitor-level data - doesn't change
  );
pageTracker._setCustomVar(
      2,              // Custom slot 2   
      "UserGroup", // Custom slot 2 name
      "user's group title",  // have vB insert the user's primary usergroup title
      2        // Session level data (can change over time)
  );

I played with this a bit last night, but I'm not enough of a vB hacker to get it functioning well for the usergroup titles. Lack of sleep my have also played a hand ...

DesignWerks 02-20-2010 05:23 PM

Thanks!

gr8dude 02-21-2010 02:35 PM

Quote:

Tested on:
4.0.1
I am sure this will work on just about any version vBulletin.
It also works on 3.6.x, but there is a problem - the tracking code is not included in the page when the forum is viewed in archive mode.

Is this expected behaviour?

Michael Tsai 02-24-2010 12:42 PM

Installed and works fine, thanks!

motorola 02-24-2010 03:54 PM

Installed ! Ty

Michael Tsai 02-25-2010 12:31 PM

Worked fine till now, thanks again!:up::up::up:

gr8dude 02-25-2010 01:40 PM

Since I have no feedback on this, I'm going to tell you what I did.

I edited /archive/index.php and added the tracking code for Google Analytics there myself. It works.

mavigul 03-11-2010 04:53 AM

thanks work

VonDoom 03-25-2010 11:52 AM

Thanks again installed on every single forum i own

Professional2 03-28-2010 05:09 AM

installed.


All times are GMT. The time now is 10:00 AM.

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.01605 seconds
  • Memory Usage 1,835KB
  • 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_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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