Jump to content

Extension:SearchStats

From mediawiki.org
Revision as of 14:52, 24 August 2016 by Sorvis (talk | contribs) (Created page with "<!-- ************************************************************** Usage instructions: 1. Fill in the template. For help, see Template:Extension. 2. Remove any HTML c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


MediaWiki extensions manual
SearchStats
Release status: beta
Description Tracks searches users perform so that they can be analyzed for pages users are looking for on the wiki.
Author(s) Steven Orvis (Sorvistalk)
Latest version 0.1.0 (2016-24-16)
MediaWiki 1.25.1+
PHP 5.3+
Licence GNU General Public License 2.0 or later
Download
README
Translate the SearchStats extension if it is available at translatewiki.net

The SearchStats extension tracks user searches that do not result in a direct hit from a page. The search saves the search term to a new table called search_query. Most recent 10 searches and top 10 searches can then be viewed on the SearchStats special page.

Installation

  • Download and move the extracted SearchStats 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/SearchStats
    
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/SearchStats/SearchStats.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

User rights

Future Ideas

The following are ideas of additional features that may or may not be added to this extension in the future:

  • Tracking the user's role that did the search (assumes the user was logged in)
  • Hard-code filtering out a certain role on the stats page
  • LocalSettings configuration to turn tracking on and off
  • LocalSettings configuration of which roles to ignore on the stats page
  • Add a way to export full stats to a CSV file
  • LocalSettings configuration for role access to the stats page

See also