PostHog vs Matomo for HIPAA: which side fits a BAA requirement
PostHog documents a BAA only for PostHog Cloud on named plans, and Matomo publishes no BAA or HIPAA guidance page. A self-hosted deployment of either product therefore leaves every HIPAA obligation with your organization. This matters most when analytics might receive protected health information (PHI) and the compliance lead needs one answer first: will the vendor sign a business associate agreement? PostHog offers the standard BAA with its platform package and a custom one with Enterprise, so confirm which named plan includes what you need. Matomo's privacy page says the product can be configured to follow laws including HIPAA and advises against processing personally identifiable information, which describes configuration and does not create a BAA. This page covers the HIPAA angle only; the general PostHog vs Matomo comparison has its own page.
Decide first whether a signed BAA is a hard gate. If it is, PostHog Cloud under a BAA is the only PostHog route the vendor documents, and its HIPAA page recommends it over self-hosting. If data must stay in your own infrastructure, self-hosting becomes the requirement, and every control becomes yours: HTTPS, the securing guide, and limited access. Self-hosted Matomo has no vendor agreement to point to, so the safeguards under 45 CFR Part 164 Subpart C fall entirely on your team. That subpart covers electronic PHI through administrative, physical and technical safeguards, listed in Appendix A as 18 standards and 36 implementation specifications, of which 14 are required and 22 are addressable. Ask counsel whether your analytics vendor is a business associate at all, since that depends on whether it touches PHI.
Whether analytics will ever hold PHI decides how much the BAA matters. PostHog's HIPAA page says the managed reverse proxy and PostHog AI features are not covered by BAAs and should not process PHI, so check those features on any page in scope even under a signed agreement. Illustrative example: a patient portal that sends a diagnosis as an event property puts PHI into the analytics pipeline whatever the vendor signs. Set a tracking rule that events carry no PHI, enforce it in code review, and keep the evidence an assessor will ask for: the signed BAA, the tracking plan, the access list and the configuration record. Put these questions to both vendors in writing before scoping the work.
Which HIPAA situation points to PostHog Cloud or a self-hosted side
Each situation below points to one deployment side, and each comes with the condition that makes it matter. Read them in order: the first question is whether PHI can reach analytics at all, because that decides whether a vendor agreement is required. The remaining cards cover hosting control, design-level exclusion and the documentation your assessor will ask for.
PHI may reach analytics
If protected health information can reach the analytics tool, a signed business associate agreement is a hard gate, and that points to PostHog Cloud on a BAA-covered plan. PostHog offers the standard BAA on its platform package and a custom BAA on the Enterprise package. Keep the managed reverse proxy and PostHog AI out of PHI scope, since PostHog's HIPAA page says those features are not covered by BAAs and should not process PHI. Confirm the plan tier in writing before any PHI flows.
PostHog HIPAA pageData must stay in-house
If policy or contract requires PHI-bearing data to stay in your own cloud accounts or data centers, the choice moves to self-hosted PostHog or self-hosted Matomo. Neither has a vendor BAA on that path, so full organization responsibility covers safeguards, access, backups, patching and evidence. PostHog's HIPAA page recommends PostHog Cloud under a BAA over self-hosting, so record why you chose otherwise. For self-hosted PostHog, the page's baseline is HTTPS, the securing guide and limited access.
PostHog self-host docsAnalytics never holds PHI
If the event schema and settings are proven PHI-free, analytics never holds PHI and either side can fit. Review every event name, property, URL path, form field and any session replay masking setting for identifiers such as names, dates, contact details and record numbers. For Matomo, follow its advice against processing personally identifiable information, since that advice is part of the configuration it describes. Keep the test results, the schema and the settings as evidence for the assessor.
Assessor needs a vendor page
If your assessor expects a vendor's own HIPAA documentation to cite, PostHog is the side with a published HIPAA page. Matomo's privacy page says it can be configured to follow laws including HIPAA, but the organization running Matomo carries the obligations, and the page does not point to a BAA or HIPAA guidance page of its own. Confirm with Matomo in writing whether such a document exists before you cite one. Treat either vendor page as input to your own risk analysis, since it does not replace that analysis.
Matomo privacy pageWhat the HIPAA Security Rule asks of an analytics tool
The first question is whether the analytics tool ever touches electronic protected health information (ePHI), and in what role. The 45 CFR Part 164 Subpart C Security Rule, sections 164.302 to 164.318, applies to covered entities (health plans, health care clearinghouses and covered health care providers) and to business associates. A web or product analytics tool on a patient portal, appointment booking flow or symptom checker can receive ePHI without anyone intending it, through page URLs, query strings, form field values, custom event properties or session replay recordings. Walk through each page and event the tool would see, and mark any that could link health information to an identifiable person. That inventory decides whether the tool is in scope, and whether the organization runs it as a system it controls or uses a vendor that creates, receives, maintains or transmits ePHI on its behalf.
Appendix A to Subpart C lists 18 standards across administrative safeguards (164.308), physical safeguards (164.310) and technical safeguards (164.312). Those standards carry 36 implementation specifications, 14 required and 22 addressable. Sections 164.314 and 164.316 add organizational requirements and documentation standards, so the evidence set includes written policies, contract terms and records showing that the controls operated. For an analytics tool, the technical safeguards get the closest attention: who can open dashboards and raw event exports, how accounts are provisioned and removed, whether administrative actions are logged, and how data is protected in transit and at rest. The physical standards depend on where the tool runs. A self-hosted install puts the server, its backups and the hosting account controls inside the organization's scope, while a vendor-hosted service shifts much of that evidence to the vendor, which the organization still has to request and review.
An addressable specification still requires a decision. Under 164.306(d), the organization must assess whether the specification is reasonable and appropriate for its environment. If it is not, the organization documents why and implements an equivalent alternative measure where that is reasonable and appropriate. Keep one record per addressable item, covering for example automatic logoff on dashboard sessions and encryption of stored analytics data, because assessors ask for the reasoning along with the setting. No product makes an organization compliant. The Security Rule applies to the whole environment, including configuration, access reviews, training and incident handling. Two questions belong with counsel: whether a business associate agreement is needed with the analytics vendor for the data it would receive, and how the organization's role under the rule is determined for this tool. Settle both before any PHI reaches the tool.
How PostHog vs Matomo for HIPAA compares on BAAs, hosting and access
This table sets what PostHog and Matomo document for HIPAA-relevant requirements side by side, with cells that say what to request in writing where a vendor publishes nothing specific. Read the BAA and excluded-features rows first, because they decide whether either tool can touch PHI at all. The main takeaway: PostHog documents a BAA path, but only on Cloud and on named plans, while Matomo's published material includes no BAA, so the organization carries the obligations on its own.
| Requirement area | PostHog as documented | Matomo as documented |
|---|---|---|
| Business associate agreement | Cloud only. Standard BAA with a platform package, custom BAA with the Enterprise package. Plans named on the page: Boost, Scale, Enterprise. | No BAA or HIPAA guidance page located. Request a written position on BAA availability before any PHI flows. |
| Features excluded from BAAs | Managed reverse proxy and PostHog AI are not covered and should not process PHI. | Matomo's privacy page advises not processing personally identifiable information. Confirm how that applies to PHI. |
| Hosting and recommended deployment | Recommends PostHog Cloud under a BAA over self-hosting. Self-hosting: use HTTPS, follow the securing guide, limit access. | Matomo's requirements FAQ sizes one server at 4 CPUs, 8 GB RAM and 250 GB SSD for up to 1 million pageviews a month. |
| License terms for self-hosting | MIT for most of the repository. The ee directory has its own license and needs a PostHog license for premium features. | GPLv3 for the repository. Premium plugins are paid, so confirm which features your team needs are free. |
| Encryption, access control and audit logs | Confirm in writing: encryption at rest, role-based access, audit log coverage and log retention. | Matomo's security page is the starting point. Request encryption at rest, role-based access and audit log retention in writing. |
| Vendor attestations | Ask which third-party reports cover PostHog Cloud, their dates and scope. Check the security handbook page and ask for the report scope. | Ask for the Matomo Cloud DPA scope and any independent report, and whether either covers PHI. |
Where PHI-bearing events can go, and where the BAA stops
Events start in the patient-facing site or app, where the analytics SDK sends them. The hosting choice splits the path. The PostHog Cloud branch passes a managed reverse proxy, which PostHog's HIPAA page says sits outside BAA coverage and should not process PHI. Cloud is covered only on a named BAA plan. The self-hosted branch stays inside a trust boundary the organization controls, with HTTPS, limited access and logs it holds. Self-hosted Matomo sits in the same boundary with no vendor BAA. Check each hand-off before any event leaves the browser.
Cloud events cross a proxy outside BAA coverage; self-hosting stays in-house.
Evidence an assessor asks for in a PostHog vs Matomo for HIPAA review
Under PostHog Cloud, the assessor's first question is whether a signed BAA covers the plan you actually run. PostHog's HIPAA compliance page says BAAs are offered for PostHog Cloud only, through a platform package for the standard BAA or the Enterprise package for a custom BAA, and it names Boost, Scale and Enterprise. The same page says the managed reverse proxy and PostHog AI features are not covered by BAAs and should not process PHI, so the evidence has to show that those features stay out of scope.
- Signed BAA and named plan: The executed agreement, naming the plan and package under which PHI may flow. Produced by PostHog and your legal team, held by your compliance owner.
- Scope statement: A dated copy of PostHog's description of covered and excluded features, including the reverse proxy and AI features. Produced by PostHog, held by your compliance owner.
- Vendor security documentation: PostHog's security handbook page and any further reports you request under confidentiality terms. Produced by PostHog, held by your security team.
- Event schema showing PHI exclusion: A list of every event and property your application sends, with the fields barred from carrying PHI marked. Produced by your engineers, held by your data owner. PostHog cannot write this record for you.
Check that the executed BAA, the subscription record and the event schema describe the same plan and data flows on the date of the review.
Self-hosting moves the evidence burden inside your own boundary. PostHog's HIPAA page recommends PostHog Cloud under a BAA over self-hosting, and for self-hosted installs it says to use HTTPS, follow the securing guide and limit access. Because PostHog offers BAAs for Cloud only, the assessor will expect your own records for every safeguard that a Cloud vendor would otherwise carry, along with the license records for any premium features.
- HTTPS configuration: Certificate and TLS settings for every public endpoint, kept in your infrastructure repository. Produced and held by your platform team.
- Access lists and role records: Who holds administrative, database and host access, with dated review sign-offs. Produced by the platform and security teams, held by security.
- Patch and backup records: The version running in each environment, upgrade history, and restore test logs. Produced by the platform team, held by operations.
- License records for ee features: The PostHog license covering any feature from the ee directory you enable, plus a list of those features in use. The repository license covers the rest of the code under MIT. Produced by procurement, held by legal and finance.
- Risk analysis mapped to the Security Rule: Your documented risk analysis, with each administrative, physical, technical and documentation standard in 45 CFR 164 mapped to the control and the evidence that meets it. Produced and held by your compliance lead.
Confirm the license terms with PostHog before you enable any ee feature, and refresh the risk analysis after each upgrade.
Matomo's privacy page says Matomo can be configured to follow laws including HIPAA and advises against processing personally identifiable information. Its public materials do not include a BAA or HIPAA guidance page, so the written vendor answer on BAA status is the first artifact to request. The organization running Matomo holds the operational evidence for either deployment, and for Matomo Cloud the Data Processing Agreement is the contract an assessor will read alongside the vendor's answer.
- Written vendor answer on BAA status: A dated letter stating whether Matomo will sign a BAA for the deployment you choose. Produced by Matomo, held by your compliance owner.
- Configuration showing PII controls: An exported record of your privacy settings for IP handling, retention and personal identifiers, dated and tied to the version in use. Produced by your analytics team, held by your data owner. Do not assume the defaults match your policy.
- Cloud DPA where relevant: The Matomo Cloud Data Processing Agreement, if you use Matomo Cloud. Published by Matomo, held by legal, and reviewed by counsel for HIPAA contract requirements, since a DPA is a separate document from a BAA.
- Access and log records you own: Admin user lists, login history and web server logs for the Matomo host, kept under your own retention policy. Produced by your systems, held by your security team. Confirm which log exports Matomo Cloud provides before you rely on them.
Get Matomo's BAA position in writing before any PHI-adjacent data reaches the instance, and keep the configuration export with the access records for the same review period.
How PHI gets into analytics events, and how to keep it out
Most PHI leaks into analytics through channels that look harmless in a tag configuration. Start with URL paths and query strings, because a clinic route such as a patient or appointment path, or a query parameter carrying a record number, is captured on every pageview. Page titles that repeat a patient name or appointment type are the next channel, followed by form field values picked up by automatic form or click tracking. Custom event properties such as a diagnosis category or visit reason are written by developers and rarely reviewed, and user identifiers such as an email address or medical record number, passed as the distinct ID, tie every event to a person. For each channel, the assessor will ask for a control: a documented allowlist of tracked URL parameters, title review in release checks, form exclusion rules, an event property schema approved by the privacy or compliance owner, and pseudonymous platform IDs with no clinical identifiers in them.
Session replay is the channel teams underestimate, because it records what appeared on screen, including text a developer never meant to send. PostHog lists session replay among its products, so the reader must confirm in writing the masking, element exclusion and property filtering options for each product and version in scope, then test them on pages that show clinical data before any real session is recorded. Matomo's privacy page advises not processing personally identifiable information, so for Matomo the control is a decision that no PHI reaches it at all, backed by tag review, configuration exports and periodic sampling of collected data. Confirm with Matomo in writing whether it offers a business associate agreement, since the organization running the software carries the obligations either way. Agree with the assessor in advance which evidence they will accept for each channel, so the controls are designed to produce it.
The evidence an assessor will ask for is a data map of every channel above, the configuration as exported or screenshotted for each product version, test records built from synthetic patient data, and a retest after each release that changes tracking. The reasoning for each control belongs in the administrative safeguards of 45 CFR 164.308 and the documentation standards in 164.316, and where an implementation specification is addressable, 45 CFR 164.306(d) requires the organization to document why a measure is not reasonable and appropriate and which equivalent alternative it uses. Record any channel you cannot mask or exclude as an open risk with a named owner and a retest date. PostHog's HIPAA compliance page says the customer is responsible for ensuring compliance, so read it alongside your own risk analysis before scoping the build.
Setting up PostHog or Matomo for a HIPAA review
This sequence takes a team from the legal question of whether analytics touches protected health information to a documented configuration and an evidence pack. The path depends on deployment: PostHog Cloud needs a BAA for the named plan, while self-hosted PostHog and Matomo put the safeguards and their documentation on the organization. Each step ends with an artifact an assessor can review.
Confirm with counsel whether analytics touches PHI
Before any configuration, counsel or the privacy officer decides whether the analytics tool will receive protected health information and, if so, in what role, such as covered entity or business associate. List the events, page URLs, session recordings and user identifiers you plan to collect, because a URL path or form field can carry health information. Record the decision in writing. This step is done when a signed memo states the role, the data classes allowed and the data classes excluded, and every later step uses that memo as its input.
Request the PostHog Cloud BAA and scope
If you choose PostHog Cloud, PostHog's HIPAA page offers BAAs only for PostHog Cloud, under the platform package for the standard BAA or the Enterprise package for a custom BAA. Ask the vendor which plan carries the BAA, which region will host your data and which features sit outside BAA coverage. The page says the managed reverse proxy and PostHog AI features are not covered and should not process PHI, so disable or exclude them in your configuration. This step is done when the signed BAA names the plan, region and excluded features, and your configuration matches them.
Deploy self-hosted PostHog to the securing guide
PostHog's HIPAA page recommends PostHog Cloud under a BAA over self-hosting, so document why self-hosting is needed before you start. Deploy with HTTPS on every endpoint, follow the securing guide and limit administrative and network access. Size the host to the self-host documentation's recommendation of 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Premium features from the ee directory require a PostHog license on a self-hosted instance, so confirm licensing before go-live. This step is done when a configuration review against the securing guide passes and the deployment record lists the version, sizing and access rules.
Check Matomo requirements and size the server
For self-hosted Matomo, check the requirements for the exact release you run. Matomo 5.14.1 is the latest stable version, and Matomo 6.0.0 has been in beta since September 9, 2026. Matomo 6.0.0 needs PHP 8.1 or newer and MySQL 8.0 or newer or MariaDB 10.6 or newer, so confirm your stack before you select a beta build for a regulated workload. Size the server using Matomo's requirements FAQ. Matomo has not published a BAA, so the organization running it carries the obligations. This step is done when the release, PHP and database versions and sizing decision are recorded together.
Configure PII controls and document each specification
Turn off collection of identifiers you do not need, including full IP addresses, patient-linked user IDs, free-text fields and URL parameters that could carry health information. Matomo's privacy page advises against processing personally identifiable information, and PostHog's HIPAA page limits what its excluded features may process, so treat both as the default. For each addressable implementation specification in Appendix A to Subpart C of 45 CFR Part 164, record whether it is reasonable and appropriate for your environment. Where it is not, document why and the equivalent alternative measure, as 45 CFR 164.306(d) requires. This step is done when each addressable specification has a status, reason and measure that trace to a configuration setting.
Run access and log reviews and assemble evidence
Review administrator and user accounts, single sign-on settings where the platform supports them, and audit or access logs at the cadence your risk analysis sets. Confirm that changes to tracking configuration leave a record. Then assemble the evidence pack: the signed BAA or Matomo's hosting and data handling documents, configuration exports, the decision log, sample access review records and the deployment record. DeployOpen can prepare these controls and evidence for your assessment, but independent auditors and certification bodies issue any attestation. This step is done when an assessor can trace each control to a setting, an owner and a dated review.
What buyers ask before hiring help with a HIPAA analytics setup
Can self-hosted PostHog get a business associate agreement?
No vendor business associate agreement is documented for self-hosted PostHog, so your organization carries the HIPAA obligations itself. PostHog's HIPAA page offers BAAs only for PostHog Cloud: the platform package includes the standard BAA, and the Enterprise package allows a custom BAA. The same page recommends PostHog Cloud under a BAA over self-hosting. For self-hosting, it says to use HTTPS, follow the securing guide and limit access. It also states that the managed reverse proxy and PostHog AI features are not covered by BAAs and should not process PHI. Work that a Cloud BAA would otherwise set out for the vendor stays with your team. Confirm the current position with PostHog in writing before you design around it.
Does Matomo sign a business associate agreement for Cloud or self-hosting?
Matomo does not publish a BAA or a HIPAA guidance page that we could confirm, so ask Matomo in writing two separate questions: whether it signs a BAA for Matomo Cloud, and whether it offers anything for self-hosted use. Matomo's privacy page says Matomo can be configured to follow laws including HIPAA and advises against processing personally identifiable information. That wording does not transfer the obligations to Matomo, so the organization running the platform carries them either way. For the Cloud answer, ask whether the agreement covers PHI, which subprocessors are involved and how the Matomo Cloud Data Processing Agreement applies. Keep the written reply, dated and signed, in your evidence file.
How much effort and time does a HIPAA analytics setup take?
The effort depends on what the tool will see and how it is deployed. Neither vendor's documentation gives a duration, and DeployOpen does not quote one until the scope is agreed in writing. The main drivers are PHI exposure (whether the tool ever receives data that identifies a patient), the deployment model (PostHog Cloud under a BAA, self-hosted PostHog or self-hosted Matomo), the number of sites and event properties to review, the plan choice, and how deep the evidence must go for your assessor. A web analytics setup that keeps PHI out of events is generally a smaller job than a product analytics rollout across patient-facing applications. Ask for the effort broken into design, configuration, testing and evidence, with each phase tied to a deliverable.
What does our team need to provide for a HIPAA analytics setup?
Before work starts, the client team usually needs to provide five things:
- A named owner with authority over the analytics stack and the decisions on what data is collected.
- Counsel review of the BAA position, the PHI boundary and the data flows.
- A data inventory listing every event, property, identifier and third party the tool receives.
- Infrastructure access for self-hosted systems, covering hosts, DNS, TLS certificates and the database.
- Change control so configuration changes, upgrades and access grants are approved and logged.
Without these inputs, the configuration and evidence work tends to stall, because the scope cannot be tested against a documented data map.
Can our own team set up HIPAA analytics without an outside partner?
Yes, if your team already has the operations skills to deploy and maintain the platform and the capacity to write the documentation. The Security Rule in 45 CFR Part 164 Subpart C applies to covered entities and business associates for electronic PHI. Its Appendix A lists 18 standards and 36 implementation specifications across administrative, physical and technical safeguards, of which 14 are required and 22 are addressable. For each addressable specification, you must assess whether it is reasonable and appropriate, and if it is not, document why and implement an equivalent measure where reasonable. That risk analysis, those policies and the Security Rule documentation stay with your organization whether you hire help or not. An outside partner can shorten the configuration and evidence work, but it does not take over the documentation.
What does a DeployOpen quote depend on for this work?
A quote follows from the written scope. DeployOpen does not publish a price list, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Separate the one-time work (architecture, configuration, hardening, testing and the evidence pack) from the recurring costs (vendor plan fees, plus ongoing support, upgrades and continuous testing, which are available as retainers). Vendor fees go to PostHog or Matomo directly, and they depend on the plan and usage you choose. Check the PostHog pricing page for current plan structure. Ask each quote to state which platform and deployment model it covers, how many sites and event properties are included, what evidence is delivered and how a scope change is priced.
Does DeployOpen certify our organization as HIPAA compliant?
No. DeployOpen plans, implements, hardens and documents systems, and it prepares controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those, and the compliance determination for your organization stays with your compliance team and any independent assessor you engage. HHS has published an FAQ on whether organizations must certify their compliance with the Security Rule, and counsel should read it alongside your own assessment plan. What your assessor will ask for is evidence: the risk analysis, policies, configuration records, access reviews, audit logs and the BAA position in writing.
How DeployOpen helps prepare a HIPAA analytics setup
DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside the client's own infrastructure, and prepares controls and evidence for compliance assessments. For PostHog vs Matomo for HIPAA and healthcare, the work starts with where analytics data could carry PHI, then builds and documents the setup so your compliance team can review it. DeployOpen does not issue audit reports, attestations or certifications; independent auditors do.
How we scope
- Written scope that names the analytics tool, hosting model and data types inside and outside the setup.
- Scope confirms whether PHI could reach the tool, and which pages, events and identifiers are excluded.
- Fixed-scope engagements agree deliverables and timelines in writing before any work starts.
How we build
- Self-hosted deployment inside your cloud account, data center or air-gapped network, with HTTPS and limited access.
- SSO, access control, audit logging and data handling controls configured for the analytics tool, where supported.
- Event tracking reviewed for PHI, and PostHog features outside the BAA coverage kept out of scope.
How we hand over
- Documentation of the architecture, data flows, configuration and the shared-responsibility split with the vendor.
- Evidence prepared against the HIPAA Security Rule safeguards an assessor is likely to ask about, such as access and audit controls.
- Written list of open items the organization still owns, such as BAA execution, risk analysis and workforce training.
How we support
- Retainers cover upgrades, backups, continuous testing and ongoing support once the build is handed over.
- Security testing of the analytics setup, followed by a retest once fixes are in place.
- Legal interpretation of BAA terms stays with your counsel, and independent auditors issue any assessment outcome.

