Skip to content

Measurement and analytics

Matomo consultant: setup, consent and switching from Google Analytics

On this page

Matomo is a web analytics tool where you decide where the visitor data is stored and who can see it. That makes Matomo an alternative to Google Analytics. Whether the figures can be trusted depends on the setup: the consent, the tags and whether tracking keeps working when the website changes. Carnaby sets up, audits and runs Matomo for companies, and we have developed our own plugin for the tool.

What is Matomo?

Matomo is open source under the GPL licence and was called Piwik until January 2018. The tool measures visits, page views, campaigns, goals and ecommerce much like Google Analytics, but the data does not have to leave your control. Matomo also includes Matomo Tag Manager, which is the equivalent of Google Tag Manager.

Matomo comes in two forms. Matomo Cloud is a cloud service paid for by subscription, and the price depends on how much traffic is measured (Matomo’s price list). Matomo On-Premise is the same software installed on a server that you or your supplier runs. The software itself is free, but some plugins cost money, and running the server, the updates and the backups takes staff time.

Matomo or Google Analytics?

The choice is often about where the data ends up. In July 2023 the Swedish Authority for Privacy Protection (Integritetsskyddsmyndigheten, IMY) decided that four Swedish companies were not allowed to transfer personal data to the USA via Google Analytics in the way they had done. Two of them were fined: Tele2 SEK 12 million and CDON SEK 300,000 (IMY).

Matomo On-Premise Matomo Cloud Google Analytics 4
Where the data is stored On your own server With Matomo With Google
Cost Free software, own hosting Subscription Free in the standard version
Raw data The whole database, including via SQL Via the API and Data Warehouse Connector Via the export to BigQuery
Link to Google Ads Via a paid plugin or your own solution Via a paid plugin or your own solution Built in

Anyone who advertises heavily in Google Ads loses the built-in link when they switch. Matomo has a paid plugin, Advertising Conversion Export, which sends goal conversions to Google Ads. Another option is to let Google Ads’ own conversion tracking handle ad measurement and use Matomo for everything else. A third option is to run both tools in parallel during a transition period and compare the figures.

Measure without cookies until the visitor consents

Matomo can hold back cookies until the visitor has said yes, and still count the visit. The setting is called requireCookieConsent. The stricter requireConsent sends nothing at all to Matomo until the visitor has consented (Matomo’s developer documentation). With the stricter setting, only visitors who have consented are counted. Whoever is responsible for data protection in your organisation should decide which one suits you.

One pitfall concerns withdrawn consent. Matomo stores the consent in a cookie of its own. Some consent management tools only notify Matomo when the visitor says yes, not when they change their mind. Matomo’s cookie then stays in place, and the visitor continues to be tracked with cookies after saying no. Add a tag that calls forgetCookieConsentGiven when statistics consent is missing. Always test the whole flow: accept, withdraw and check which cookies remain in the browser.

How to spot that Matomo has stopped tracking, and how to fill the gap

Sometimes the fault is not in Matomo but on the website: the tracking code disappears. In one case a new version of the website removed the WordPress plugin that added Matomo Tag Manager. The number of recorded visits fell from around 2,000 per weekday to zero, and this was only discovered after twelve days. That is why the tracking itself should be monitored, with alerts when visits suddenly drop.

Data from a gap like this can often be recreated from the web server’s log files, if they are still available. Matomo can import them with its own import tool. Bots and technical requests must first be filtered out, and the result calibrated against a period when normal tracking worked. In the case of the missing plugin, the log import gave around 15 per cent fewer page views than normal tracking during the calibration period. The difference is probably partly due to JavaScript tracking also counting bots that run JavaScript. If the website only measures visitors who have consented, the logs should not simply be imported, because they also contain visits from people who have said no.

What comes with you when you switch to Matomo

History from Google Analytics can be transferred with Matomo’s Google Analytics Importer plugin, but only as aggregated reports. The visitor log, segments and custom reports do not work on imported data (Matomo). Expect comparisons back in time to be coarser in the first year.

If you move Matomo between servers or suppliers, the whole database can come with you, and the visitor log is then kept. Go through websites, goals, segments, users and plugins before the move, and compare the number of visits per day before and after.

What comes with you From Google Analytics From another Matomo
Reports back in time Yes, aggregated Yes
The visitor log No Yes
Segments on old data No Yes
Goals and campaign names Rebuilt Yes

How we can help you with Matomo

  • Setup: Matomo Cloud or your own server, Matomo Tag Manager, goals, ecommerce and campaign tracking.
  • Audit: a review of an existing installation, focusing on consent and cookies and on whether events are measured as intended.
  • Switching and moving: from Google Analytics or between servers, with a before-and-after comparison.
  • Hosting: updates, backups and performance for high-traffic installations.
  • Reports: data from Matomo’s API to Looker Studio, Power BI or BigQuery.

We have also developed Enhanced Attribution, a free plugin that shows on which pages goals are achieved and which traffic sources lie behind the conversions. It is available in Matomo’s plugin directory.

Want to know whether your Matomo is measuring correctly? Contact us, and we will start with a review of the installation.

Want to know where you stand today?

Call us, or fill in the form and we will get back to you.