---
title: Matomo
url: 'https://www.handtrixxx.com/en/wiki/self-hosted/matomo'
markdown: 'https://www.handtrixxx.com/en/wiki/self-hosted/matomo.md'
lang: en
date: '2021-06-01'
description: "Matomo Checked live 2026-11-28: this site's Matomo instance is running (stats.handtrixxx.com). Setup details as recorded at the page date. Anyone working on web presences has likely heard of Google Analytics. With it one can e.g. see from where, under which technical conditions, and when which page…"
---

#  Matomo 

*Checked live 2026-11-28: this site's Matomo instance is running (stats.handtrixxx.com). Setup details as recorded at the page date.*

Anyone working on web presences has likely heard of [Google Analytics](https://en.wikipedia.org/wiki/Google_Analytics). With it one can e.g. see from where, under which technical conditions, and when which pages thereof are accessed. Matomo ([matomo.org](https://matomo.org/)) is an open-source tool that achieves the same and partly even more. This page covers the advantages and gives a working installation example.

![](https://www.handtrixxx.com/user/pages/wiki/02.self-hosted/matomo/matomo.webp)

## Data krake – but visitor-friendly

The essential advantage of using Matomo consists in that one can operate it oneself ([Docker Hub](https://hub.docker.com/_/matomo)) and one thus has full control over which data of the visitor is stored where. This site has run Matomo for several years without issue. It can be set entirely GDPR-compliant ([IT-Recht Kanzlei](https://www.it-recht-kanzlei.de/matomo-richtig-verwenden-dsgvo.html)) and nevertheless granularly: which information is stored. For meaningful analyses one does not e.g. need to store the complete IP address of the visitor – to name only one of the many options. Also tools like Google Analytics rely strongly on the use of digital fingerprints (cookies); more on that shortly. But so much beforehand: with Matomo the use of cookies can on request even be completely deactivated!

## Installation and usage

1. **The Matomo Cloud** – this is how the provider of Matomo earns its money, besides additionally commercially viable plugins. As with Google Analytics, the users' data is entrusted to a third-party provider – exactly what self-hosting wants to avoid.
2. **Integrated as a plugin in a web content management system (WCMS)** – For WordPress and others there is a complete installation of Matomo as a plugin, which can be added via the respectively available marketplace. Here we have no possibility of separating website content and analytics. That is therefore also not particularly performant and only suitable for smaller installations. Besides that of course only works if one uses one of the supported WCMS.
3. **Self hosting** – what this page documents; with the container pre-fabricated by Matomo itself ([Docker Hub](https://hub.docker.com/_/matomo)) it is very easy.

A \\"clean\\" possibility of installing Matomo is thus via Docker Compose containers. A corresponding example file follows below. The reverse-proxy configuration itself is not covered: assume the needed settings for the subdomain [stats.handtrixxx.com](http://stats.handtrixxx.com) exist in the Nginx Reverse Proxy Manager, including a Let's Encrypt certificate.

After all that is set up and brought up (duration approx. 20 minutes), we can log in at the web interface of Matomo for the initial configuration. How that works is described extensively and well [here](https://matomo.org/docs/installation/). Thanks to Docker containers we can completely skip the first part of the instructions and start roughly at the point \\"Super User\\".

## Integrating Matomo into a website/app

As described at the same place on [matomo.org/docs/installation](https://matomo.org/docs/installation/), if we have scrolled a bit there, the use on a first website can now be carried out. Therewith it also becomes clear that with a single Matomo installation several websites/apps can be attached separately from each other or together.

For the integration into a website one can, as proposed by the standard, either use a JavaScript snippet or insert an \\"invisible\\" image via the so-called image tracker. In this way it can now also be set that NO cookie is to be used at the user for tracking. Prime!

## Maintenance

Finally a few tips for the maintenance of our installation. As you, if you have performed an installation yourself, may have already seen, the availability of an update of Matomo is displayed directly in the web GUI and can also be carried out from there.

To keep the containers themselves current, the occasional and also automatable execution of `docker-compose pull` suffices, with subsequent `docker-compose up -d`, from the root directory of your Docker Compose environment.

That is easy.

## Conclusion

The installation itself is a matter of minutes. Compared to other web analytics tools Matomo brings no essential restrictions but plenty of advantages; the types of reports in the web GUI are only marginally flexible, which mostly matters for larger companies. For programmatic use there is a well-documented reporting API ([developer.matomo.org/api-reference/reporting-api](https://developer.matomo.org/api-reference/reporting-api)) exposing the captured data to any application.

 self-hostedanalyticsprivacy

---

## Navigation

- Parent: [Self-hosted](https://www.handtrixxx.com/en/wiki/self-hosted.md)
- Previous: [Immich – Image Archive](https://www.handtrixxx.com/en/wiki/self-hosted/immich-bilderarchiv.md)
- Next: [ncms – Node-RED flat-file CMS](https://www.handtrixxx.com/en/wiki/self-hosted/ncms.md)
