Extension:Metrica

From Linux Web Expert

Revision as of 21:45, 19 July 2020 by imported>Pppery (Last commit in 2016)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
Metrica
Release status: unmaintained
File:Extension-Metrica-1.png
Implementation Special page
Description Caches aware statistics collection framework
Author(s) Vedmakatalk
Latest version 0.1
MediaWiki 1.25+
Database changes Yes
Tables metrica
License MIT License
Download
Example Screenshot
$wgMetricaExcludeSpecials
metrica
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

Metrica is caches-compatible statistics collection extension for Mediawiki. It allows to collect number of page views (and page edits) even when your Mediawiki is hardly cached ( opcache, squid, file-cache, etc ), because metrics are sent from client to server ( like Google Analytics ).

Installation

  • <translate> Download and place the file(s) in a directory called <tvar name=name>Metrica</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'Metrica' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration parameters

You can enable or disable metrics collection for special pages by changing $wgMetricaExcludeSpecials variable. By default special pages are excluded from tracking.

User rights

Only users with metrica right are allowed to visit Special:Metrica page. By default only sysops granted with this permission.