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
Innovative Google Analytics - Asynchronous Version Details »»
Innovative Google Analytics - Asynchronous Version
Version: 1.00, by TheLastSuperman (Senior Member) TheLastSuperman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.2.x Rating:
Released: 02-22-2011 Last Update: 08-29-2013 Installs: 359
Supported Uses Plugins Auto-Templates
Translations  

This modification automatically adds in your Google Analytics Code (Asynch version) to your forum just before the </head> tag. You enable the modification and set the UA-######-# and that's it!

Please Note: This is the asynchronous version of the google analytics code. It can still be used HOWEVER there is a newer "Universal Analytics" code - this mod does not utilize the new code only the asynch code. Our newer Anayltics mod utilizes the i,s,o,g,r,a,m universal code and can be found here.

What is Google Analytics?
Google Analytics Home

Quote:
Originally Posted by Google.com
Analytics provides easy to use APIs and SDKs to send data to Google Analytics.

With the collection APIs and SDKs, you can measure how users interact with your content and marketing initiatives. Once implemented, you will be able to view user-interaction data within Google Analytics or through the Reporting APIs.
*This modification is auto-template therefor if enabled the asynch google code will always be there, no need for manual template edits in one or multiple styles as it's handled automatically via a plugin and rendered in all styles!

This modification is similar to BBR's recently retired Google Analytics Modification however it's based on the new asynchronous version of the tracking code and the modification was not too complex so it was easy enough to replicate from scratch using the documentation provided by Google for the new asynchronous version.

Installation:
  • Import the product.
  • AdminCP > Settings > Options > Google Analytics
  • Enable the modification and enter in your UA-######-# account ID number and select other options.
  • Enjoy!

Why are there three versions of this available for download?
  1. product-innovative_google_analytics.xml is the default google analytics code without additional _gaq.push settings. This is perfect for newcomers associating themselves with Google Analytics for the first time.
  2. product-innovative_google_analytics_v2.xml is the default code with option to enable multiple domain tracking. This is perfect for those using multiple domains.
  3. product-innovative_google_analytics_v3.xml is the default code with options to enable multiple domain tracking, disable campaign tracking, and split snippets regarding the code placement. This is the most robust version of the mod available, all additional options can be enabled/disabled in admincp options.

*Version 3 is the most up to date, features cleaned up code using one push instance instead of multiple and contains all features of its two predecessors.

AdminCP > Settings > Options > Google Analytics

You can reference the new code here:
Async Tracking

The Async guide:
Async Guide

