Extension:XAnalytics/zh

This page is a translated version of the page Extension:XAnalytics and the translation is 0% complete.
MediaWiki扩展手册
XAnalytics
发行状态: 稳定版
实现 other (invalid type)
描述 Used to communicate analytic information for WMF to logging infrastructure
作者 Ori Livneh (ATDT留言)
最新版本 1.1
MediaWiki 1.25+
PHP 5.4+
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
季度下載量 8 (Ranked 132nd)
正在使用的公开wiki数 844 (Ranked 304th)
前往translatewiki.net翻譯XAnalytics扩展
問題 开启的任务 · 报告错误

The XAnalytics extension is used on Wikimedia wikis to communicate analytic information from MediaWiki to Wikimedia's logging infrastructure. See wikitech:X-Analytics for more details.

Installation

You probably do not want to use this extension on your own wiki. If you do want to use it, its only useful if you also set up all the logging infrastructure that Wikimedia has.


  • 下载文件,并将其放置在您extensions/文件夹中的XAnalytics目录内。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/XAnalytics
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'XAnalytics' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

Hooks

This extension adds a custom hook named XAnalyticsSetHeader, which is given parameters OutputPage $out and Array &$headerItems. Other extensions can use this to add additional items to the X-Analytics header.

See also