Github mirror of MediaWiki extension HitCounters - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
244d21a4dc
Change-Id: Ic6a9a3efe95b44c335629f1b5c8f25b5db8ef83b |
||
---|---|---|
.phan | ||
i18n | ||
includes | ||
sql | ||
tests | ||
.editorconfig | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
CODE_OF_CONDUCT.md | ||
COPYING | ||
Gruntfile.js | ||
HitCounters.i18n.alias.php | ||
HitCounters.i18n.magic.php | ||
Makefile | ||
README.md | ||
composer.json | ||
extension.json | ||
package-lock.json | ||
package.json | ||
psalm-autoload.php | ||
psalm.xml | ||
update.php |
README.md
HitCounters
- In MediaWiki 1.25, hit counters have been removed. The reason is given in the commit message:
-
The hitcounter implementation in MediaWiki is flawed and needs removal. For proper metrics, it is suggested to use something like Piwik or Google Analytics.
More discussion can be found at mediawiki.org.
If you wish to continue using the HitCounter's despite the flawed implementation, this extension should help.
Note that some steps will be needed to maintain you current hit count. When those steps are understood, they'll be documented.
Default settings
- $wgDisableCounters = false;
Set to true to disable them completely.
- $wgEnableAddPageId = false;
Set to true to display the page id on Special:PopularPages.
- $wgEnableAddTextLength = false;
Set to true to display the page length on Special:PopularPages.
- $wgHitcounterUpdateFreq = 1;