Free, independent guides since 2010

Analytics & data

Matomo: privacy-friendly analytics with full data ownership

How to use Matomo for website analytics: cloud or self-hosted, installation, cookie-less configuration, goals and e-commerce, importing Google Analytics data, plugins and maintenance.

<guide section="Analytics & data" type="article" read="1 min"/>

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 CloudMatomo On-Premise
HostingBy Matomo, in the EUYour own server
CostMonthly subscriptionFree software + hosting
MaintenanceIncludedYou update and back up
Best forNo technical timeFull control, technical skills

Self-hosting basics

  • A PHP and MySQL/MariaDB hosting account (like most shared hosting).
  • A subdomain such as stats.example.com with 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.