Extension:XAnalytics/zh

This page is a translated version of the page Extension:XAnalytics and the translation is 0% complete.
MediaWiki擴充功能手冊
OOjs UI icon advanced-invert.svg
XAnalytics
发布状态: 稳定版
实现 other (invalid type)
描述 Used to communicate analytic information for WMF to logging infrastructure
作者 (Ori Livneh讨论)
最新版本 1.1
MediaWiki 1.25+
PHP 5.4+
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
翻譯XAnalytics擴充功能如在translatewiki.net可用

检查使用和版本矩阵。

问题 尚未完成的工作 · 回報錯誤

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目录内。
  • 将下列代码放置在您的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