Back to vBulletin 4.x Add-ons

Innovative Google Analytics - Asynchronous Version
Mod Version: 1.00, by TheLastSuperman

vB Version: 4.2.x Rating: (37 votes - 4.97 average) Installs: 359
Released: 24 Feb 2011 Last Update: 30 Aug 2013 Downloads: 1547
Supported Uses Plugins Auto-Template 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 http://www.innovationbyinstinct.com/cartplog.php?do=viewitem&cartplogproductid=20.

What is Google Analytics?
https://code.google.com/apis/analytics/docs/tracking/home.html

Quote 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 http://www.vbulletin.org/forum/showthread.php?p=2165189 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:
https://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

The Async guide:
https://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html

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:
https://code.google.com/apis/analytics/docs/tracking/asyncMigrationExamples.html

More information for reference:
https://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html#SplitSnippet

______________________________________

Multiple Domain Tracking

Tracking Multiple Domains or using subdomains? Install the version product-innovative_google_analytics_v2.xml instead .
Reference:
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#multipleDomains

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: http://www.ericmobley.net/guide-to-tracking-multiple-subdomains-in-google-analytics/

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

Spoiler (click to open)


Some background on why this change to the plugin is important:

If you are running your forum on a subdomain of your main site, but you want to be able to track people landing on your forum then going to the main site, then you need to make sure the subdomain tracking is enabled.

So site is http://www.mysite.com and the forum is forum.mysite.com but it all goes through the same GA account and is tracked as if it was part of the same site because I'll add .mysite.com into this plugin setup.

For the forum that I've set up, it's the community part of a large ecommerce site, so it's important to track any revenue that people landing on the forum who then go on to buy something in the shop.

So now I've got this plugin installed, I'll be able to tell how much money the forum generates and which boards and posts go on to generate the sales. Very useful!

I'll give v2 a try for you and will report back.

Close


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: https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting

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 .
*You can note on the top right of the mod description in the side menu, your "Installed" or "Uninstalled" status indicator.

Download

File Type: %1$s product-innovative_google_analytics.xml (2.9 KB, 1283 downloads)
File Type: %1$s product-innovative_google_analytics_v2.xml (4.7 KB, 56 downloads)
File Type: %1$s product-innovative_google_analytics_v3.xml (7.3 KB, 390 downloads)


vblts.ru supports vBulletin®, 2022-2024