Please remove ALL older Google Analytic code and/or modifications before using (if you're installing the new version of this mod _v2 listed below simply choose to overwrite the modification). You can view Google's instructions here with information as to why you should not use two codes as well:
Async Migration Examples

More information for reference:
Async Split Snippets

______________________________________

Multiple Domain Tracking

Tracking Multiple Domains or using subdomains? Install the version product-innovative_google_analytics_v2.xml instead .
Reference:
Tracking Multiple Domains

AdminCP > Settings > Options > Google Analytics > Subdomain Name
Example: .vbulletin.org

*Don't forget to setup filters either pre-defined or custom to differentiate between the different subdomains!
Reference: Eric Mobley Explains Filters

Why is this important?
Hufted explains it here: Why this change is important

Please note: When updating from the normal version to the new _subdomains version it may take upwards of 24hrs before new information is displayed. Please view this page for additional information: Troubleshooting Tracking Issues

You can change the date range in "reports" to "today" to see if it displays new information after updating the modification before it has been 24hrs.
______________________________________

If you like the modification please MARK AS INSTALLED.
*You can note on the top right of the mod description in the side menu, your "Installed" or "Uninstalled" status indicator.

Download Now

File Type: xml product-innovative_google_analytics.xml (2.9 KB, 1281 views)
File Type: xml product-innovative_google_analytics_v2.xml (4.7 KB, 54 views)
File Type: xml product-innovative_google_analytics_v3.xml (7.3 KB, 387 views)

Show Your Support

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

Comments
  #62  
Old 04-26-2013, 05:23 PM
freak46 freak46 is offline
 
Join Date: Apr 2013
Location: Pakistan
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great and working i like it
Reply With Quote
  #63  
Old 06-06-2013, 04:39 PM
Cicada Cicada is offline
 
Join Date: Mar 2002
Location: Palm Springs, CA - USA
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed.
Reply With Quote
  #64  
Old 08-08-2013, 01:03 PM
hutfed hutfed is offline
 
Join Date: Jul 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, is there a way to get the following tag working as part of the code?

_gaq.push(['_setDomainName', '.mydomain.com']);

It tends to cause problems when sites are on subdomains and this isn't present
Reply With Quote
  #65  
Old 08-26-2013, 12:04 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hutfed View Post
Hi, is there a way to get the following tag working as part of the code?

_gaq.push(['_setDomainName', '.mydomain.com']);

It tends to cause problems when sites are on subdomains and this isn't present
Sure - Simply download and install the new version product-innovative_google_analytics_subdomains.xml I just added it tonight and sorry for the delay I had one busy summer w/ my three kiddos .

Edit: Update sent out as well letting everyone know so in case some of you are using subdomains you can utilize the new version .
Reply With Quote
  #66  
Old 08-28-2013, 07:11 AM
hutfed hutfed is offline
 
Join Date: Jul 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's awesome thanks for doing this! #beer+1

update: I've removed the old plugin and added the new one in, but I'm not seeing any code being output for GA. Is it because I removed the old one and this one is called the same thing or something like that? Or is there something I need to clear down before it works?
Reply With Quote
  #67  
Old 08-28-2013, 11:07 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hutfed View Post
that's awesome thanks for doing this! #beer+1

update: I've removed the old plugin and added the new one in, but I'm not seeing any code being output for GA. Is it because I removed the old one and this one is called the same thing or something like that? Or is there something I need to clear down before it works?
Hmm I'm thinking it's just the possible 24 hours to update they mention here but see the note about changing your date range in reports:

Quote:
Originally Posted by Google.com
If all of these elements are being sent correctly, the data should appear in your reports within 24 hours at the latest. However, you can also check to see if data appears sooner by changing the date range in your reports to "today."
Per:
https://developers.google.com/analyt...roubleshooting

So change the date range in "reports" to "today" to see if it displays now and if nothing within 24 hours of original install let me know I'll be curious then .
Reply With Quote
  #68  
Old 08-29-2013, 07:32 AM
hutfed hutfed is offline
 
Join Date: Jul 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, no, crossed wires. What I meant was that the actual GA tracking code isn't appearing on my forum now since I removed the old plugin and added the subdomain one.

I had a look through the xml file and couldn't see anything that would stop it loading, so my only thought is that there is some issue caused by removing the old one. Could it just need a version number change or something? (i'm not too familiar with vbulletin plugin dev)
Reply With Quote
  #69  
Old 08-29-2013, 11:22 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hutfed View Post
Ah, no, crossed wires. What I meant was that the actual GA tracking code isn't appearing on my forum now since I removed the old plugin and added the subdomain one.

I had a look through the xml file and couldn't see anything that would stop it loading, so my only thought is that there is some issue caused by removing the old one. Could it just need a version number change or something? (i'm not too familiar with vbulletin plugin dev)
Well apparently I had some wires crossed in the file, improper syntax etc and forgot to register i.e. $googlesubdomain = $vbulletin->options['googlesubdomain']; as well, still chuckling about that while I sip this coffee so no twas not you twas me lol!

New version up I just uploaded the file - Enjoy!

*Ohh and a better version coming soon quite a bit of new info and customization you can do to this from what I've been reading this morning .
Reply With Quote
  #70  
Old 08-29-2013, 11:47 AM
hutfed hutfed is offline
 
Join Date: Jul 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you were a banana, you'd be the top one! Thanks for checking and providing the update, it looks like it's all working as it should now.

I'm looking forward to the next version with all the other goodies in it.
Reply With Quote
  #71  
Old 08-29-2013, 11:56 AM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I have this uploaded and I saw the update, no sub domains yet but will have. Should I upload this update anyway?

...and can you tell me do I have to take the Google id out of the Options in my cpanel?

Thanks
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 09:23 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.04657 seconds
  • Memory Usage 2,356KB
  • Queries Executed 26 (?)
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
  • (5)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
  • (4)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
  • (3)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