Extension:HitCounters2
The HitCounters2 extension keeps a count of the number of "hits" (visits) to an article in your wiki. It uses the REST API instead of hooks, unlike Extension:HitCounters, which allows it to work even behind a HTTP caching proxy.
Installation
- Download an archive of the main branch or clone via Git and place the file(s) in a directory called
HitCounters2
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'HitCounters2' );
- Run the update script which will automatically create the necessary database tables that this extension needs.
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters
None
User rights
(hitcounters2-resetcounter)
: Allows using the Special:ResetHitCounter page to reset the hit counter of any page in the wiki.
See also
Category:API extensions
Category:All extensions
Category:BeforePageDisplay extensions
Category:Experimental extensions
Category:Extensions in GitHub version control
Category:Extensions not in ExtensionJson
Category:Extensions which add rights
Category:Extensions with manual MediaWiki version
Category:Extensions with master compatibility policy
Category:GPL licensed extensions
Category:GetMagicVariableIDs extensions
Category:LoadExtensionSchemaUpdates extensions
Category:PageDeleteComplete extensions
Category:ParserGetVariableValueSwitch extensions
Category:Parser extensions