Extension:StatCounter.com Integration

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:Public domain licensed extensions
MediaWiki extensions manual
StatCounter.com Integration
Release status: stableCategory:Stable extensions
Implementation User activity Category:User activity extensions
Description Inserts StatCounter.com script into MediaWiki pages for tracking
Author(s) Jack Phoenix
Latest version 1.1
MediaWiki 1.43+Category:Extensions with manual MediaWiki version
License Public domain
Download Category:Extensions in Wikimedia version control
Translate the StatCounter.com Integration extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

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]].

Installation

  • Download and move the extracted StatCounter folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/StatCounter
  • 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

Category:Extensions by ShoutWiki
Category:All extensions Category:Extensions by ShoutWiki Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:Public domain licensed extensions Category:SkinBuildSidebar extensions Category:Stable extensions Category:User activity extensions