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)

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 08:14 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.01204 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
  • (1)bbcode_code_printable
  • (1)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