Why privacy weighs on the choice
The short answer: GA4 is the easier choice if you advertise heavily on Google and accept measuring only users who consent; Matomo is the more cautious choice if you want control over your data and full traffic measurement without a banner, giving up some ad integrations.
In Italy, where we work, the difference comes from two documents issued by the Garante, the data protection authority. Its cookie guidelines of 10 June 2021 treat analytics cookies like technical cookies, so no consent is needed, but only under specific conditions. A decision of 9 June 2022 found a publisher's use of Google Analytics (then Universal Analytics) unlawful because of data transfers to the United States. Similar decisions came from other EU authorities, and many businesses started looking at alternatives.
This article compares the two tools from a technical and operational angle. It is not legal advice: decisions on privacy notices and legal basis should be checked with your privacy adviser.
Features compared
Where GA4 is stronger
- Google Ads integration: key event import, remarketing audiences, data shared with Search Console and Merchant Center.
- BigQuery export, free even for standard properties, useful if you work with SQL.
- Modelling: with Consent Mode, GA4 estimates part of the conversions from users who decline cookies.
Where Matomo is stronger
- You own the raw data: in the self-hosted version data sits in a MySQL or MariaDB database you control, with no retention limits imposed by a vendor.
- Straightforward reports: the interface is closer to the old Universal Analytics, with visits, pages and goals readable without building explorations.
- Extra features such as heatmaps, session recordings, funnels and A/B tests, many of them paid plugins.
In practice, people coming from Universal Analytics find Matomo more familiar. People who need to optimise Google campaigns find GA4 more useful.
Data and transfers outside the EU
With GA4, data is processed by Google. Google states that for users in the EU, Switzerland and the UK, collection goes through servers in those regions and IP addresses are neither logged nor stored: they are only used to derive approximate location and then discarded. You can also disable granular location and device data collection per region.
Transfers to the United States now rely on the European Commission's adequacy decision of 10 July 2023 on the Data Privacy Framework, which allows transfers to certified companies without additional safeguards. The EU General Court dismissed a challenge to that decision in September 2025, but the ruling has been appealed to the Court of Justice. The picture may still change, as it did with Privacy Shield.
With Matomo the issue shrinks. Matomo Cloud stores data in Frankfurt; with Matomo On-Premise you choose where the server sits.
Consent
GA4, as it's normally used, needs consent: Google combines data with its own services and you can't guarantee the conditions regulators set for exempt analytics. As a result GA4 shows only part of your real users; how much depends on your banner and audience. Matomo can qualify as an exempt analytics cookie if you mask at least the last part of the IP, use the data only for aggregated statistics on one site and don't combine it with other sources. Matomo can also run without cookies, with less accuracy on returning visitors.
Matomo Cloud or self-hosted
Matomo Cloud is run by the vendor: no server, automatic updates, many premium features included in the subscription, which scales with pageviews. It's the natural choice for a small business without in-house technical staff.
Matomo On-Premise is free software but needs a PHP server with a database, regular updates, backups and, above a few hundred thousand pageviews a month, report archiving via cron rather than the browser. If nobody looks after it, the install ages and becomes a security risk. For a company site with moderate traffic we would start with the cloud version; self-hosting pays off when you already run managed infrastructure or have strict data location requirements.
Integration with ad campaigns
This is where GA4 is clearly ahead. Linking GA4 to Google Ads lets you import key events as conversions and build audiences without extra steps.
Matomo tracks UTM parameters and gclid, and its Advertising Conversion Export feature produces a conversion export to import into Google Ads and Microsoft Advertising as offline conversions. It closes the data loop, but offers no audiences or modelling. For Meta Ads, either way, you still need the pixel or the Conversions API.
Using both
A setup we often suggest to businesses running campaigns:
- Consent-free Matomo for the site's core numbers: visits, pages, sources, conversions. That's the complete dataset to reason on.
- GA4 with consent, managed through Consent Mode, to feed Google Ads and audiences.
- One reference for decisions: agree upfront which tool is authoritative for each metric, so the inevitable differences don't turn into arguments.
Maintenance doubles. In return you get reliable numbers on real traffic and full tooling for campaigns. If you already use behaviour analytics tools, check their privacy impact too, as we did for Microsoft Clarity. The consent side of GA4 is covered in our guide to Google Consent Mode v2.
Decision matrix
- Significant Google Ads budget and an in-house marketing team: GA4 with Consent Mode, optionally alongside Matomo for core data.
- Corporate site, professional firm, public body: Matomo, cloud or self-hosted, configured for consent-free measurement.
- Contractual data location requirements (healthcare, enterprise clients): Matomo On-Premise on EU servers.
- Ecommerce with campaigns on several platforms: GA4 plus server-side tracking, possibly with a first-party data hub as described in our cookieless tracking strategy.
- Nobody in the company to handle updates and servers: avoid self-hosted Matomo.
For the technical side of server-side GA4, see our guide to GA4 server-side tracking. If you want to work out which combination fits your site, contact us with your traffic, active campaigns and data constraints.
- matomo
- google analytics 4
- analytics privacy
- gdpr
- cookie analitici
- self hosted
- trasferimento dati
Frequently asked questions
Can Matomo really run without a cookie banner?
It can, under conditions set by data protection authorities. The Italian Garante's 2021 guidelines require a masked IP, use limited to aggregated statistics for one site and no data combining by the provider. You still need a banner for any marketing tools on the site. This is not legal advice.
Is Google Analytics 4 illegal in the EU?
No. In 2022 several EU authorities, including Italy's Garante, objected to sites using Universal Analytics because of US data transfers. Since July 2023, transfers to certified companies rely on the Data Privacy Framework. GA4 remains usable with consent, a correct privacy notice and appropriate settings.
Is Matomo cheaper than GA4?
Standard GA4 is free. Matomo On-Premise is free software, but you pay for the server, updates and premium plugins (heatmaps or conversion export, for example). Matomo Cloud is a subscription priced on traffic. The real cost of Matomo is mostly management time.
Can I import Matomo conversions into Google Ads?
Yes, with Matomo's Advertising Conversion Export feature, which produces an export for Google Ads and Microsoft Advertising to import as offline conversions. It works, but it doesn't replace the audiences and built-in optimisation GA4 offers with Google Ads.
Sources
- Linee guida cookie e altri strumenti di tracciamento - 10 giugno 2021 — Garante per la protezione dei dati personali
- Provvedimento del 9 giugno 2022 [doc. web n. 9782890] — Garante per la protezione dei dati personali
- Data protection: European Commission adopts new adequacy decision for safe and trusted EU-US data flows — European Commission
- EU-focused data and privacy — Google Analytics Help
- Data sovereignty: where your analytics data is stored — Matomo
- Advertising Conversion Export — Matomo
Related articles
Analytics & Tracking · 6 min read
Cookieless Tracking Strategies: First-Party Data and Server-Side for the Future of Digital Marketing
The cookieless era is here. Learn how to implement first-party data and server-side tracking strategies to maintain data accuracy, improve campaign performance, and ensure privacy compliance.
Analytics & Tracking · 6 min read
Microsoft Clarity: privacy-compliant heatmaps and session recordings
How to use Microsoft Clarity to find usability problems with heatmaps and recordings, setting up consent and data masking before you collect a single session.
Analytics & Tracking · 12 min read
Google Consent Mode v2 in GA4 and GTM: Practical Guide for Compliance and Data Recovery
Implement Google Consent Mode v2 in GA4 and GTM to support GDPR/DMA compliance, reduce data loss and keep Google Ads measurement reliable.
