Skip to content
HIPAA-Compliant Agency•BAA Signed Before PHI•NHS Digital Standards•WCAG 2.2 AA
HIPAA-Compliant Agency•BAA Signed Before PHI•NHS Digital Standards•WCAG 2.2 AA

HIPAA Compliant Website Analytics for Healthcare: Building the Right Stack

Build a HIPAA-conscious analytics stack for your healthcare website. Compare Matomo, PostHog, GA4, Plausible, and Mixpanel, then configure tracking to reduce PHI exposure.

HIPAA Compliant Website Analytics for Healthcare: Building the Right Stack
Qrolic Health Technical Team
5 min read
HIPAA Analytics
Website Analytics
Healthcare Analytics
Matomo
PostHog
GA4
Plausible
Mixpanel
Server-Side Tracking
Conversion Tracking
Table of Content

Healthcare Compliance Guide

Reviewed and updated for the latest developments in healthcare compliance guide and related healthcare compliance standards.

Healthcare marketing teams still need to know which pages attract patients, which campaigns generate enquiries, and where visitors leave.

The challenge is that standard analytics implementations can collect more information than your marketing team realises. The phrase hipaa compliant website analytics healthcare therefore describes an architecture decision, not simply an analytics product.

An investigation by The Markup and STAT found Meta Pixel on 33 of the top 100 US hospital websites. The investigation helped expose how ordinary marketing tracking could create healthcare privacy concerns when configured around patient activity.

The right approach starts with data minimisation, page-level controls, vendor agreements, and a clear separation between marketing information and health information.

Where OCR's guidance on tracking technology actually stands today

Healthcare organisations should not treat the OCR tracking technology bulletin as a simple instruction to remove every analytics script from every public webpage.

The regulatory position changed after litigation challenged how OCR interpreted HIPAA's treatment of IP addresses and unauthenticated public webpages. Your implementation still needs a documented risk assessment, because the underlying question remains whether your analytics architecture collects, receives, or discloses information that HIPAA protects.

The December 2022 bulletin, and what it originally claimed

In December 2022, HHS OCR published guidance addressing online tracking technologies used by HIPAA-covered entities and business associates.

The bulletin focused on technologies such as cookies, pixels, analytics scripts, and similar tools that could transmit information to third-party vendors.

The concern was not the existence of analytics itself. The concern was what information the technology collected, what the information revealed about an individual, and where that information went.

That distinction matters when you evaluate healthcare website analytics tools for HIPAA requirements. A pageview counter and a URL containing a patient's health condition do not create the same risk profile.

The earlier guidance received particular attention because it treated certain combinations of IP addresses and visits to unauthenticated healthcare webpages as protected health information.

For a practical starting point, review our guide to the HIPAA risks of tracking pixels before deciding which analytics scripts should remain on your website.

Why a federal court partially vacated part of that guidance

In June 2024, a federal district court ruled in favour of the American Hospital Association and vacated the provision that treated IP addresses collected from certain unauthenticated public webpages as automatically qualifying as PHI.

The court found that HHS had exceeded its authority in adopting that particular interpretation. HHS later withdrew its appeal, leaving the court's decision in place.

That ruling does not mean healthcare organisations can install unrestricted tracking technology.

The important distinction is between the specific provision that was vacated and the broader HIPAA obligations that still apply when analytics technology handles protected information.

What this means practically, the underlying HIPAA risk has not gone away

A court ruling changes the legal status of one interpretation. It does not make poor data governance a sound analytics strategy.

Healthcare organisations should still identify what their analytics tools receive, where that information is stored, who can access it, and whether the vendor relationship requires contractual safeguards.

The supplied enforcement data also shows why risk analysis remains important. OCR's Security Risk Analysis Initiative had produced 12 enforcement actions through 2025, with tracking-related findings cited as evidence that organisations had not completed genuine risk analysis.

That makes analytics architecture part of your wider HIPAA compliance programme rather than an isolated marketing decision. Your HIPAA compliance overview and practice-level HIPAA guidelines should therefore connect website analytics with risk analysis, vendor management, access controls, and data handling.

Need to review your healthcare website analytics stack?

Map your tracking scripts, vendor agreements, and data flows before analytics tools expose sensitive patient information.

Talk to our analytics compliance team →

Tool-by-tool: what actually qualifies as HIPAA compliant analytics

There is no universal analytics platform that becomes HIPAA compliant simply because you install it on a healthcare website.

Your choice depends on whether the platform processes PHI, where the data resides, whether a BAA exists when required, and how you configure tracking.

Matomo, self-hosted, no BAA required

Self-hosted Matomo is one of the clearest options for organisations that want direct control over analytics infrastructure.

Matomo states that its On-Premise deployment can be configured for HIPAA use and that organisations hosting the platform themselves do not need a BAA with Matomo because Matomo does not host or access the analytics data.

The important qualification is the hosting environment. Your organisation remains responsible for securing the infrastructure, controlling access, encrypting relevant data, managing retention, and configuring the analytics platform appropriately.

During healthcare implementations, we have seen the value of moving from standard GA4 tracking to self-hosted Matomo when condition-specific URLs were entering third-party analytics systems. (See our Next.js vs WordPress healthcare stack guide for how self-hosted architectures compare.)

PostHog, self-hosted free, cloud tier with a BAA

PostHog provides a self-hosted deployment that organisations can run on infrastructure they control. Its cloud service also offers BAA arrangements for qualifying plans.

That makes PostHog interesting for healthcare organisations that want more product analytics capabilities than traditional pageview reporting.

However, a BAA does not automatically make every feature or configuration appropriate for PHI. PostHog specifically notes that its BAA does not cover every feature, so your implementation still requires careful configuration.

Google Analytics 4, a DPA exists but limited anonymisation

GA4 presents a different situation.

Google states that Analytics customers must not send data that Google could recognise as personally identifiable information or sensitive information. Google also states that it does not offer a BAA for Google Analytics.

For HIPAA-regulated organisations, that creates a fundamental architectural limitation.

A healthcare website may still use GA4 for carefully selected pages where the implementation does not involve PHI, but that requires a deliberate page-level assessment. Authenticated patient areas and healthcare service pages require particular caution.

Plausible, EU based, GDPR native, built to avoid PHI by design

Plausible takes a different approach by avoiding individual-level tracking.

Its documentation states that the platform does not use cookies or collect personal data from visitors, while its analytics focus on aggregated traffic information.

That makes Plausible useful when your primary requirement is understanding traffic sources, popular pages, referral channels, and general engagement without building individual visitor profiles.

It does not replace every product analytics requirement. However, reducing the amount of information collected can materially simplify your healthcare website analytics architecture.

Mixpanel, a BAA tier for healthcare specific use cases

Mixpanel offers a BAA for qualifying customers and positions its platform for healthcare use cases where analytics may involve health information.

This approach suits organisations that need deeper event-based product analytics rather than basic website traffic reporting.

Before implementation, define which events contain health-related information. Your event taxonomy should exclude unnecessary clinical context even when the vendor relationship supports HIPAA requirements.

Did You Know ?

HIPAA compliant website analytics for healthcare typically means self-hosted Matomo or PostHog, where your organisation controls the infrastructure, or a hosted platform with an appropriate BAA. GA4 requires strict controls because Google does not offer a BAA, while privacy-focused tools such as Plausible minimise individual tracking.

Configuring anonymisation correctly, whichever tool you choose

Selecting the right analytics platform is only the first control.

A healthcare website can still create PHI exposure through URLs, event names, query parameters, custom dimensions, session recordings, or user identifiers after selecting a suitable platform.

IP anonymisation and why default settings are rarely enough

IP anonymisation can reduce the information your analytics platform receives, but it does not address every source of sensitive data.

A URL can reveal a health condition. A custom event can reveal an appointment type. A page title can reveal a service the visitor is researching.

The configuration review therefore needs to examine the entire event payload, not just the IP address.

Stripping identifiable URL parameters before they reach your analytics tool

URL structures deserve particular attention.

Consider a website where appointment or referral systems append identifiers, service names, provider names, or other patient-related information to URLs. A standard analytics script can potentially capture that URL unless your application removes or transforms it first.

A safer architecture sanitises URLs before analytics collection occurs.

The same principle applies to query strings, form events, custom dimensions, campaign parameters, and event properties. Collect the minimum information required to answer your marketing question.

Across recent compliance projects, this has meant reviewing analytics payloads at the browser and server level rather than trusting the analytics dashboard alone.

Session replay tools, and why most are not healthcare safe at all

Session replay creates additional risk because the technology can observe more than a conventional pageview counter.

Healthcare forms, search fields, appointment workflows, and patient-facing interfaces can expose information that should never enter a third-party recording system.

Disable session replay on healthcare workflows unless your organisation has specifically assessed the tool, data flow, configuration, and contractual position.

If you need behavioural insight, start with aggregated events rather than recording individual sessions.

Your HIPAA compliant website development architecture should define these analytics boundaries during implementation rather than adding them after launch.

Conversion tracking without firing pixels on health condition pages

Marketing teams still need attribution.

The solution is not to abandon conversion measurement. Instead, separate the information required to measure marketing performance from the information that describes a person's healthcare interests.

Why a direct GA4 or Meta Pixel fire on a condition page creates exposure

A direct marketing pixel can receive information about the page being viewed, the URL, event parameters, and browser context.

On a healthcare website, the page itself can reveal sensitive information.

A visitor researching fertility treatment, addiction treatment, oncology services, or another condition may create a sensitive context simply through page interaction.

That is why a marketing event should not automatically inherit every piece of information available in the browser.

Server-side event tracking as the safer alternative

Server-side conversion tracking moves the decision about what to transmit away from the browser.

Your server can receive a conversion event, remove unnecessary information, validate the event type, and send only the approved marketing signal to the destination platform.

For example, your system might record that a qualified conversion occurred without transmitting the patient's condition, appointment details, or healthcare page URL.

The server becomes the control point between your healthcare website and advertising platform.

Separating marketing conversion events from clinical page content

Build your event taxonomy around business outcomes rather than clinical details.

Useful events may describe actions such as:

  • Contact request submitted
  • Appointment enquiry completed
  • General service enquiry
  • Marketing form completed
  • Campaign conversion recorded

Avoid event names that include diagnoses, treatment categories, provider details, or other unnecessary health information.

Healthcare SEO also benefits from this separation because your healthcare SEO services and E-E-A-T optimisation strategy can continue measuring organic performance without requiring sensitive patient-level information.

The HIPAA-safe approach to ad conversion tracking

Healthcare organisations often reach the hardest analytics decision when marketing teams ask for Meta or Google conversion data.

The technical answer is to create a controlled conversion pipeline rather than allowing advertising scripts to observe the complete patient journey.

Server-side conversions, and what stays on your server

Your application can receive the conversion event first.

The server then applies your approved data rules before transmitting anything to the advertising platform. Sensitive context stays inside your controlled environment.

That architecture also gives your engineering team a central place to log, test, and review outbound events.

Based on our healthcare IT experience, this approach becomes particularly useful when marketing teams need campaign attribution while compliance teams want strict control over third-party data sharing.

What Meta and Google still receive, and what they should never receive

The receiving platform should get only the minimum information necessary for the approved attribution purpose.

That may include a campaign identifier or a carefully controlled conversion event. It should not receive a health condition, patient portal information, appointment details, clinical search terms, or sensitive page URL.

The exact data contract should be documented before development starts.

RxHere is an example of the type of healthcare environment where conversion measurement must coexist with workflows involving sensitive pharmacy and patient information.

Testing your setup before you trust it

Do not validate an analytics implementation by looking only at your dashboard.

Test what leaves the browser and what leaves your server.

A practical validation process includes:

  1. 1.Inspecting browser network requests.
  2. 2.Reviewing analytics event payloads.
  3. 3.Testing healthcare condition pages.
  4. 4.Testing appointment workflows.
  5. 5.Testing query parameters.
  6. 6.Testing referral and campaign parameters.
  7. 7.Reviewing server-side outbound requests.
  8. 8.Checking vendor destinations.
  9. 9.Confirming access controls.
  10. 10.Documenting approved event fields.

This process should become part of your website release workflow whenever analytics tracking changes.

A practical setup checklist for a compliant analytics stack

A useful analytics architecture starts with the minimum data required for your reporting objectives.

Before deploying a new tool or campaign pixel, work through this checklist:

  • Map every analytics and advertising script currently installed.
  • Identify which pages each script can access.
  • Document every vendor receiving website data.
  • Determine whether each vendor requires a BAA.
  • Review URLs for condition-specific or patient-related information.
  • Review query parameters and custom event properties.
  • Disable unnecessary user identifiers.
  • Configure IP handling according to your privacy requirements.
  • Exclude authenticated patient areas from unsuitable analytics tools.
  • Replace browser-side advertising pixels with controlled server-side events where appropriate.
  • Test outbound payloads before production release.
  • Document the final analytics data flow.

Herexa Health provides a useful example of why analytics architecture should be considered alongside the broader HIPAA-compliant platform design rather than treated as a marketing add-on.

The most appropriate stack will depend on your website architecture, marketing requirements, patient workflows, hosting environment, and vendor agreements.

For some practices, privacy-focused analytics may provide everything marketing needs. A larger health system may require self-hosted product analytics, controlled server-side conversion events, and deeper governance across multiple digital properties.

Conclusion

HIPAA compliant website analytics healthcare teams can actually use starts with data architecture, not a product name.

Matomo, PostHog, Plausible, and Mixpanel can each serve different requirements when configured appropriately. GA4 requires particular caution because Google does not provide a BAA for the service.

The bigger decision is what information your website sends to analytics and advertising vendors. URLs, event parameters, page content, identifiers, and conversion signals all deserve the same scrutiny as the analytics platform itself.

A well-designed stack lets your marketing team measure traffic and conversions while keeping unnecessary health information away from third-party systems.

The strongest implementations also make analytics part of the website architecture from the beginning, rather than adding scripts after launch.

Build your analytics stack around healthcare data requirements

A misconfigured tracking pixel can still become evidence in an OCR risk analysis. If your analytics stack has grown through marketing additions over time, now is the right point to map what each tool receives and remove unnecessary PHI exposure.

Talk to our analytics compliance team →

Frequently Asked Questions

Is Google Analytics 4 HIPAA compliant?

Google does not offer a BAA for Google Analytics and states that HIPAA-regulated customers must not expose PHI to Google. GA4 therefore requires strict page-level controls and should not be treated as a HIPAA analytics platform for PHI.

Does Matomo require a Business Associate Agreement?

Self-hosted Matomo does not require a BAA with Matomo when your organisation controls the infrastructure and Matomo does not host or access the data. A BAA may apply to other third parties involved in hosting or processing PHI.

Can healthcare websites use Meta Pixel at all?

Healthcare organisations should use extreme caution with Meta Pixel because browser-side tracking can transmit sensitive page context. Where advertising attribution is necessary, controlled server-side conversion tracking can reduce unnecessary disclosure.

Is the OCR tracking technology bulletin still legally enforceable?

The federal court vacated the provision concerning certain IP addresses from unauthenticated public webpages in June 2024. HHS did not appeal that ruling, but broader HIPAA obligations around PHI and risk analysis remain relevant.

What is the difference between PostHog's free and BAA tiers?

Self-hosted PostHog lets an organisation operate the analytics platform on infrastructure it controls. PostHog Cloud offers BAA arrangements for qualifying plans, but the BAA does not automatically cover every feature or configuration.

Does IP anonymisation alone make an analytics tool HIPAA compliant?

No. IP anonymisation addresses only one category of information. A compliant architecture also considers URLs, events, identifiers, access controls, vendor agreements, hosting, retention, and whether any third party processes PHI.

How does server-side conversion tracking reduce HIPAA risk?

Server-side tracking lets your application filter conversion information before sending an event externally. The advertising platform can receive a limited conversion signal without automatically receiving the healthcare page context or sensitive browser information.

Is Plausible analytics a safe option for a healthcare website?

Plausible is designed around aggregated analytics without cookies or individual visitor tracking. That can reduce privacy risk, but your organisation should still assess the complete implementation and avoid sending identifiable PHI through any analytics configuration.

Qrolic Health Technical Team

Qrolic Health Technical Team

Updated for 2026 Compliance Guidance
Qrolic Health - Healthcare Website Design Specialists

Qrolic Health supports healthcare organisations with analytics architecture, healthcare website development, and privacy-conscious digital systems designed around clinical, operational, and marketing requirements.

Qrolic Health - Healthcare Website Design Specialists

Ready to Build Your Healthcare Platform?

Work with a team that understands HIPAA, accessibility, and healthcare digital experiences from day one.

Service we offer:
HIPAA-Compliant Websites
Healthcare Website Design
Telehealth Platforms
Website Redesign & Migration
Healthcare SEO