vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Statistics Modifications - [Mod-Mall] Google Analytics with User Info and Site Speed! (https://vborg.vbsupport.ru/showthread.php?t=264216)

KProjects 08-14-2011 02:54 PM

Great mod.. thanks!

nitra1000 08-14-2011 09:09 PM

LVC, I've sent you a pm hope it helps.

matt94gt 08-30-2011 12:43 AM

Hey, I applied this mod. Went to Options > Google Analytics Script then pretty well turned everything ON and eneterd my UA Number. Is that all?

Is there somewhere on vBull where I can see the stats without going onto analytics, or does this simply just enter the UA code automatically so that my analytics can track everything?

gabrielt 08-30-2011 02:10 AM

This mod has a flaw, as your forgot something. You didn't add the tracking code on the ARCHIVE section of vbulletin, which is available by default at http://www.url.com/forum/archive/index.php.

Here is how to add this, I hope this helps on adding this feature on a future release.

Create a new plugin at hook archive_complete.

Add the following code:

Code:

$code="<script type=\"text/javascript\">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-11076357-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script></head>";
$output=str_replace("</head>",$code,$output);

I hope this helps.

1320Nation 09-04-2011 06:40 AM

Quote:

Originally Posted by gabrielt (Post 2239748)
This mod has a flaw, as your forgot something. You didn't add the tracking code on the ARCHIVE section of vbulletin, which is available by default at http://www.url.com/forum/archive/index.php.

Here is how to add this, I hope this helps on adding this feature on a future release.

Create a new plugin at hook archive_complete.

Add the following code:

Code:

$code="<script type=\"text/javascript\">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-11076357-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script></head>";
$output=str_replace("</head>",$code,$output);

I hope this helps.

Why would we update our code with your UA # in it? ('UA-11076357-1')

Ginger Ninja 09-11-2011 07:43 AM

I have had a skin installed and now I'm showing no data in analytics. Could the skin have deleted the header info?

nitra1000 09-18-2011 02:52 PM

Quote:

Originally Posted by Ginger Ninja (Post 2244518)
I have had a skin installed and now I'm showing no data in analytics. Could the skin have deleted the header info?

Check your source for mention of your UA number

afridicommunity 09-29-2011 02:55 PM

Nice mod i have installed it and its working gr8

Light Peak 09-29-2011 04:19 PM

does this support SSL Google Analytics?

as i don't want my users to be thrown "Connection Partially Encrypted" error on my full-SSL enabled site.

nitra1000 10-09-2011 08:23 PM

Quote:

Originally Posted by Light Peak (Post 2251294)
does this support SSL Google Analytics?

as i don't want my users to be thrown "Connection Partially Encrypted" error on my full-SSL enabled site.

Do you still want this? It shouldn't be to difficult (let me know via pm)


All times are GMT. The time now is 06:51 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.01206 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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