PDA

View Full Version : BBR Google Analytics Addon



admin
25-02-2010, 09:56 PM
BBR - Google Analytics Addon

Info:
This will add the Google Analytics code to one of two places.
You have the option to use the Standard Tracking Code which is placed just above the closing </body> tag.
You also have the option to use the Asynchronous Tracking Code which is placed just above the opening <body> tag.

This code is placed just as Google suggest. This not placed there because thats where I want it.

This saves you the time of making template edits for every style on every upgrade.

If you don't know what it is read here: http://www.google.com/analytics/

Tested on:
4.0.1
I am sure this will work on just about any version vBulletin.

Install Instructions:
1) Import the XML file
2) Go to your AdminCP options and edit the BBR Google Analytics options.
3) You must set Active to Yes
4) Input your Google Account ID (UA-xxxxxx-x)
5) Choose which Google code you would like to use. The standard code is set as default.


Each Domain you add to Google Analytics has a different ID so each site has its own Google ID.

Remember it takes 24hours for Google to collect data.

Thanks to Lynne for the help making this code work.


Updates:
Version: 1.0.1 - Removed cache template for testing left it in by mistake.
Version: 1.0.2 - Altered code with code by Jedric
Version: 1.0.3 - Rewrite of the code to give the option to use the (Standard Tracking Code) or the (Asynchronous Tracking Code)

Screen Shot:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/02/25/09/72731267109738.PNG