Extension:Google Analytics Integration

This extension inserts Google Analytics tracking code in every MediaWiki page that is viewed. The extension excludes pages being viewed by users with 'protect' privileges (sysops) and users with 'bot' privileges (bots) to prevent pollution of the statistics.

Installation
wiki-install-folder/extensions/googleAnalytics In the googleAnalytics folder, googleAnalytics.php you can find the following and edit as appropriate: For the last version supporting MW 1.10, see http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/googleAnalytics/?pathrev=29077
 * 1) Create a new folder (directory) in the following location:
 * 1) Download the googleAnalytics.php files from SVN
 * 2) Copy googleAnalytics.php and googleAnalytics.i18n.php  in to the new googleAnalytics folder Note: you may need to remove the   line for Analytics to recognise the installation
 * 3) Add the following line to your LocalSettings.php at the bottom:
 * NOTE: Backwards compatability has been removed - this extension now requires MediaWiki 1.11+
 * To see how to set the old version up, see an old version of this page.

Usage

 * 1) Create a Google Analytics account
 * 2) Locate your UA number
 * 3) * For the legacy code block, it can be found on the following line: _uacct="UA-xxxxxxx-x";
 * 4) * For the new ga.js code block, it can be found on the following line: var pageTracker = _gat._getTracker("UA-xxxxxxx-x");
 * 5) Follow Installation Instructions
 * 6) Google Analytics stats should start populating within 24-48 hours.

More info

 * Live Demo at http://www.PoxWiki.com/