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 (ATDT讨论)
最新版本 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