If there’s one thing healthcare websites need to know when evaluating an analytics solution, it’s this: Google Analytics (GA4) is not a HIPAA-compliant choice.  

The risks of GA4  

GA4 provides insights into user interactions across websites and apps and can track users across different platforms, giving you a unified view of interactions. It focuses on events, like page views, clicks, scrolls, and purchases, and gives granular insights into user actions. It also uses AI to predict trends and user behavior.  

There’s no doubt that GA was an early pioneer of website analytics — but there’s also no doubt that it doesn’t comply with HIPAA (the Health Insurance Portability and Accountability Act) for a few critical reasons, chiefly because Google won’t sign a Business Associate Agreement for it and tells HIPAA-regulated organizations not to send it protected health information (PHI).  

This might seem obvious to many in the business of dealing with patient data. Still, even with tons of secure web analytics options out there, plenty of hospitals violate HIPAA with their web tracking tools. In 2022, an investigation by The Markup found that 33 hospitals were sending patient data to Facebook. 

And when not doing the right thing puts you at risk of a class action lawsuit, “better safe than sorry” carries particular weight.  

Unauthenticated pages can still collect PHI  

The US Department of Health and Human Services (HHS) gets into some detail from its point of view, stating that “Tracking technologies on a regulated entity’s unauthenticated webpage that permits individuals to schedule appointments or use a symptom-checker tool without entering credentials may have access to PHI in certain circumstances.”  

HHS poses this scenario: If an individual visits a regulated entity’s web page and makes an appointment or enters symptoms into an online tool, some tracking technologies could collect the individual’s email address or reason for seeking healthcare. That’s PHI, and passing it to a tracking vendor without a BAA or the patient’s authorization is an impermissible disclosure under HIPAA.  

Also, HHS states: “... if tracking technologies on a regulated entity’s patient portal login page or registration page collect an individual’s login information or registration information, that information is a disclosure of PHI and is subject to the HIPAA Rules.” 

Part of that guidance has since been narrowed. In June 2024, a federal court in American Hospital Association v. Becerra vacated the portion that treated an IP address combined with a visit to a public page about a health condition as PHI on its own, and HHS later dropped its appeal. The rest of the guidance stands, including the scheduling, symptom-checker, and patient portal examples above. If a visitor enters health information on a public page, or signs in to an authenticated one, the tracking question hasn’t changed.  

Then there’s the issue of third-party data sharing. GA4 often passes data to Google, and Google uses that data for analytics and marketing. HIPAA requires that any sharing of PHI be strictly controlled and used solely for permitted purposes. PHI can be shared with the individual (it’s their data, after all) or within the entity itself for treatment, payment, and healthcare operations (e.g., if your doctor orders an X-ray, your PHI is shared with the radiology and billing departments).  

But GA4 has no guardrails. Put another way, it’s like a fishing net that’s designed to catch all kinds of fish, indiscriminately: large, small, inedible, edible, etc. But the fishing net doesn’t know not to catch no-take species, like manta rays and sea turtles. That’s what GA4 is like: It casts a wide net and gathers all types of user data without distinguishing between general information and PHI.  

To be clear, Google isn't trying to pull the wool over anyone’s eyes. They’re very transparent: “Google makes no representations that Google Analytics satisfies HIPAA requirements.”  

Business Associate Agreements  

For any entity to be HIPAA-compliant while using a third-party service (like a data analytics provider), a Business Associate Agreement (BAA) must be in place. This agreement ensures that the third party (the provider) will safeguard PHI according to HIPAA standards (it will protect the metaphorical manta rays and sea turtles).  

Google’s clear on this point, too: It doesn’t provide a BAA for GA4, which makes it non-compliant for handling PHI. Without a BAA, any use of GA4 in contexts involving PHI violates HIPAA regulations.  

Google’s own guidance follows from that. HIPAA-regulated organizations shouldn’t put Google Analytics tags on authenticated pages, or on public pages related to healthcare services. They should work with legal counsel to decide which pages are safe to tag. That’s the closest thing GA4 has to a HIPAA-compliant setup, and it means leaving GA4 off the pages healthcare marketers most want to measure.  

HIPAA requires a patient’s written authorization for most uses of PHI outside treatment, payment, and healthcare operations, including most marketing. A cookie banner isn’t a HIPAA authorization, so GA4’s consent settings don’t solve the problem. Visitors may not know how far their interactions are tracked, and agreeing to analytics cookies isn’t the same as authorizing the disclosure of health information. 

Alternatives that comply with HIPAA and keep patient data safe 

If you’re a healthcare organization searching for a web analytics provider, choose one that will sign a BAA, lets you retain ownership of all collected data, includes built-in privacy controls, and demonstrates strict data security measures such as ISO 27001:2022 certification. Siteimprove’s Trust Center sets out its ISO/IEC 27001:2022 certification and when it signs BAAs for Analytics. Then, once you’ve got your analytics platform in place, minimize the amount of data that you collect. When you collect only essential data, you reduce the risk of inadvertently handling PHI.  

Other best practices include encrypting data, of course, so that all data is safe whether it's in transit or at rest; regular audits of data collection to identify and mitigate risks related to PHI exposure; and creating and maintaining clear and comprehensive privacy policies that inform users about data collection practices and patient rights. For how healthcare teams still measure campaigns once PHI is out of the analytics stack, see marketing without violating HIPAA and how to prove healthcare marketing attribution.  

It can be tempting to consider going with the biggest name in analytics, but not at the risk of running afoul of HIPAA. The risks are too great, whether it’s a lack of a BAA, the potential for PHI leakage, or inadequate consent mechanisms. No matter your business goals, safeguarding patient privacy and maintaining trust are at the core of your success.