← Alle Anleitungen
Matomo
A self-hosted, privacy-respecting web analytics platform — a fully-featured alternative to Google Analytics where you own 100% of the visitor data instead of sending it to a third party.
Zielsystem: Any Docker hostweb-analyticsprivacyself-hostedOffizielle Website ↗Offizielle Dokumentation ↗
Diese Anleitung basiert auf der offiziellen Dokumentation von Matomo, oben verlinkt — überprüfe dort immer die genauen Paket-/Versionsnamen, bevor du diese Befehle auf einem Produktionsserver ausführst, da sich Distributions- und Projektversionen mit der Zeit ändern.
1Run Matomo with a database via Compose
Matomo needs MariaDB/MySQL for its own data storage.
cat <<'EOF' > docker-compose.yml services: db: image: mariadb:11 environment: MYSQL_DATABASE: matomo MYSQL_USER: matomo MYSQL_PASSWORD: changeme MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - ./matomo/db:/var/lib/mysql matomo: image: matomo:latest depends_on: - db ports: - "8086:80" volumes: - ./matomo/app:/var/www/html restart: unless-stopped EOFdocker compose up -d2Complete the setup wizard
Matomo's installer checks system requirements, connects to the database, and creates your first admin account and website entry.
http://your-server-ip:80863Add the tracking code to your site
Matomo generates a small JavaScript snippet per website you add -- paste it into your site's pages the same way you would Google Analytics' tag.