== 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.
== Proposed solution ==
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 [[ https://en.wikipedia.org/wiki/Do_Not_Track | DNT ]] header enabled
* [ ] (what else?)