Go to file
Alexander Yakovlev 3846736f0f Merge remote-tracking branch 'upstream/master' 2023-08-05 07:57:45 +06:00
i18n New translations 2019-04-10 13:19:23 +00:00
modules Fix typo "seperat" 2019-03-13 19:49:03 +05:30
schema SQL fix 2018-04-27 02:42:54 +07:00
.gitignore Merge branch 'master' of https://github.com/enterprisemediawiki/Wiretap 2014-09-09 10:49:54 -05:00
README.md fix new extension registration, make load i18n, remove support for MW <1.25 (#15) 2017-04-25 15:56:18 -05:00
SpecialWiretap.php Merge remote-tracking branch 'upstream/master' 2023-08-05 07:57:45 +06:00
Wiretap.alias.php Initial commit 2013-11-07 11:52:15 -06:00
Wiretap.body.php Merge remote-tracking branch 'upstream/master' 2023-08-05 07:57:45 +06:00
Wiretap.i18n.php update i18n 2014-09-09 11:15:58 -05:00
Wiretap.php fix new extension registration, make load i18n, remove support for MW <1.25 (#15) 2017-04-25 15:56:18 -05:00
composer.json composer.json file 2018-04-26 21:55:42 +07:00
extension.json Add manifest_version to extension.json 2018-04-19 20:05:05 +00:00
wiretapRecordLegacyHitCount.php Made view counter more like the pre-MW-1.25 built-in 2016-02-04 17:22:38 -06:00
wiretapRecordPageHitCount.php fix global variables 2016-02-05 14:46:07 -06:00



MediaWiki extension for user pageview tracking.


  1. Obtain the code from GitHub
  2. Extract the files in a directory called Wiretap in your extensions/ folder.
  3. Add the following code at the bottom of your "LocalSettings.php" file: require_once "$IP/extensions/Wiretap/Wiretap.php";
  4. In the command line run php maintenance/update.php
  5. Go to "Special:Version" on your wiki to verify that the extension is successfully installed.
  6. Done.


If upgrading, make sure to run php maintenance/update.php as well as php extensions/Wiretap/wiretapRecordPageHitCount.php --type=all. This will create a hit-totals count for all pages in your wiki.

Before upgrading to MediaWiki 1.25

Before upgrading your instalation to MediaWiki 1.25, make sure to grab the latest Wiretap and in addition to running update.php and wiretapRecordPageHitCount.php, also run:

php extensions/Wiretap/wiretapRecordLegacyHitCount.php

Important note

This extension is intended for internal corporate wikis where transparency is more important than privacy. It is definitely very invasive for an open, internet-facing wiki. If you insist on installing it on a public wiki please make your users aware that they are not browsing with the anonymity they are familiar with from MediaWiki.


The following config was taken from Wiretap.php prior to it being gutted for the new extension registration method. This should be written into proper documentation.

// for selecting a short period over which to count hits to pages
// set to 1 to count over the last day, 4 over the last 4 days, etc
$wgWiretapCounterPeriod = 30;

// use the all-time counter by default
$wgWiretapAddToAlltimeCounter = true;

// don't use the period counter by default
$wgWiretapAddToPeriodCounter = false;

// of course we want counters! why else have the extension!
$wgDisableCounters = false;