Page MenuHomePhabricator

Adopt Matomo in wiki.wikimedia.it
Open, LowPublic

Description

Preamble

Wikimedia Italia has its own Matomo instance since ~ December 2020 (see https://wiki.wikimedia.it/wiki/Matomo). This platform is useful to avoid Google Analytics while being still able to study the performances of https://www.wikimedia.it/ and other things and keep our fundraising officer happy with cute dashboard etc. That's just to say that Matomo is already adopted in Wikimedia Italia successfully to monitor some sites, and this Task talks about adding another website to this coverage.

This goal was proposed by our SEO company.

Success conditions

While it could be useful to add Matomo to https://wiki.wikimedia.it we should take care of some requirements:

  • disable tracking code for special pages (e.g. check page id != -1)
    • e.g. the login page should not be tracked in any way
  • disable tracking code for registered users (e.g. check ! $user->isUserRegistered())
  • disable tracking code for browser webs with DNT header enabled
  • (what else?)

Available tools

MatomoOptOut Extension

https://gitlab.com/gruniversal/erwin/-/tree/master/src/extensions/MatomoOptOut

It seems a recent fork of the work from DaSchTour. It has an useful option to disable cookies from Matomo.

Proposed configuration:

wfLoadExtension( 'MatomoOptOut' );
$wgMatomoURL            = 'https://matomo.wikimedia.it/matomo.php';
$wgMatomoJSFileURL      = 'https://matomo.wikimedia.it/matomo.js';
$wgMatomoIDSite         = TODO; // TO BE CREATED
$wgMatomoDisableCookies = true;
$wgMatomoIgnoreEditors  = true;

Problem the repository says that the license is "CC-BY-NC" and this is a proprietary license. Moreover, this is a violation of the MediaWiki license. The correct license should be GNU GPL v2+.

MatomoExtension

https://github.com/DaSchTour/matomo-mediawiki-extension

It seems not actively maintained.

Event Timeline

valerio.bozzolan renamed this task from Adopt Matomo in wiki.wikimedia.it to understand public visits to Adopt Matomo in wiki.wikimedia.it.Aug 31 2021, 2:57 PM
valerio.bozzolan triaged this task as Low priority.
valerio.bozzolan created this task.

Thank you @stefano.cannillo for recalling today the possibility of putting Matomo on wiki.wikimedia.it (for public non-registered visitors on non-special pages)

Hi @stefano.cannillo I think for Matomo-MediaWiki we need to wait at least another week, just to see if the author (David Gruner) is interested in collaborating with us and sharing with us a couple of small fixes (including a legal fix):

T329293: Contact the author of the MediaWiki "erwin/MatomoOptOut" extension to support its work and to fix the licence

Idealmente bisognerebbe sentire Stefano C. per capire se può occuparsi lui della cosa, per assicurarsi che le "success condition" citate in alto siano soddisfabili. Penso di sì. Questo richiederà almeno una mattinata di lavoro.

I'ma available to support the operations on Matomo side.

I suggest

  • One call to plan the necessary actions
  • One operativ call to integrate matomo on media wiki and test id

Please give me your availability.
I'm free on the end of august and the first half of september.