PHPackages                             mediawiki/piwik-integration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mediawiki/piwik-integration

Abandoned → [mediawiki/matomo](/?search=mediawiki%2Fmatomo)Mediawiki-extension

mediawiki/piwik-integration
===========================

The Matomo (ex-Piwik) extension inserts your Matomo tracking code to the bottom of every page.

v4.0.1(7y ago)1735.6k21[5 PRs](https://github.com/DaSchTour/piwik-mediawiki-extension/pulls)GPL-2.0-or-laterPHPPHP &gt;=5.3.0CI failing

Since Jan 23Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/DaSchTour/piwik-mediawiki-extension)[ Packagist](https://packagist.org/packages/mediawiki/piwik-integration)[ Docs](https://www.mediawiki.org/wiki/Extension:Matomo)[ RSS](/packages/mediawiki-piwik-integration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (11)Used By (0)

Mamoto extension for MediaWiki
==============================

[](#mamoto-extension-for-mediawiki)

Version 5.0.0

- Last update: 27 October 2023

This the Mamoto (ex-Piwik) integration extension for MediaWiki software. The extension is only useful if you've got a MediaWiki installation; it can only be installed by the administrator of the site.

Minimum requirements
--------------------

[](#minimum-requirements)

1. MediaWiki 1.34+
2. A Matomo (0.4+) installation with the site configured

Installation instructions
-------------------------

[](#installation-instructions)

Please, read them carefully. They're not very difficult to understand, but **ALL** steps are necessary:

1. Create a folder called "Matomo" in your extensions directory
2. Upload extension.json and Matomo.hooks.php in the "Matomo" folder you've just created
3. Edit your LocalSettings.php and, at the end of the file, add the following:

    ```
     wfLoadExtension( 'Matomo' );

    ```
4. Configure the Matomo URL and site-id. To do so; edit the LocalSettings and set up the following variables:

    > $wgMatomoURL = "matomo-host.tld/dir/";

    > $wgMatomoIDSite = "matomo\_idsite";

    **IMPORTANT** Do not define the protocol of the $wgMatomoURL

Note: Change the value of $wgMatomoURL with the URL, without the protocol but including the domain name, where you installed Matomo. Remember to add the trailing slash!

5. Enjoy our extension!

> Note: to check if the extension has succesfully installed; go to your wiki and check if the Matomo extension is present on the bottom of the Wiki source code.

Custom variables
----------------

[](#custom-variables)

- Disable cookies by setting the `$wgMatomoDisableCookies` variable to `false`.

    > For example: $wgMatomoDisableCookies = false;
- Ignore regular editors: set `$wgMatomoIgnoreEditors` to `true`
- Do not ignore Bots: set `$wgMatomoIgnoreBots` to `false` (by default bots are ignored)
- Do not ignore sysop users: set `$wgMatomoIgnoreSysops` to `false` (by default sysops are ignored)
- To define custom javascript tags in the Matomo javascript code, its possible to define the $wgMatomoCustomJS variable. For example if you have a single setting to insert; use the following code:

    > `$wgMatomoCustomJS = "_paq.push(['trackGoal', '1']);"`

    If you have multiple variables to define; use an array. For example:

    > ` $wgMatomoCustomJS = array( "_paq.push(['setCustomVariable', '1','environment','production']);", "_paq.push(['setCustomVariable', '1','is_user','yes']);" );`
- If you want to change the title of your pages inside the Matomo tracker, you can set `$wgMatomoActionName` inside your LocalSettings.php file.
- In case you want to include the title as, for example, "wiki/Title of the page", you can set `$wgMatomoUsePageTitle` to `true` and set `$wgMatomoActionName` to `wiki/`. The extension will print matomo\_action\_name = 'wiki/Title of the page';
- If you want to track the username of the visitor with the Matomo feature User ID (needs Matomo &gt;= 2.7.0) set the `$wgMatomoTrackUsernames` to true in LocalSettings.php.

Troubleshooting
---------------

[](#troubleshooting)

On MediaWiki 1.39.0–1.39.4 and 1.40.0, the tracking code is included twice: this can be fixed by upgrading MediaWiki to 1.39.5 and 1.40.1 (see this [Phabricator task](https://phabricator.wikimedia.org/T345039).

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance47

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~232 days

Recently: every ~114 days

Total

9

Last Release

2629d ago

Major Versions

v2.4.3 → v3.0.02017-11-30

v2.4.4 → v3.1.02018-02-07

v3.1.0 → v4.0.02019-02-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/06f514668b8c8cda13f7172aaaf306fa809558b7b9df55b92d545f03d47ad543?d=identicon)[DaSchTour](/maintainers/DaSchTour)

![](https://www.gravatar.com/avatar/51054ac1532aae45c9c9433a106924c977c54feba870764ec3663f8f927417e9?d=identicon)[seb35](/maintainers/seb35)

---

Top Contributors

[![Seb35](https://avatars.githubusercontent.com/u/772681?v=4)](https://github.com/Seb35 "Seb35 (26 commits)")[![DaSchTour](https://avatars.githubusercontent.com/u/1907266?v=4)](https://github.com/DaSchTour "DaSchTour (25 commits)")[![YOUR1](https://avatars.githubusercontent.com/u/3681016?v=4)](https://github.com/YOUR1 "YOUR1 (8 commits)")[![samwilson](https://avatars.githubusercontent.com/u/213655?v=4)](https://github.com/samwilson "samwilson (3 commits)")[![cambid](https://avatars.githubusercontent.com/u/2196223?v=4)](https://github.com/cambid "cambid (2 commits)")[![mnival](https://avatars.githubusercontent.com/u/1595998?v=4)](https://github.com/mnival "mnival (2 commits)")[![camponez](https://avatars.githubusercontent.com/u/41401?v=4)](https://github.com/camponez "camponez (2 commits)")[![felipeforte](https://avatars.githubusercontent.com/u/64996043?v=4)](https://github.com/felipeforte "felipeforte (1 commits)")[![squirrelslair](https://avatars.githubusercontent.com/u/24460240?v=4)](https://github.com/squirrelslair "squirrelslair (1 commits)")[![tetsuo13](https://avatars.githubusercontent.com/u/92477?v=4)](https://github.com/tetsuo13 "tetsuo13 (1 commits)")[![thilp](https://avatars.githubusercontent.com/u/968838?v=4)](https://github.com/thilp "thilp (1 commits)")[![simison](https://avatars.githubusercontent.com/u/87168?v=4)](https://github.com/simison "simison (1 commits)")[![harryajc](https://avatars.githubusercontent.com/u/32554937?v=4)](https://github.com/harryajc "harryajc (1 commits)")[![DannyHavenith](https://avatars.githubusercontent.com/u/809348?v=4)](https://github.com/DannyHavenith "DannyHavenith (1 commits)")

---

Tags

matomomatomo-pluginmediawikimediawiki-extensionphppiwikpiwik-trackingpiwikmediawikimatomo

### Embed Badge

![Health badge](/badges/mediawiki-piwik-integration/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-piwik-integration/health.svg)](https://phpackages.com/packages/mediawiki-piwik-integration)
```

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.4k37.3k](/packages/matomo-matomo)[matomo/matomo-php-tracker

PHP Client for Matomo Analytics Tracking API

2213.1M16](/packages/matomo-matomo-php-tracker)[mediawiki/matomo

The Matomo (ex-Piwik) extension inserts your Matomo tracking code to the bottom of every page.

174.5k](/packages/mediawiki-matomo)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3164.5k](/packages/starcitizentools-citizen-skin)[fof/analytics

Tracks analytics using Google Analytics, Google Optimize/GTM and Matomo

3543.1k](/packages/fof-analytics)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
