Jump to content

Extension:MatomoAnalytics

From mediawiki.org
This page is a translated version of the page Extension:MatomoAnalytics and the translation is 61% complete.
MediaWiki 拡張機能マニュアル
MatomoAnalytics
リリースの状態: 安定
実装 特別ページ , 利用者アクティビティ
説明 分析のためのMatomoとの統合。 ウィキで統計を表示する特別ページを追加します。
作者 John Lewis, Southparkfan, Universal Omega, Agent Isai
メンテナー Miraheze system administrators
最新バージョン 継続的な更新
互換性の方針 main ブランチが後方互換性を維持しています。
MediaWiki >= 1.43.0
PHP 7.2+
データベースの変更 No, Yes if $wgMatomoAnalyticsUseDB is enabled
Composer miraheze/matomo-analytics
仮想ドメイン virtual-matomoanalytics
  • $wgMatomoAnalyticsEnableCustomDimensionsUserType
  • $wgMatomoAnalyticsForceGetRequest
  • $wgMatomoAnalyticsDisableCookie
  • $wgMatomoAnalyticsSiteID
  • $wgMatomoAnalyticsUseDB
  • $wgMatomoAnalyticsTokenAuth
  • $wgMatomoAnalyticsDisableJS
  • $wgMatomoAnalyticsGlobalID
  • $wgMatomoAnalyticsServerURL
  • noanalytics
  • viewanalytics
ライセンス GNU 一般公衆利用許諾書 3.0 以降
ダウンロード

MatomoAnalytics拡張機能は、Matomo分析プラットフォーム用のトラッキングコードを挿入します。 また、wウィキの統計を表示できる特別ページ(Special:Analytics)も作成します。

問題またはバグを報告するには、Miraheze Phabricator を使用してください。 ワークボードについてはこちらを参照してください。

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のMatomoAnalyticsという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'MatomoAnalytics' );
    
  • 必要に応じて設定します。
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

パラメーター 既定 コメント 必須かどうか
$wgMatomoAnalyticsServerURL "" MatomoインストールのURL

It is important that the whole URL is used with protocol and trailing slash: http://example.org/

必須
$wgMatomoAnalyticsTokenAuth "" MatomoインストールのAPIの認証トークン 必須
$wgMatomoAnalyticsSiteID 1 Matomo サイト ID 省略可能
$wgMatomoAnalyticsGlobalID 0 共有MatomoサイトID。ウィキファームで使用します。 省略可能
$wgMatomoAnalyticsUseDB false Whether to use a database or not. For use on wikifarms. 省略可能
$wgMatomoAnalyticsForceGetRequest false Whether or not you want to force GET requests which also disables beacon. Reverts back to Matomo v3 tracking behavior. 省略可能
$wgMatomoAnalyticsEnableCustomDimensionsUserType false Whether to fetch userType in Matomo using CustomDimensions. You must set up CustomDimensions to be able to use this. 省略可能
$wgMatomoAnalyticsDisableCookie false Allow disabling cookies set by Matomo. 省略可能
$wgMatomoAnalyticsDisableJS false Allow disabling of JS tracking code globally 省略可能

Matomo API token

To obtain a Matomo API token from your Matomo installation, you can follow the official documentation:

https://matomo.org/faq/general/faq_114/

関連項目