Jump to content

Extension:HitCounters/es

From mediawiki.org
This page is a translated version of the page Extension:HitCounters and the translation is 38% complete.
Manual de extensiones de MediaWiki
HitCounters
Estado de la versión: estable
Implementación Base de datos , Extracción de datos, MyWiki
Descripción Proporciona la funcionalidad de vistas de página.
Autor(es) Mark A. Hershberger (MarkAHershbergerdiscusión)
Última versión 0.4
MediaWiki >= 1.43.0
PHP 7.3.19+
Cambios en la base de datos
Composer mediawiki/hit-counters
Tablas hit_counter
hit_counter_extension
Licencia Licencia Pública General de GNU 3.0 o posterior
Descargar
  • $wgDisableCounters
  • $wgHitcounterUpdateFreq
  • $wgEnableAddPageId
  • $wgEnableAddTextLength
hitcounter-exempt
Traduce la extensión HitCounters si está disponible en translatewiki.net
Rol de Vagrant hitcounters
Incidentes Tareas abiertas · Reportar un error

La extensión HitCounters muestra el recuento de visitas en el pie de página y las páginas más vistas en una página especial llamada Páginas populares. La extensión proporciona estadísticas de páginas vistas que fueron eliminadas en MediaWiki 1.25 .

Acerca de

Beneficios

Esta extensión proporciona a los editores información en forma de medición de audiencia. Conocer el tamaño aproximado de la propia audiencia como editor permite a los redactores identificar y mejorar los artículos populares. La página especial de HitCounters Páginas populares también permite a los editores centrarse en mejorar los artículos con mayor tráfico, y ayuda a los lectores a descubrir los contenidos más curados de un proyecto.

La extensión HitCounters permite determinar el wikiFactor, una medida aproximada de la popularidad de un sitio web wiki.

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. La extensión no detecta a los usuarios que visitan la página. 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.

Diferencias de la implementación de MediaWiki principal

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.

Lo que cuenta como vista

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.

Instalación

  • Descarga y mueve la carpeta HitCounters extraída a tu directorio extensions/.
    Los desarrolladores y contribuidores de código deberían instalar la extensión desde Git en su lugar, usando:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HitCounters
    
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    wfLoadExtension( 'HitCounters' );
    
  • Ejecuta la secuencia de actualización, que creará automáticamente las tablas de la base de datos que necesita esta extensión.
  • Configurar como sea necesario.
  • Yes Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.


Instalación Vagrant:

  • Si se utiliza Vagrant , instala con vagrant roles enable hitcounters --provision

Nota Nota:

Configuración

Name Description Default
$wgDisableCounters When set to true, it disables the notice in the pages footer saying Esta página ha recibido 256 visitas. 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

  • Extensión:Análisis - 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