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
require_once( "$IP/extensions/googleAnalytics/googleAnalytics.php" );
 * 1) Copy the Source Code (below) to a file named googleAnalytics.php
 * 2) Create a new folder (directory) in the following location: wiki-install-folder/extensions/googleAnalytics
 * 3) Copy GoogleAnalytics.php in to the new googleAnalytics folder
 * 4) Add the following code to your LocalSettings.php (at the bottom, before the closing "?>")

$googleAnalytics = "UA-xxxxxxx-x";   //Replace xxxxxxx-x with YOUR GoogleAnalytics UA number $googleAnalyticsMonobook = true;     //Set to true if you are using the Monobook skin (uses a Monobook-specific hook)

Usage

 * 1) Create a Google Analytics account
 * 2) Locate your UA number (found in the chunk of code that they provide you _uacct=UA-xxxxxxx-x
 * 3) Follow Installation Instructions
 * 4) Google Analytics stats should start populating within 24-48 hours.

More info

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