Extension:StatCounter.com Integration
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.43+ |
License | Public domain |
Download | |
Translate the StatCounter.com Integration extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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 yourextensions/
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 variablessc_project
andsc_security
, respectively, as provided to you by StatCounter.com - 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