Skip to content

Google Analytics in MediaWiki 1.13

Here is how we set up Google Adsense to show in MediaWiki 1.13.0

1. Force the monobook skin for everyone (unless you want to edit every skin…) by putting this setting in LocalSettings.php:

$wgSkipSkins = array(“chick”, “cologneblue”, “myskin”, “nostalgia”, “simple”, “standard”, “modern”);

2. Edit MonoBook.php: add your tracking code just before:


3. Upload the new version of MonoBook.php and it’s done

Posted in MediaWiki, web development.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA