This page is a translated version of the page Extension:XAnalytics and the translation is 0% complete.
发行状态: 穩定版
实现 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或更新版本
季度下載量 3 (Ranked 159th)
正在使用的公开wiki数 844 (Ranked 304th)
問題 开启的任务 · 报告错误

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.


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,以验证已成功安装扩展。


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