mediawiki/hit-counters

Provides per page view statistics

Installs: 650

Dependents: 0

Suggesters: 0

Security: 0

Type:mediawiki-extension

0.3.4 2021-01-18 18:35 UTC

README

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;