























If you're building a healthcare app or handling protected health information (PHI), your analytics tool is more than just a product decision – it's a legal one too; using the wrong tool can expose you to serious HIPAA liability.
The good news: there are solid options. This guide covers the best HIPAA-compliant analytics tools available right now, whether you need a Business Associate Agreement (BAA), a self-hosted deployment, or both.
Passed in 1996, HIPAA (Health Insurance Portability and Accountability Act) defines the legal requirements for securing and handling health information, and the severe penalties for failing to do so.
Data protected under HIPAA is called Protected Health Information (PHI), or ePHI if it is digitized. It includes any data that can be used to identify the past, current or future health status of an individual.
This includes test results and diagnoses, but also birthdays, ethnicity, gender and other information. Even an IP address can be considered ePHI under HIPAA.
While similar in some respects to the EU's General Data Protection Regulation (GDPR), HIPAA applies specifically to companies handling the PHI of US-based customers. Companies that also need to comply with the GDPR should see our guide to GDPR-compliant analytics.
There are two ways to be HIPAA-compliant while using analytics tools:
Some services enable HIPAA compliance through the creation of a Business Associate Agreement (US Department of Health). This is a contract with a service provider to ensure that they are jointly compliant and liable for services they provide.
It's worth noting that, because BAAs expose third-parties to increased risk and scrutiny, they are often an expensive option and/or require users to purchase a higher tier of license.
Some analytics tools, such as Google Analytics, don't offer BAAs and are therefore not HIPAA-compliant.

PostHog is a developer platform that combines product analytics, web analytics, session replay, feature flags, experiments, error tracking, user surveys, and a lot more.
It gives you every tool you need to understand user behavior and, unlike typical analytics tools that rely on third-party integrations, all these tools work together seamlessly.
Being an all-in-one platform has two further benefits:
A BAA is available on PostHog's platform packages, which also includes priority support and generous free usage limits for all tools – e.g. 1 million free analytics events every month. You can also self-host the open-source edition of PostHog, but this isn't recommended as it's provided without guarantee or support.

Mixpanel is a product analytics tool with genuinely strong funnel and behavioral analysis – useful for healthcare teams tracking complex user journeys. It added session replay and feature flags in late 2025, which means more functionality under a single BAA than before.
That said, surveys and error tracking still aren't included natively, so you'd likely need additional tools – and separate BAAs – for those.
A BAA is available on Mixpanel's Enterprise plan.
See also: The most popular Mixpanel alternatives

Countly is an analytics platform for mobile, web, and desktop applications that also offers add-ons for remote configuration, A/B testing, and user surveys. Support for app crash and error reports, and push notifications, makes it particularly well-suited to mobile app analytics.
Countly is a privacy-first platform that supports both BAA-based and full data-control approaches. It offers a BAA for HIPAA compliance on both of its deployment options:
This makes Countly a flexible option whether you want a managed BAA-backed deployment or prefer to self-host your analytics for full data control.

Freshpaint isn't an analytics tool per se, it's more of an analytics event tracker and customer data platform (CDP) that's specifically designed for healthcare companies.
Freshpaint sits between data sources (e.g. data warehouses) and third-party data destinations and ensures no PHI is passed between them. This means you can continue to use non-HIPAA compliant tools, such as Google Analytics, safe in the knowledge you're not accidentally passing PHI into them.
Freshpaint is a cloud-only product specifically designed for healthcare companies, so it offers a BAA (available on the Compliance plan, which requires a custom quote).

Piwik PRO is a commercial analytics and customer data platform spun out of the open-source analytics tool, Matomo. As such, it's more a web analytics tool than other options in this list, though you can use it on mobile and web apps. Because it's based on Europe, Piwik PRO is popular among companies also seeking GDPR compliance – it has a built-in compliance manager to assist with this, too.
PiwikPRO offers HIPAA compliance as part of its PRO Enterprise plan, either by signing a BAA or by self-hosting, giving you maximum flexibility.

Amplitude sits somewhere between PostHog and Mixpanel. It's a product analytics tool at its core, but also has extra features such as session replay, feature flags, A/B testing, and Guides & Surveys. It also has anomaly detection, which will automatically flag when certain metrics fall outside expected trends, and creating insights based on natural language questions like "signups in the last 30 days."
Amplitude offers a BAA on its Enterprise plan, which includes advanced security features and custom data governance controls. You can also use its product analytics tool on top of a Snowflake data warehouse, which may be an option for HIPAA compliance if you're already storing analytics data in Snowflake.
See also: The most popular Amplitude alternatives
HIPAA applies to "covered entities," such as healthcare providers who transmit any health information in electronic form, health plans, and healthcare clearinghouses. Mobile apps fall under HIPAA if they store protected health information (PHI) and share it with any covered entity.
HIPAA also applies to "business associates," which, according to the US Department of Health and Human Services, are "a subcontractor that creates, receives, maintains, or transmits protected health information on behalf of another business associate."
Under HIPAA, the analytics tools in this guide would all be considered business associates.
Protected Health Information (PHI) is any information about health status, provision of healthcare, or payment for healthcare that can be linked to an individual.
This includes medical records, laboratory results, billing information, and any other information that identifies an individual and relates to their past, present, or future physical or mental health condition, treatment, or payment for healthcare services.
There's no objectively correct answer. In theory, self-hosting is preferable as it means you don't share any data with third-parties, and thus don't need to sign a BAA at all.
But self-hosting also presents additional risks. You're wholly liable for ensuring your analytics infrastructure is secure, which can be challenging without internal expertise. If that's the case, it may be better to rely on a HIPAA-compliant business associate who has experience hosting analytics at scale.
No. Google Analytics does not offer a BAA and is not suitable for use with protected health information.
If you're in healthcare, you'll need to either use a HIPAA-compliant analytics tool or route your data through a healthcare-specific CDP like Freshpaint that filters out PHI before it reaches non-compliant destinations.
No – Heap does not offer a BAA and is not HIPAA compliant. This has been a long-standing limitation, and it didn't change when Contentsquare acquired Heap.
Contentsquare itself also does not sign BAAs, meaning neither the standalone Heap product nor the broader Contentsquare platform (which also includes Hotjar) is suitable for handling PHI.
If you need session replay or product analytics with HIPAA compliance, you'll need to look at alternatives like PostHog, Mixpanel, or Amplitude.
Based on our research, the best HIPAA-compliant analytics tools right now are:
PostHog is the only tool in this list that covers the full product development stack – product analytics, web analytics, session replay, feature flags, A/B testing, surveys, error tracking, AI Observability, logs, and more – all under a single BAA. All products offer generous free tiers and usage-based billing with no surprise overages.
That matters for HIPAA compliance because every additional vendor means another BAA to negotiate, another data-sharing agreement to manage, and another potential liability surface.
Subscribe to our newsletter
Read by 100,000+ founders and builders
We'll share your email with Substack
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。