Erweiterung:MatomoAnalytics

From mediawiki.org
This page is a translated version of the page Extension:MatomoAnalytics and the translation is 39% complete.
MediaWiki-Erweiterungen
MatomoAnalytics
Freigabestatus: stabil
Beschreibung Integration with Matomo for analytics. Adds a special page to view that stats on-wiki.
Autor(en) John Lewis, Southparkfan, Universal Omega
Betreuer Miraheze system administrators
Letzte Version continuous updates
MediaWiki 1.35.3+
PHP 7.2+
Datenbankänderungen No, Yes if $wgMatomoAnalyticsUseDB is enabled
Composer miraheze/matomo-analytics
Lizenz GNU General Public License 3.0
Herunterladen
  • $wgMatomoAnalyticsDatabase
  • $wgMatomoAnalyticsGlobalID
  • $wgMatomoAnalyticsDisableCookie
  • $wgMatomoAnalyticsSiteID
  • $wgMatomoAnalyticsForceGetRequest
  • $wgMatomoAnalyticsDisableJS
  • $wgMatomoAnalyticsUseDB
  • $wgMatomoAnalyticsTokenAuth
  • $wgMatomoAnalyticsServerURL
  • noanalytics

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.

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens MatomoAnalytics im Ordner extensions/ ablegen.
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'MatomoAnalytics' );
    
  • Konfiguriere nach Bedarf.
  • Yes Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
  • It is important that the whole URL is used with protocol and trailing slash: http://example.org/

Konfiguration

Parameter Voreinstellung Anmerkung Notwendig?
$wgMatomoAnalyticsServerURL false URL deiner Matomo-Installation Notwendig
$wgMatomoAnalyticsTokenAuth false The auth token for the API of your Matomo install Notwendig
$wgMatomoAnalyticsSiteID 1 Matomo site ID Optional
$wgMatomoAnalyticsGlobalID false Shared Matomo site ID. For use on wikifarms. Optional
$wgMatomoAnalyticsUseDB false Whether to use a database or not. For use on wikifarms. Optional
$wgMatomoAnalyticsDatabase false Name of the main database to use. For use on wikifarms. Optional
$wgMatomoAnalyticsDisableCookie false Allow disabling cookies set by Matomo. Optional
$wgMatomoAnalyticsDisableJS false Allow disabling of JS tracking code globally Optional

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/

Siehe auch