Self-hosted web analytics. Supports multiple websites at once.
Docs: https://matomo.org/help/ or https://developer.matomo.org/
Log in to https://matomo.sassafras.coop/.
You can add more websites via the "All Websites" page, which requires putting a small line of JavaScript on the website.
Upgrades can be done in the browser by signing in and clicking "upgrade" which sometimes requires a database migration as a second step (also in the browser).
Also consider docker compose pull; docker compose up -d.
Tips:
- Env vars are at
matomo/.env - Matomo config is at
matomo/matomo/config/config.ini.php - Docker config is at
matomo/docker-compose.yml - The usual docker commands work e.g.
docker compose up -dto automatically reload containers whose config changed
The ~2023 server was set up via (mostly) following https://www.digitalocean.com/community/tutorials/how-to-install-matomo-web-analytics-on-ubuntu-20-04 with the following modifications:
- Specific IP added to nginx's
sites-available/matomo.conf - Deleted
sites-enabled/defaultto avoid port 80 conflict
See also more info at https://matomo.org/faq/on-premise/installing-matomo/.
TODO:
- Test rebooting server
- Set up nodeping
- Set up cron once it becomes slow
- Investigate more GDPR options
- Run https://mariadb.com/kb/en/mariadb-secure-installation/ which is mostly unnecessary but nice to double check