Jump to content

Extension:HitCounters2

From mediawiki.org
MediaWiki extensions manual
HitCounters2
Release status: experimental
Implementation API , Parser extension
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.
MediaWiki => 1.42
Database changes Yes
Tables hc2_hitcounter
License GNU General Public License 3.0 or later
Download
README.md
hitcounters2-resetcounter

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

[edit]
  • 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

[edit]

None

User rights

[edit]
  • (hitcounters2-resetcounter): Allows using the Special:ResetHitCounter page to reset the hit counter of any page in the wiki.

See also

[edit]