Jump to content

Extension:MatomoAnalytics/ru

From mediawiki.org
This page is a translated version of the page Extension:MatomoAnalytics and the translation is 23% complete.
Справка по расширениям MediaWiki
MatomoAnalytics
Статус релиза: стабильно
Реализация Служебная страница , Действия пользователя
Описание Integration with Matomo for analytics. Adds a special page to view that stats on-wiki.
Автор(ы) John Lewis, Southparkfan, Universal Omega, Agent Isai
Поддерживающий(ие) Miraheze system administrators
Последняя версия continuous updates
Политика совместимости Основная ветвь поддерживает обратную совместимость.
MediaWiki >= 1.43.0
PHP 7.2+
Изменения в БД No, Yes if $wgMatomoAnalyticsUseDB is enabled
Composer miraheze/matomo-analytics
Virtual domain virtual-matomoanalytics
  • $wgMatomoAnalyticsEnableCustomDimensionsUserType
  • $wgMatomoAnalyticsForceGetRequest
  • $wgMatomoAnalyticsDisableCookie
  • $wgMatomoAnalyticsSiteID
  • $wgMatomoAnalyticsUseDB
  • $wgMatomoAnalyticsTokenAuth
  • $wgMatomoAnalyticsDisableJS
  • $wgMatomoAnalyticsGlobalID
  • $wgMatomoAnalyticsServerURL
  • noanalytics
  • viewanalytics
Licence GNU General Public License 3.0 or later
Скачать

The MatomoAnalytics extension inserts tracking code for the Matomo analytics platform. It also creates a Special Page (Special:Analytics) where you can view the stats on-wiki.

For reporting an issue or a bug, please use Miraheze Phabricator. See here for the workboard.

Установка

  • Download и распакуйте файл(ы) в папку с названием MatomoAnalytics в вашей папке extensions/.
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'MatomoAnalytics' );
    
  • Configure as required.
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Настройка

параметр по умолчанию комментарий требуется?
$wgMatomoAnalyticsServerURL "" URL of your Matomo installation

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

Обязательно
$wgMatomoAnalyticsTokenAuth "" The auth token for the API of your Matomo install Обязательно
$wgMatomoAnalyticsSiteID 1 Matomo site ID По желанию
$wgMatomoAnalyticsGlobalID 0 Shared Matomo site ID. For use on wikifarms. По желанию
$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/

См. также