Matomo (formerly Piwik) is the best-known open-source alternative to Google Analytics. It is used by governments, universities and businesses that want detailed analytics without sharing visitor data with an advertising company. See analytics tools compared.
Cloud or self-hosted
| Matomo Cloud | Matomo On-Premise | |
|---|---|---|
| Hosting | By Matomo, in the EU | Your own server |
| Cost | Monthly subscription | Free software + hosting |
| Maintenance | Included | You update and back up |
| Best for | No technical time | Full control, technical skills |
Self-hosting basics
- A PHP and MySQL/MariaDB hosting account (like most shared hosting).
- A subdomain such as
stats.example.comwith HTTPS. - Run the web installer, add your site, copy the tracking code.
- Set up a cron job for report archiving on busier sites.
- Keep Matomo updated (see software updates).
Privacy configuration
- Disable cookies (
_paq.push(['disableCookies'])) if you want to avoid consent requirements. - Anonymise IP addresses (two bytes).
- Respect “do not track” if you choose.
- Set a data retention period and delete old raw logs.
- Offer an opt-out in your privacy statement.
Goals and e-commerce
Define goals for form submissions, downloads or visits to a thank-you page; enable e-commerce tracking for shops. Funnels, custom dimensions and A/B testing are available as (premium) plugins. See conversion tracking.
Frequently asked questions
Is Matomo free?
The self-hosted On-Premise version is free and open source, with paid premium plugins. Matomo Cloud is a paid hosted service.
Can Matomo work without a cookie banner?
When configured without cookies and with privacy settings such as IP anonymisation, some data protection authorities consider it exempt from consent. Check the guidance in your country.