Extension:StatCounter.com Integration

From mediawiki.org
MediaWiki extensions manual
StatCounter.com Integration
Release status: stable
Implementation User activity
Description Inserts StatCounter.com script into MediaWiki pages for tracking
Author(s) Jack Phoenix
Latest version 1.1
MediaWiki 1.40+
License Public domain
Translate the StatCounter.com Integration extension if it is available at translatewiki.net

The StatCounter extension inserts StatCounter.com script into MediaWiki pages for tracking. The hit counter is displayed on the sidebar, in a new portlet. This portlet's title can be customized by editing [[MediaWiki:Statcounter]].


  • Download and place the file(s) in a directory called StatCounter in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'StatCounter' );
  • Fill in [[MediaWiki:Statcounter-project-id]] (with a number) and [[MediaWiki:Statcounter-security]] (with a string). You will find the correct values for both of these as values of the JavaScript variables sc_project and sc_security, respectively, as provided to you by StatCounter.com
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
This extension doesnot work anymore, see discussion for the new solution

See also[edit]