Custom Home Assistant integration for Matomo Analytics — the leading open-source web analytics platform.
- Config Flow UI — add through Settings → Integrations, no YAML needed
- Per-site sensors — unique visitors, page views, visits, actions for today/week/month
- Live visitors — currently active visitors on the site (last 30 minutes)
- Aggregate stats — combined totals across all Matomo sites (optional)
- Multi-site support — add the integration multiple times, one per site
- Polish & English translations
| Sensor | Periods |
|---|---|
| Unique visitors | today, week, month |
| Page views | today, week, month |
| Visits (sessions) | today, week, month |
| Actions (hits) | today, week, month |
| Live visitors / visits / actions | last 30 min |
| Sensor | Periods |
|---|---|
| All sites — visits | today, week, month |
| All sites — page views | today, week, month |
| All sites — actions | today, week, month |
- Open HACS in Home Assistant
- Click ⋮ → Custom repositories
- Add
https://github.com/abnvle/ha-matomowith category Integration - Search for Matomo Analytics and install
- Restart Home Assistant
- Download the latest release
- Copy
custom_components/matomoto yourcustom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for Matomo Analytics
- Enter your Matomo URL and API token
- Select the site to monitor
In Matomo: Administration → Security → Auth Tokens → Create New Token
The token needs at least view access to the site(s) you want to monitor.
| Option | Default | Description |
|---|---|---|
| Include aggregate stats | Off | Show combined stats for all sites visible to the token |
- Matomo instance with API access enabled
- Matomo 4.x or newer (token sent via POST for security)
- API token with at least view access
| Sensors | Sensors | Setup |
|---|---|---|
![]() |
![]() |
![]() |
Łukasz Kozik — lkozik@evilit.pl


