Jump to content

Extension:HitCounters/ko

From mediawiki.org
This page is a translated version of the page Extension:HitCounters and the translation is 3% complete.
미디어위키 확장 기능 설명서
HitCounters
출시 상태: 안정
구현 데이터베이스 , 데이터 추출, 내 위키
설명 Provides a page views functionality
만든 이 Mark A. Hershberger (MarkAHershberger토론)
최신 버전 0.4
MediaWiki >= 1.43.0
PHP 7.3.19+
데이터베이스 변경
Composer mediawiki/hit-counters
  • $wgDisableCounters
  • $wgHitcounterUpdateFreq
  • $wgEnableAddPageId
  • $wgEnableAddTextLength
hitcounter-exempt
Licence GNU General Public License 3.0 or later
다운로드
HitCounters 확장 기능 번역 (translatewiki.net에서 가능한 경우)
Vagrant 역할 hitcounters
이슈 미해결 작업 · 버그 보고

The HitCounters extension displays the view count in the page footer and the most viewed pages on a special page called PopularPages. The extension provides page views statistics that were removed in MediaWiki 1.25 , which was released in May 2015.

About

Benefits

This extension provides feedback in the form of audience measurement to editors. Knowing the rough size of one's audience as an editor allows editors to identify and improve popular articles. HitCounters' special page PopularPages also allows editors to focus on improving those articles with the highest traffic and helps readers discover a project's most curated content.

HitCounters extension enables determining the wikiFactor, a rough measure of a wiki website's popularity.

HitCounters extension is minimally intrusive concerning data security and privacy concerns. The extension handles metrics on the server side, so aggregated data stays within the site's security boundary. The extension does not inject JavaScript to be executed by the client and does not ask a client to download additional un-audited code. The extension does not track users who visit a page. As such, there's no need for special handling of "Do Not Track" browser requests or Global Privacy Control settings. It also does not use third-party services and has no dependencies that can cause conflicts. Other extensions can cause problems during a Composer update.

Differences from former core MediaWiki implementation

Before MediaWiki 1.25, the page views counting functionality was in core MediaWiki. This extension is based on that same code but was deliberately made lighter to speed up processing time. Many lines of superfluous code were removed. Also, the old MediaWiki core code performed numerous database queries on every page hit; these have all been removed. This change may lead to some inaccuracies in the data.

The core differences that wiki administrators need to know are:

  • The hit counts are stored in the cache.
  • The visible hit count at the bottom of each page is updated only once daily. (Pages with a hit count of less than 100 are updated once per minute.)
  • That hit is ignored if you refresh your browser on a wiki page.

What counts as view?

According to tests conducted by several MediaWiki operators, a view is counted if a page is accessed (action=view), as well as action=render and when accessing a page revision .

A view is not counted with the other actions, such as action=raw, action=edit, action=info.

Migration

If you are migrating from a version of MediaWiki 1.25 and earlier to a newer version, you must ensure to follow the advice and documentation outlined in this version of the documentation.

설치

  • 파일을 다운로드하고 HitCounters 폴더를 extensions/ 디렉토리에 넣어 주세요.
    개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HitCounters
    
  • 아래의 코드를 LocalSettings.php 코드의 마지막에 추가합니다.
    wfLoadExtension( 'HitCounters' );
    
  • 갱신 스크립트를 실행합니다. 이 스크립트는 이 확장기능을 필요로 하는 데이터 베이스 테이블을 자동적으로 작성합니다.
  • Configure as required.
  • Yes 완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.


Vagrant 설치:

  • Vagrant 를 사용하고 있는 경우에는, vagrant roles enable hitcounters --provision로 설치해주세요
You can also use Composer to install this extension.

Configuration

Name Description Default
$wgDisableCounters When set to true, it disables the notice in the pages footer saying 이 문서는 256번 읽혔습니다. as well as the Special:PopularPages. false
$wgHitcounterUpdateFreq Sets how often page counters should be updated. 1
$wgEnableAddPageId When set to true, it adds the PageId to the special page "PopularPages". false
$wgEnableAddTextLength When set to true, it adds the TextLength to the special page "PopularPages". false
  • $wgGroupPermissions['sysop']['hitcounter-exempt'] = true;
    Exclude user group page views from counting.

Fork

There is a fork of this extension that offers custom settings to the user:

See also

  • Extension:Analytics - Gives access to traffic and edit analytics for the entire wiki, as well as for specific categories and pages
  • Extension:WSStats - Page statistics and parser functions and Lua modules to display statistical information