== Preamble ==
Currently, some websites of [[ https://www.wikimedia.it/ | Wikimedia Italia ]] has server-side analytics thanks to [[ https://en.wikipedia.org/wiki/AWStats | AWStats ]] while the main website is not covered by this system (it's hosted in another server and we have not access to the log files) and moreover we are currently dropping other kind of third parts trackers since this:
* {T270616}
== Description ==
To fit:
* fundraising needs (monitor campaigns)
* IT department needs (monitor performances)
It was proposed to deploy a [[ https://en.wikipedia.org/wiki/Matomo_(software) | Matomo ]] installation in one of the servers owned by our local Wikimedia chapter. This will be done to keep data out of the reach of third-party companies (mostly non-European companies) and simplify our privacy policy and simplify the work for our GDPR manager.
The new installation is expected to be available here:
https://matomo.wikimedia.it/
Some things that we neeed:
* [X] request domain creation
* [ ] prepare the webserver
* [ ] deploy Matomo in our websites
We can adopt the same server that is currently hosting https://cinquepermille.wikimedia.it/.
```
$ nslookup cinquepermille.wikimedia.it
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: cinquepermille.wikimedia.it
Address: 54.38.36.173
```
So this should be the expected DNS entry to be created:
```
name=wikimedia.it.
matomo IN A 54.38.36.173
```
== Notes ==
Some time ago I developed a very, very, very minimal, efficient and secure Matomo plugin that also strictly respects the [[ https://en.wikipedia.org/wiki/Do_Not_Track | DoNotTrack ]] browser preference. I like it because it has no preferences, it's behavior can be changed only if you have command line access to the `wp-config.php`.
This KISS WordPress-Matomo plugin is online here:
https://gitpull.it/source/wp-matomo/
Mirror here:
https://github.com/valerio-bozzolan/wp-matomo/
Here the project workboard:
https://gitpull.it/tag/wordpress_matomo/
----
This is partially related to these:
* {T266998}
* {T270616}