Extension:HitCounters2

Category:GPL licensed extensions
MediaWiki extensions manual
HitCounters2
Release status: experimentalCategory:Experimental extensions
Implementation API Category:API extensions, Parser extension Category:Parser extensions
Description An extension to count the number of 'hits' (visits) to a specific page
Author(s) Alex (AllUsernamesArePickedtalk)
Compatibility policy Main branch maintains backward compatibility.Category:Extensions with master compatibility policy
MediaWiki => 1.42Category:Extensions with manual MediaWiki version
Database changes Yes
Tables hc2_hitcounter
License GNU General Public License 3.0 or later
Download Category:Extensions in GitHub version control
README.md
hitcounters2-resetcounter Category:Extensions which add rights
Category:All extensionsCategory:Extensions not in ExtensionJson

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 your extensions/ 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.
  • Yes 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