Skip to content
gesinn-itPublic

About

MediaWiki extension for privacy-friendly Matomo pageview tracking.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

Matomo

CI Coverage

Matomo is a MediaWiki extension that adds privacy-friendly Matomo pageview tracking. It tracks only which pages are viewed, how often, and in what sequence — no personally identifiable information is collected.

Documentation

For Matomo itself see matomo.org.

Configuration

Set these variables in LocalSettings.php after loading the extension.

Variable Default Description

$wgMatomoURL

""

Hostname (and optional path) of the Matomo instance to send pageview data to, e.g. matomo.example.org. Tracking is disabled while this is empty.

$wgMatomoIDSite

""

The numeric Matomo site ID to record pageviews under. Tracking is disabled while this is empty.

$wgMatomoProtocol

"auto"

Protocol used to load the Matomo tracker script: "auto" (mirrors the current page’s protocol), "http", or "https".

$wgMatomoIgnoreGroups

[ "bot", "sysop" ]

User groups excluded from pageview tracking. A user is excluded if they belong to at least one listed group. Set to [] to track all users.

$wgMatomoCustomJS

[]

A list of extra _paq commands to push after the core tracking commands, e.g. [ [ "setDocumentTitle", "custom title" ], [ "trackEvent", "category", "action" ] ]. Lets administrators extend tracking (custom variables, events, etc.) without patching the extension.

$wgMatomoDisableCookies

true

Whether to push Matomo’s disableCookies command before the core tracking commands, so tracking sets no first-party cookies regardless of the Matomo server configuration. Set to false to allow cookie-based tracking.

Testing

Local testing and CI are supported by Docker and Make:

make ci

Author(s)

Versioning and Releases


Versioning Convention — Semantic Versioning

This project follows Semantic Versioning.

Version numbers follow the format:

MAJOR.MINOR.PATCH

Version increment rules:

  • MAJOR — incompatible or breaking changes

  • MINOR — backwards-compatible feature additions

  • PATCH — backwards-compatible bug fixes

Breaking changes include (but are not limited to):

  • incompatible API changes

  • removal or renaming of public interfaces

  • behavior changes that may break existing integrations

  • increased minimum runtime or dependency requirements

  • incompatible configuration or data format changes

  • dependency upgrades that introduce breaking changes for users

Breaking changes must always increment the MAJOR version.

Contributing


This extension is part of semantic::core - Enterprise Class MediaWiki distribution.

About

MediaWiki extension for privacy-friendly Matomo pageview tracking.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages