Is Google Analytics HIPAA-compliant?

Written by Inês Pimentel

Published February 20, 2026

Disclaimer: This blog post is not legal advice. Piwik PRO provides privacy-friendly analytics software, but does not provide legal consultancy. If you’d like to make sure you’re in compliance with HIPAA regulations, we encourage you to consult an attorney.

Quick summary

Need analytics that handles protected health information (PHI)? Google Analytics is not an option: Google doesn’t offer a business associate agreement (BAA) for the service and prohibits uses involving PHI.

Sending PHI to Google Analytics may violate the Health Insurance Portability and Accountability Act (HIPAA) if you’re a covered entity or business associate. Choose an analytics provider that supports PHI processing with a signed BAA and appropriate safeguards.

What this covers: why Google Analytics isn’t an option for PHI, where PHI can leak into analytics, what the 2024 court ruling did and didn’t change and how to choose an analytics platform that supports HIPAA compliance.

Who it’s for: marketing, analytics, IT and compliance teams at healthcare providers, health plans and their business associates.

Healthcare analytics comes with extra privacy responsibilities. If your organization is a covered entity or business associate under the Health Insurance Portability and Accountability Act (HIPAA), the way you handle protected health information (PHI) must meet HIPAA requirements. Other healthcare businesses may face different federal or state privacy obligations.

You can’t share PHI with an analytics vendor unless HIPAA permits it. Sensitive information can reach analytics through URLs, page titles, event parameters and integrations.

Can healthcare organizations use Google Analytics?

In short, HIPAA-covered healthcare organizations must not send PHI to Google Analytics. Whether GA can be used elsewhere on a website depends on the data collected, the implementation, and applicable requirements.

If you use Google Analytics or similar software, you’re likely already optimizing your website to serve your customers better. But what about Google Analytics and HIPAA compliance?

Does Google Analytics collect PHI?

Google explicitly prohibits using Google Analytics for any purpose involving PHI if you’re a covered entity or business associate and it doesn’t offer the required business associate agreement (BAA).

Protected health information (PHI) generally means identifiable information about a person’s health, healthcare or payment for healthcare that a HIPAA-covered entity or business associate holds or transmits, subject to statutory exclusions.

Google’s HIPAA disclaimer

Google states that it doesn’t offer a BAA for Google Analytics and doesn’t represent that the service satisfies HIPAA requirements. Its policies prohibit HIPAA-regulated entities and business associates from exposing PHI to the service. 

Why isn’t Google Analytics an option for PHI?

The key limitation is contractual: Google doesn’t offer a BAA for Google Analytics and prohibits uses involving PHI. If your analytics needs to handle PHI, choose a service that supports that use with the required agreement and safeguards.

This means HIPAA-regulated entities shouldn’t pass any PHI/ePHI into Google Analytics. Doing so conflicts with Google’s service policies. It may also count as an impermissible disclosure under HIPAA and trigger breach assessment and notification obligations. Penalties and contractual consequences depend on the circumstances.

Check where advertising integrations send your data

Advertising integrations can send data beyond analytics reporting. Review your linked products, consent settings and destinations. Make sure PHI doesn’t reach services that can’t receive it.

read also

How to make your analytics HIPAA-compliant: A practical checklist for healthcare marketers

Follow this step-by-step HIPAA compliance checklist to ensure your analytics meet healthcare privacy standards and protect patient data.

Can you use Google Analytics if you avoid collecting PHI?

If you want to use Google Analytics without PHI, carefully assess your implementation and the requirements that apply. PHI can appear in unexpected places:

  • URLs containing patient identifiers or appointment details
  • Form fields capturing health-related information
  • Appointment or symptom information linked to an identifiable individual

What did the 2024 court ruling change?

In June 2024, a federal court in the Northern District of Texas struck down part of the HHS guidance on online tracking technologies. The court held that HIPAA is not triggered simply because a tool connects a visitor’s IP address with a visit to a public, unauthenticated page about a health condition or provider. HHS withdrew its appeal on August 29, 2024. The ruling didn’t remove HIPAA obligations for disclosures of actual PHI.

That was a real win for hospital marketing teams, but it is narrower than it sounds. Other HIPAA requirements remain relevant:

  • Authenticated pages, like patient portals, are unaffected. PHI flowing to a vendor from behind a login still needs a BAA.
  • Unauthenticated pages that let people book appointments or use a symptom checker can still involve PHI, depending on what is collected.
  • Using PHI for marketing, as HIPAA defines it, generally needs a valid HIPAA authorization, with some exceptions. A BAA or regular cookie consent doesn’t replace it.
  • OCR has said it prioritizes HIPAA Security Rule compliance when it investigates tracking technology, so the question of whether you can show you assessed the risk still matters.

What other privacy laws apply to healthcare analytics?

Healthcare tracking can create exposure beyond HIPAA. Here are three areas to watch:

  • Private lawsuits
    Website pixels have become a common basis for class actions against healthcare providers, and the exposure isn’t limited to large health systems. 
  • State health-privacy laws
    Washington’s My Health My Data Act and similar state laws reach organizations HIPAA does not cover, and some give individuals a private right of action.
  • The FTC
    The FTC has acted against health apps and services for sharing health data with advertising platforms, using the FTC Act and the Health Breach Notification Rule. Being outside HIPAA doesn’t put you outside federal reach.

Your HIPAA obligations still apply, too. If your analytics provider will handle PHI on your behalf as a business associate, put the required BAA and safeguards in place before processing begins.

A visit to a public health-related page doesn’t, by itself, establish the visitor’s health status. Check what information your implementation actually collects and shares.

PHI turns up in more places than most teams expect, so it pays to be careful about what you collect and who you send it to.

If you’re a HIPAA-regulated entity and keep using Google Analytics, make sure no PHI finds its way into the platform.

Here’s what PHI in URLs looks like:

  • https://healthclinics.com/your_account_john_hill/stomatologist_nelson_green
  • https://healthclinics.com/url8554

The first URL contains PHI: your patient’s name, and their doctor’s name and specialization. The second URL removes those direct identifiers, but that alone doesn’t make the data de-identified. You may still know what the ID represents. Other data in your analytics, like an IP address, may also link it back to a person. If it also reveals a health or healthcare context, it may still be PHI. So keep identifiers out of your URLs, and check what else could connect a visit to a patient.

De-identifying data to remove PHI is technically possible since it would no longer fall under HIPAA, but it presents significant challenges:

  • It’s time-consuming and requires strict organizational processes
  • It’s especially difficult for custom dimensions and event attributes
  • De-identification may limit reporting detail, personalization, journey analysis or conversion attribution, depending on the method and implementation
  • Even minor errors can result in HIPAA violations

Does server-side Google Tag Manager make GA4 HIPAA-compliant? 

Server-side GTM gives you more control over outgoing data, but it doesn’t make GA4 suitable for PHI. You still need to keep PHI out of GA4. Assess your hosting provider and any intermediaries, then check every downstream destination. These controls need testing and ongoing monitoring.

What should you plan for if you keep GA4?

Keeping PHI out of GA4 takes deliberate controls. Here are three reporting and operational points to assess:

  1. Data controls can affect reporting
    Removing or transforming data may change the insights you can get. Check the impact on the journeys, conversions and attribution your team needs to measure.
  2. You need to show that PHI stays out
    Without a BAA for GA4, it’s on your organization to make sure no PHI reaches the service. That means documenting your configuration and reviewing changes. You also need to be able to show that pages, tags and data flows stay outside the scope of HIPAA-covered data.
  3. Every site change is a new risk
    A new landing page, a new form field, a new third-party script. Each one is another chance for PHI to leak into a platform that must not receive it.

If your analytics needs to handle PHI, choose a platform that supports that use with the required agreement and safeguards. The right platform still needs the right configuration.

How to make your analytics support HIPAA compliance

If your analytics platform will handle PHI on your behalf, it needs to sign a business associate agreement (BAA) with you. That’s a prerequisite for collecting and processing PHI through an analytics platform. But a BAA doesn’t guarantee compliance on its own, and it doesn’t lift HIPAA’s restrictions on how you use PHI.

When selecting the right tool, review each platform’s strengths individually and examine your specific needs in terms of functionality, ease of use, resources, and cost.

How does Piwik PRO support HIPAA compliance?

Get deeper patient journey insights with Piwik PRO’s HIPAA-supportive Enterprise analytics, available under a signed BAA and an appropriately configured deployment.

The platform provides a strong analytics foundation supportive of HIPAA compliance through:

  • Business associate agreements (BAA) tailored to your needs
  • Microsoft Azure hosting in the US
  • ISO 27001 certification, plus a SOC 2 Type II report that includes HIPAA in scope
  • Stay in control of your analytics data, with processing and permitted disclosures governed by our agreement. We don’t sell your analytics data or use it for our own advertising.
  • Granular access controls restricting data to authorized personnel
  • Detailed audit logs recording data access and configuration changes

HIPAA support, including the BAA, is part of our Enterprise plan on the Trusted Insights and Secure Intelligence tiers. 

Piwik PRO’s integrated platform includes:

  • Analytics, Tag Manager, and Data Activation in one solution
  • User-friendly interface with customizable dashboards and reports, enabling both basic and advanced analytics
  • Integrations with marketing tools and data storage platforms

Before you share PHI with any integration, check the destination. Our BAA doesn’t automatically cover third-party tools.

Setup is guided, with migration support. Most teams are seeing data within days, and a full implementation usually takes a few weeks depending on complexity. 

See how this works for hospitals and health systems on our HIPAA analytics page.

Piwik PRO vs. Freshpaint

Piwik PRO brings analytics reporting, tag management and data activation together in one platform. Freshpaint focuses on healthcare data collection, governance, integrations and marketing measurement. Both vendors offer BAAs for eligible arrangements. The right choice depends on the reporting, integrations and data controls your team needs. For a feature-by-feature view, see our Piwik PRO vs. Freshpaint comparison.

Best practices for HIPAA compliance in analytics

Start by reviewing your website architecture, analytics implementation, and tag management setup. Work with your legal team or hire an analytics auditor to assess your digital infrastructure.

Key areas to audit include:

Data collection

  • Are you collecting user IDs? How are they used?
  • What PHI appears in URLs, page titles, or query strings?
  • What information do forms collect, and how is it used?

Privacy measures

  • If you treat data as de-identified, have you assessed the full dataset under an appropriate HIPAA method?
  • Do you collect GPS or precise location data?
  • What third-party scripts run on your site?

Vendor management

  • Which tools have access to PHI?
  • Do you have the required BAAs in place with vendors and subcontractors that act as business associates?

Your legal and security teams should monitor regulatory changes from HHS/OCR and FTC, and regularly evaluate your analytics setup for compliance.

Learn how to run marketing campaigns that support HIPAA compliance: Healthcare marketing under HIPAA: What you can and can’t do

What to do instead of Google Analytics

If your analytics needs to handle PHI, choose a service that supports that use. Google Analytics does not offer the required BAA.

If you’re a HIPAA-regulated entity, you can’t send PHI to Google Analytics. While de-identifying PHI is technically possible, the margin for error is thin and mistakes can be costly.

Choose analytics that fits your data and compliance needs. If you need to analyze PHI, look for a provider that supports that use with a signed BAA, appropriate safeguards and clear implementation requirements.

Your next steps should be to:

  • Consult your legal team about BAA requirements
  • Audit your current analytics setup for PHI exposure
  • Evaluate analytics alternatives that can support your HIPAA compliance strategy

Frequently asked questions

Is Google Analytics HIPAA-compliant?

Not for processing PHI on behalf of HIPAA-regulated entities. Google doesn’t offer a business associate agreement (BAA) for the service and prohibits uses involving PHI.

What is a business associate agreement (BAA)?

A business associate agreement (BAA) is a contract that sets out permitted uses of PHI and required safeguards. It’s signed between a covered entity and its business associate, or between a business associate and its subcontractor. A BAA doesn’t establish compliance on its own. If an analytics vendor will handle PHI on your behalf as a business associate, you need a BAA in place before it starts processing.

Why can’t I send PHI to Google Analytics?

The key limitation is contractual: Google doesn’t offer a BAA for Google Analytics and prohibits uses involving PHI. If your analytics needs to handle PHI, choose a service that supports that use with the required agreement and safeguards.

What happens if I pass PHI/ePHI into Google Analytics?

Sending PHI to Google Analytics conflicts with its service policies. If you’re a HIPAA-regulated entity, it may also count as an impermissible disclosure under HIPAA. That can trigger breach assessment and notification obligations. Penalties and contractual consequences depend on the circumstances.

Can I use Google Analytics if I don’t collect PHI/ePHI?

Potentially, provided no PHI reaches Google Analytics and the implementation complies with the service’s terms and other applicable laws. Review URLs, form-related events, and event parameters.

Remember, identifiable information related to a person’s health or healthcare may constitute PHI. Even a pageview on an unauthenticated page may, under certain circumstances, constitute PHI when it’s collected together with identifiers such as an IP address, cookie ID or other online identifiers.

What is considered PHI?

PHI generally means identifiable information about a person’s health, healthcare or payment for healthcare that a HIPAA-covered entity or business associate holds or transmits, subject to statutory exclusions. Examples include diagnoses, treatments, lab results and billing details. Online, that can include form submissions or appointment details linked to an IP address or other identifier.

Did the 2024 court ruling make Google Analytics safe for healthcare?

No. The June 2024 ruling in AHA v. Becerra narrowed one part of the HHS guidance: an IP address combined with a visit to a public page about a health condition is no longer automatically PHI. It did not change anything about authenticated pages, the requirement for a BAA, or the rules on using PHI for marketing. Google Analytics still doesn’t offer a BAA and must not receive PHI from HIPAA-regulated entities.

How can I make my analytics support HIPAA compliance?

You have two options. Use a service that offers the required BAA and safeguards for PHI processing. Or design your data flow so the analytics service receives no PHI. Either way, hosting location alone doesn’t establish compliance.

Which analytics platforms offer a BAA?

Analytics vendors that offer a BAA include:

  • Piwik PRO (Enterprise plan) 
  • Mixpanel (Enterprise plan) 
  • Heap
  • Amplitude
  • Freshpaint (paid plans) 
  • Adobe, for Customer Journey Analytics with the Healthcare Shield add-on, but not Adobe Analytics

Most vendors restrict the BAA to paid or enterprise plans, so check which tier you need before you start an evaluation. Keep in mind that a BAA is a contract, not a setting. You still control what data you send, how you configure the platform and how you use the data afterward.

The comparison of 9 platforms supporting HIPAA-compliant analytics

Compare Piwik PRO, Matomo, Piano Analytics, Adobe CJA, Mixpanel, Amplitude, Heap, Freshpaint and Tealium across three categories: web and digital analytics, product analytics, and data governance and routing. See which sign a BAA, on which plan, and what each one can actually report on.