Manual:LocalSettings.php
From OpenWetWare
//Replace xxxxxxx-x with YOUR GoogleAnalytics UA number $googleAnalytics = "UA-75976848-1";
//Set to true if you are using the Monobook skin (uses a Monobook-specific hook) //This setting is ignored for MW 1.11+ (SkinAfterBottomScripts is used instead) $googleAnalyticsMonobook = true;
require_once( "$IP/extensions/googleAnalytics/googleAnalytics.php" );