Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Mod-Mall] Google Analytics with User Info and Site Speed! Details »»
[Mod-Mall] Google Analytics with User Info and Site Speed!
Version: 1.00, by nitra1000 nitra1000 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 4.1.4 Rating:
Released: 05-25-2011 Last Update: 10-08-2011 Installs: 110
Uses Plugins
 
No support by the author.

What Google Analytics Does
For those of you not in the know... Google Analytics allows you to track site visits, bounce rate, content, users, along with dozens of other metrics... Even tying in with adsense/adwords.

It has now introduced Site Speed into the mix

What This Mod Does
This mod inserts the javascript in your header template, saving you from having to edit or revert your templates every upgrade.

It Also
  • Adds whether the visitor is Guest or Member (Available as a Custom Varible, and used with Segments)
  • Adds the code necessary to record Site Speed (Available in the Google Analytics Public Beta)


How to install
  1. Import the xml
  2. Register at google.com/analytics,and configure your site (if you haven't already)
  3. Find you UA number in the profile list
  4. copy and paste this into the UA field found in your admincp under Settings>Options>Google Analytics Script
  5. Activate and configure the add on in the same screen

How to upgrade
  1. Import the xml, set overwrite to allow/yes/on
  2. Check the settings at Settings>Options>Add Wibiya Script


Releases
V0.5 - Pre-Release
v1.0 - Release

Notes
I have nothing to do with Google, I just needed this for my forum and thought I would be nice.... By installing this mod you agree that I am in no way responsible for what it does good or bad to your website, or reporting,your dog or anything else for that matter.

Support / Branding
I provide vBulletin Mods for zero costs. To help me please leave the modification footer link alone, unless you support this modification with a 15$ minimum donation.

If you choose to support me, I will contact you via the email provided by paypal with instructions on how to remove the footer note.

A link to Supporting me ("Support Developer") can be found on the top right area of this post.


Instructions for viewing the data
Instructions for viewing the data inside Google Analytics can be found on my own website
Like This Mod?
Mark as Install
Nominate for Mod of the Month
Consider a Donation

Download Now

File Type: xml product-google_script_add.xml (5.4 KB, 262 views)

Screenshots

File Type: jpg segmented graph.JPG (5.3 KB, 0 views)
File Type: jpg speed.JPG (29.1 KB, 0 views)
File Type: jpg admincp.JPG (62.6 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
mohammadxxx

Comments
  #32  
Old 08-14-2011, 02:54 PM
KProjects KProjects is offline
 
Join Date: Feb 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod.. thanks!
Reply With Quote
  #33  
Old 08-14-2011, 09:09 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LVC, I've sent you a pm hope it helps.
Reply With Quote
  #34  
Old 08-30-2011, 12:43 AM
matt94gt matt94gt is offline
 
Join Date: Jul 2011
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #35  
Old 08-30-2011, 02:10 AM
gabrielt gabrielt is offline
 
Join Date: Apr 2007
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #36  
Old 09-04-2011, 06:40 AM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gabrielt View Post
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')
Reply With Quote
  #37  
Old 09-11-2011, 07:43 AM
Ginger Ninja Ginger Ninja is offline
 
Join Date: May 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have had a skin installed and now I'm showing no data in analytics. Could the skin have deleted the header info?
Reply With Quote
  #38  
Old 09-18-2011, 02:52 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ginger Ninja View Post
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
Reply With Quote
  #39  
Old 09-29-2011, 02:55 PM
afridicommunity afridicommunity is offline
 
Join Date: May 2010
Location: Karachi - Pakistan
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod i have installed it and its working gr8
Reply With Quote
  #40  
Old 09-29-2011, 04:19 PM
Light Peak Light Peak is offline
 
Join Date: Aug 2011
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 10-09-2011, 08:23 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Light Peak View Post
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)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05288 seconds
  • Memory Usage 2,343KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete