Google Analytics vs Matomo for HIPAA: which side fits a PHI boundary
Google Analytics, as documented, offers no Business Associate Agreement (BAA), and Google's Analytics help page on HIPAA says HIPAA-regulated entities must refrain from exposing protected health information (PHI) to Google through it. Self-hosted Matomo can run inside your own boundary, on your servers or your cloud account, and the obligations for that deployment stay with your organization. The choice therefore turns on two questions: whether tracked pages, URLs, forms or events can carry PHI, and who will sign for each hosting option. A URL path that names a clinic service, a query string with an appointment type, a form field that captures a condition, or an event named after a diagnosis can each turn ordinary analytics data into PHI. Map those fields before you pick the tool.
Matomo Cloud changes who signs. Because the vendor hosts the data, the answer comes from its contract and not from your own infrastructure, so get a written answer on BAA availability before any PHI-adjacent use. Do not assume that a data processing agreement serves the same purpose, even though Matomo publishes one for Matomo Cloud. Matomo's privacy page says the software can be configured to follow laws including HIPAA and advises against processing personally identifiable information, but that is configuration guidance and does not replace a signed agreement. Ask the vendor what it will sign, which data it will hold, and whether the answer covers your specific plan and hosting region. Treat any unanswered question as a blocker for PHI-adjacent tracking.
This page covers only the HIPAA question. The general comparison of features, licensing and cost sits on its own page and is not repeated here. For self-hosted Matomo, the Security Rule in 45 CFR Part 164, Subpart C applies to electronic PHI your covered entity or business associate handles, and it places administrative, physical and technical safeguards on your organization. Bring the analytics stack into your risk analysis, confirm who holds administrative access, and check how logs and backups are retained and protected. Record the decision on each addressable implementation specification in writing, including any equivalent measure you chose. Keep the vendor's written position on BAAs, including Google's documented position, in your evidence file.
How Google Analytics and Matomo compare for HIPAA safeguards
This table compares what Google and Matomo document about the controls a HIPAA-regulated team will be asked to show, row by row. Read each cell as a vendor statement or a check to run, since the covered entity remains responsible for its own safeguards. The main takeaway is that Google Analytics documents that it does not offer a BAA and should not receive PHI, while Matomo can be self-hosted and configured, which moves the evidence work to your team.
| Requirement | Google Analytics as documented | Matomo as documented |
|---|---|---|
| Business associate agreement availability | Google does not offer Business Associate Agreements for Google Analytics, according to its HIPAA help page. | No BAA or HIPAA guidance page found on Matomo's site. Confirm with the vendor in writing. Your organization carries the obligations. |
| Handling of PHI in the data | HIPAA-regulated entities must not expose PHI to Google through Analytics, according to Google's HIPAA help page. | Matomo advises not processing personally identifiable information. Keep PHI out of page URLs, titles, events and custom variables. |
| Legal configuration | Google makes no representation that Analytics satisfies HIPAA requirements. | Privacy page says Matomo can be configured to follow laws including HIPAA. Verify your settings against your counsel's requirements. |
| Data location | Confirm where Analytics data is stored and processed in the Analytics Data Processing Terms before relying on it. | Self-hosted data stays in your database and infrastructure. Matomo Cloud is EU-hosted; check its Data Processing Agreement. |
| Retention | Standard GA4 keeps user and event data for 2 or 14 months, and the setting only affects explorations and funnel reports. | Self-hosted, you control how long data is kept. Confirm retention settings and any purge process in your deployment. |
| Vendor security evidence | Security page cites ISO 27001; confirm the certificate scope covers Analytics. Run a FedRAMP Marketplace lookup. | Review the Matomo security page. Run a FedRAMP Marketplace lookup and record the result. |
| Access control | Google documents user and role assignments on its users and roles page. Review assigned roles against least-privilege needs. | Confirm the roles Matomo provides in your version and who can view reports and raw data. |
| Audit logging and encryption | Confirm audit logging and encryption in Google's Analytics admin documentation before assuming coverage. | Confirm audit logging and encryption in Matomo's admin documentation and in your own deployment, including the database and backups. |
| Copies of data | Standard GA4 BigQuery export is capped at 1 million events a day. Streaming export adds $0.05 per GB in BigQuery charges. | Your data stays in your database; any copies are the backups and exports you create. |
Evidence an assessor asks for from each analytics setup
Google Analytics produces a short, mostly contractual evidence file. Google does not offer a Business Associate Agreement for Google Analytics, so the written decision has to state that PHI cannot enter the property at all, and the remaining artifacts show that your team kept it out.
- Written BAA decision: Record that Google does not offer a Business Associate Agreement for Google Analytics and makes no representation that the service satisfies HIPAA. Cite the Google Analytics HIPAA help page with its access date.
- Contracts on file: Keep the Analytics Data Processing Terms with the account record. Google authors these terms, so your team only has to file them and show who accepted them.
- Tag and event inventory: Export the tags, events and parameters from the property and mark each field as containing no PHI. Google's position is that HIPAA-regulated entities must refrain from exposing PHI through the service, so this inventory is your proof that the rule held.
- Retention and user reviews: Capture the data retention setting from the admin. Standard GA4 properties offer 2 or 14 months, and Google says the setting affects explorations and funnel reports only. Review users and roles against Google's user and role guidance and keep the dated results.
- Backup and hosting records: Google hosts the service, so there is no server sizing record or hosting diagram from your side. If you export to BigQuery, document that copy and its restore test, and note that streaming export adds BigQuery charges of $0.05 per GB.
Confirm with Google in writing whether any infrastructure or version documentation is available, because the public help pages do not provide it.
Self-hosted Matomo produces the broadest evidence set, because your team owns the servers, the database and the configuration. Matomo's privacy page says it can be configured to follow laws including HIPAA and advises against processing personally identifiable information, but no BAA or HIPAA guidance page from Matomo was found, so your organization carries the obligations.
- Hosting boundary diagram: Draw every component in scope: web servers, the PHP application, the MySQL or MariaDB database, backups and the network paths from tracked sites. Mark which hosts can reach the database and where the tracking data is stored.
- Version and upgrade records: Record the running version and the upgrade plan. Matomo 5.14.1, released October 4, 2026, is the latest stable version on the changelog, and Matomo 6.0.0 has been in beta since September 9, 2026, so do not plan production on it without a tested rollback. Matomo 6.0.0 needs PHP 8.1 or newer and MySQL 8.0 or newer or MariaDB 10.6 or newer.
- Server sizing record: Document the sizing choice against expected monthly pageviews. Matomo's requirements FAQ sizes a single server at 4 CPUs, 8 GB of RAM and 250 GB of SSD for up to 1 million pageviews a month, and separate app and database servers at 8 CPUs and 16 GB of RAM each for up to 10 million.
- Backup and restore tests: Keep dated restore tests for the database and configuration files, with the measured restore time. The available facts do not describe Matomo's backup tooling, so confirm the procedure with your platform team.
- Admin settings and decisions: Capture the retention settings, the user and role list, and the tag inventory from the admin. For each of the 22 addressable implementation specifications in Appendix A to Subpart C, record whether it applies, why, and any equivalent measure, as 45 CFR 164.306(d) requires.
Check that the hosting diagram and version record match the production server, because a reviewer will test the diagram against the live system.
Matomo Cloud moves hosting and operations to Matomo, so the assessor's questions shift to the contract and to what the vendor documents. The Matomo Cloud Data Processing Agreement is the contract on file, and it is a data processing agreement, not a Business Associate Agreement. No BAA or HIPAA guidance page from Matomo was found in its public material.
- Data Processing Agreement on file: Keep the signed and dated agreement with the account record, and record who at your organization accepted it. Describe it in the written decision as a DPA that does not establish HIPAA business associate terms.
- Hosting boundary and data location: Matomo Cloud is EU-hosted, which the Matomo Cloud service describes. Ask Matomo to document its hosting locations and subprocessors, and draw your own diagram only for the tracking side.
- Tag inventory and retention: Your team still produces the tag and event inventory showing no PHI fields, and captures the retention settings from the Cloud admin. Confirm which retention options your plan offers.
- Version and upgrade records: Matomo runs the upgrade cycle, so record the version your instance runs and the dates changes were applied. Ask Matomo for its change notices and whether hosted instances follow the same release schedule as self-hosted ones.
- Backup and sizing evidence: Sizing and backup for the hosted instance belong to Matomo. Ask for the documented backup frequency, the restore procedure and any test results it can share, and keep your own restore test for data you export.
Ask Matomo for a written statement on HIPAA and business associate terms before relying on Matomo Cloud, since none appears in its public material.
Where PHI can leak into a tracking setup
The main PHI risk in either tool sits in how the site is tagged and configured, and choosing a product does not remove that work. Google's HIPAA help page says HIPAA-regulated entities must refrain from exposing PHI through Analytics, and Matomo's privacy page advises against processing personally identifiable information. Neither statement tells you what your pages send, so the leak usually starts with the URL. Illustrative example: a record number in a path such as /patients/4471/, or a query string such as ?mrn=, is sent with every pageview unless someone strips it first. Page titles that name a condition or a clinician, and referrers that carry a full address from a portal or email link, can leak the same way.
Form fields and site search are the next source. A search box on a symptom checker or appointment finder can record the typed term as a search parameter, and a button labeled with a diagnosis or a specialty can carry that label into event reports. Custom event names and parameters need their own review because teams add them during campaigns and rarely revisit them. Ask the implementation team for a complete list of tags, triggers, event names and parameters, and mark each one as carrying no patient data, carrying a generic category such as a department, or needing removal before go-live. Also confirm which form fields the tag setup can read, since some configurations capture input values by default.
Treat the review as a control you run whichever tool you pick. An illustrative process: export the tag inventory, script a test journey through the patient-facing site using a dummy account with an obviously fake identifier, and inspect what the analytics collector receives with browser developer tools or the vendor's debugging view. Compare each URL, page title, event payload and referrer against a written rule, then log the test, the expected result, what was sent and the fix. Keep these results in the evidence file alongside the tag inventory and the date of the last change, since an assessor will ask how you know the live configuration matches the design. Confirm with your privacy or legal counsel whether the test covers the mobile app and any server-side tagging you run.
Self-hosted Matomo keeps tracked data inside your trust boundary
Tracked data starts in the visitor browser, which sends page and event data to whichever analytics endpoint the site loads. In the self-hosted Matomo path, that data stays inside the organization's infrastructure: the Matomo application server writes to its own database, and backups hold copies of that database under the same access and retention controls. The Google Analytics path leaves the boundary for Google's collection endpoint, and the dashed arrow marks the rule that PHI must not pass. Matomo Cloud also sits outside the boundary, so its arrow carries a reminder to confirm a business associate agreement (BAA) in writing before any data flows. Check which fields each tag sends, and confirm backup and vendor terms with your compliance team.
Only the self-hosted Matomo path stays inside the organization's boundary.
Setting up Matomo for a HIPAA-regulated site, step by step
This sequence takes a team from an unassessed analytics tool to a Matomo installation that keeps PHI out of tracking and can be evidenced to an assessor. Each step ends with an output you can check, so the risk analysis, hosting decision, tracking tests and documentation package all describe the same system.
Record a risk analysis for each tracked page
Before any tag is deployed, list every page, form and event the site tracks, and record whether ePHI could reach the analytics tool through URLs, page titles, form fields, search queries or custom variables. The compliance lead and the site owner do this together, because the answer depends on how the application builds its pages. The step is done when each tracked page and event has a written entry marked as ePHI possible or no ePHI possible, with the reason and the person who signed it off. Entries marked ePHI possible feed directly into the tracking configuration in step 5.
Choose the hosting boundary before installing
Decide where Matomo runs: in your cloud account, in a data center you control, or on an air-gapped network. Matomo Cloud is an option only after the vendor answers in writing whether it will sign a business associate agreement and how it supports your HIPAA obligations, because Matomo's privacy page says Matomo can be configured to follow laws including HIPAA but does not describe a BAA. The CISO or compliance lead owns this decision, with legal review. Done when the hosting choice, the network path and the list of people and systems that can reach the server are recorded in the system description.
Pick a Matomo version and check requirements
Matomo's changelog lists 5.14.1, released on October 4, 2026, as the latest stable version, and lists 6.0.0 as in beta since September 9, 2026. Version 6.0.0 needs PHP 8.1 or newer and MySQL 8.0 or newer, or MariaDB 10.6 or newer. The platform engineer confirms the web server, PHP and database versions against Matomo's requirements FAQ and checks the release status of 6.0.0 before choosing it for a regulated system. Done when the chosen version and its stack are written into the build record and match the requirements FAQ.
Size the server from the pageview forecast
Use Matomo's requirements FAQ to match hardware to monthly pageviews. A single server with at least 4 CPUs, 8 GB of RAM and 250 GB of SSD covers up to 1 million pageviews a month. For up to 10 million pageviews a month, the FAQ recommends separate app and database servers with 8 CPUs and 16 GB of RAM each. The platform team gets the pageview forecast from the web and marketing teams, adds headroom for campaigns, and confirms storage for backups and logs. Done when the sizing sheet shows the forecast, the chosen topology and the storage plan.
Configure tracking to exclude PHI and test
Set the tag manager and Matomo tracker so that URLs, page titles, form values, search terms and custom dimensions carry no identifiers or health details. Remove or hash query strings that can carry patient data, and disable any plugin that captures form content. Then test a sample of pages: load each high-risk page with test data, inspect the outgoing requests and the stored visits in Matomo, and confirm nothing sensitive appears. If Google Analytics stays on non-PHI pages, document that exclusion and set its retention, which for standard GA4 properties is 2 or 14 months. Done when the test log shows each sampled page clean and every exception is signed off.
Set access control, TLS, encryption, backups and logging
Work through five control areas and record each decision as required or addressable, using Appendix A to Subpart C of the Security Rule as the reference. Cover unique user accounts and role-based access to Matomo, TLS for every browser and API connection, encryption of the database and its backups, tested restores, and audit logs of administrator actions and data exports. For each addressable item, record whether you adopt it and, if you do not, why and which equivalent measure replaces it. Done when the control register lists each decision with its owner, its reason and where the evidence is stored.
Assemble the documentation package and schedule review
Collect the evidence an assessor will ask for: the risk analysis, the hosting decision, the version and sizing records, the tracking configuration and test log, the control register, and the vendor's written answer on BAAs. Keep the release notes for each Matomo upgrade with the package. Then schedule an upgrade review for each new Matomo release, because a self-hosted install is only as current as the updates the team applies. Record who owns that review. Done when the package is stored where compliance can find it and the next review has a named owner and a date.
What buyers ask before hiring help for a HIPAA analytics setup
Can we keep Google Analytics on a HIPAA-regulated site?
Only on pages confirmed free of protected health information, and only with counsel's written sign-off. Google does not offer a Business Associate Agreement for Google Analytics, and it makes no representation that the product satisfies HIPAA requirements. Google's own guidance tells HIPAA-regulated entities to refrain from exposing PHI to Google through it, so the page list must be checked before any tag goes live. Review pages that touch appointments, diagnoses, insurance, login states or form fields first, because identifiers often reach URLs, page titles and event parameters. Keep the sign-off as a dated record that you can show an assessor. Start with Google's HIPAA help page when briefing counsel.
Does self-hosted Matomo need a BAA, and who signs?
Self-hosted open-source software cannot sign a Business Associate Agreement, so the organization running Matomo carries the HIPAA obligations for the electronic protected health information it handles. That organization is the party an assessor will hold responsible for access control, audit logging, backups and the configuration record. No BAA or HIPAA guidance page from Matomo was found, so do not assume one exists. Matomo's privacy page says the product can be configured to follow laws including HIPAA and advises against processing personally identifiable information, which makes configuration a duty for your team. Any cloud provider or data center that hosts the servers has its own terms, so ask each one whether it will sign a BAA and what that agreement covers. Counsel should decide which hosting parties need one.
Does Matomo Cloud remove the need for a BAA?
Not on the information available today. Matomo publishes a Data Processing Agreement for Matomo Cloud, but no Business Associate Agreement was found, so ask Matomo in writing whether it will sign one and on what terms. A DPA addresses data protection duties under privacy law and does not answer the HIPAA business associate question on its own, so ask counsel to read it alongside Matomo's written reply. Confirm where Cloud data is stored and whether Matomo's terms allow PHI to reach its service at all, since its privacy guidance advises against processing personally identifiable information. File the written reply with your risk analysis and vendor records.
How much effort and time does a HIPAA analytics setup take?
The timeline is set in the written scope before work starts, so ask for it in writing with each driver stated. The main drivers are the number of sites, monthly pageview volume, the tag count across those sites, the depth of the PHI review, the hosting choice and how much documentation the assessor will expect. More sites and more tags mean more pages to review and more configuration to test. Higher pageview volume affects server sizing and load testing. A deep PHI review, such as tracing every event parameter and URL pattern, takes longer than a spot check. A hosting model your team already runs, with a clear BAA position from its provider, shortens the procurement work. Ask for each assumption in the scope so you can change one input and see how the plan moves.
What must we provide before a HIPAA analytics engagement starts?
Expect to provide four inputs: the hosting boundary, staff access, risk analysis input and pageview counts. The hosting boundary covers the cloud account, data center or network where the servers and databases will run, plus any provider that touches them. Staff access lists who can log in to the servers, the database, the admin console and the backups, and how that access is approved and removed. Risk analysis input is your existing HIPAA risk analysis, or the systems and data flows it covers, so the new tool can be placed within it. Pageview counts by site, both current and expected, drive server sizing. Also name the counsel who will review the PHI page list and the owner who signs the documentation.
Can our own team set up HIPAA-ready Matomo without a partner?
Yes, if your team already runs PHP and MySQL in production and has time to write the documentation. Matomo runs on PHP behind a web server with MySQL or MariaDB, so skills to install, patch, back up and restore that stack matter most for the technical work. The harder part is the paperwork: risk analysis input, the configuration record, access reviews, backup and restore tests and the PHI review of tracked pages. Those are the items an assessor asks to see, and they take sustained time. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms in your infrastructure, and prepares systems and evidence for compliance assessments. It does not issue audit reports, attestations or certifications, which independent auditors and certification bodies provide. Weigh your team's time against the written scope before deciding.
How DeployOpen helps with the HIPAA analytics decision and setup
DeployOpen helps healthcare teams work through the Google Analytics and Matomo decision, then plans and implements self-hosted Matomo inside your own cloud account, data center or air-gapped network when that is the option chosen. The written scope records which pages, events and data flows are in view, and the evidence your compliance and security teams will need.
How we scope
- The written scope lists the analytics properties, pages, events and any data fields in view before work starts.
- We confirm whether any identifiers could reach the tool, since Google does not offer a BAA for Google Analytics.
- Fixed-scope engagements: scope, deliverables and timelines are agreed in writing before work starts.
How we build
- We deploy self-hosted Matomo in your infrastructure, with access control and data handling settings set to the agreed scope.
- We test that the configured tracking matches the written scope, including whether any personal identifiers reach the database.
- Security testing covers the application, APIs and hosting stack, and findings come with fixes and a retest.
How we hand over
- Documentation covers architecture, the data flow map, configuration decisions and the backup and restore steps.
- We prepare configuration records, access lists and logs for your assessor, who forms the conclusion.
- Ask whether your HIPAA risk analysis will be updated to include the tool before go-live.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, separate from the fixed-scope project.
- Matomo's runtime requirements change between major versions, so confirm PHP and database versions before each upgrade.
- Agree in writing who reviews access changes and how often evidence is refreshed.
Sources and further reading
- HIPAA and Google Analytics ↗
- Matomo privacy page ↗
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗
- Analytics users and roles ↗

