HIPAA safe analytics: measuring your website without exposing patients

Updated November 14, 2026 · 6 min read
Short answer

In June 2024 a federal court vacated one part of HHS's guidance on online tracking, the part treating an IP address plus a visit to a public health page as protected information, and HHS later dropped its appeal. The rest of the guidance and the HIPAA rules still apply, so keep third party trackers off logged in, booking and intake pages unless the vendor signs a business associate agreement.

Where the rules stand

In December 2022, the HHS Office for Civil Rights issued a bulletin on how HIPAA applies to tracking technologies, the scripts, pixels and tags that collect information about how people use websites and apps. HHS issued a revised version on March 18, 2024. The revised bulletin said it did not have the force and effect of law.

Hospital associations sued. On June 20, 2024, the U.S. District Court for the Northern District of Texas declared one part of the bulletin unlawful and vacated it. That part, which the court called the Proscribed Combination, was the idea that HIPAA obligations are triggered when an online technology connects an individual's IP address with a visit to an unauthenticated public webpage addressing specific health conditions or health care providers. The court said HHS had exceeded its authority under HIPAA.

HHS filed an appeal and then withdrew it in August 2024. So the vacatur stands. This page reflects the situation as of its update date; check with counsel for anything newer. It is general information, not legal advice.

What the court did, and did not, decide

It is tempting to read the ruling as permission to put any tracker anywhere. It is not.

The court vacated only the Proscribed Combination, which concerns public pages that need no login. In a footnote to its order, the court said the vacatur is not intended to, and should not be construed as, limiting the legal operability of other guidance in the HHS document.

That leaves a lot in place. The HIPAA Privacy and Security Rules still govern protected health information that your practice creates or collects through its website. A patient portal, an online intake form, a bill pay page, or a scheduling flow where a patient enters who they are and why they are coming can all involve protected health information, and the ruling did not address those situations. Sending that information to a vendor without a business associate agreement remains a problem whatever happened in Texas.

State privacy laws can also add their own requirements. Ask counsel which apply where your patients live.

See your Surge Score in about a minute

Does ChatGPT recommend your practice?

The Surge Score measures five things about your practice website: how often ChatGPT, Gemini and Perplexity recommend you, your PageSpeed, your structured data, your indexing and your reviews, each with its evidence and date. Free.

Sort your pages into three groups

A practical way to make decisions, not a legal test, is to sort every page and tool on your site.

  • Lower risk: general public pages that need no login and collect nothing from the visitor, such as the homepage, provider bios, locations, insurance accepted and general condition information. The court's ruling concerned this kind of page.
  • Higher risk: pages where a visitor tells you something about themselves or their care without logging in: appointment requests, booking flows, symptom checkers, candidate quizzes, contact forms, and chat. What the visitor enters can identify them and describe their health.
  • Highest risk: anything behind a login, such as the patient portal, bill pay and intake. Google itself describes authenticated pages as likely to be HIPAA covered.

For the second and third groups, the default should be no third party tracking unless the vendor has signed a business associate agreement and your compliance lead has approved it. For the first group, make a written decision. Google tells HIPAA regulated entities to keep Google Analytics off unauthenticated pages related to the provision of health care services, which is a stricter line than the court drew, and some practices choose to follow it.

Which vendors need a business associate agreement

Under the HIPAA rules, a business associate is a person or company that creates, receives, maintains or transmits protected health information on behalf of a covered entity. If a tool on your website receives protected health information, the vendor behind it is acting as your business associate and you need a signed agreement with them.

Tools to ask about:

  • Online scheduling and booking widgets
  • Form builders and intake tools
  • Chat widgets and AI assistants
  • Call tracking with recording or transcription; see call tracking without losing your number
  • Analytics or tag management services that receive data from those pages
  • Advertising pixels, which is where many practices run into trouble; see retargeting and HIPAA

Some vendors will sign. Some will not. Google, for example, says it does not offer business associate agreements for Google Analytics. A vendor that will not sign should not receive protected health information, so keep its code off the pages that could send it.

Ways to measure without exposing patients

You can still learn what is working. The options, roughly from simplest to most involved:

  1. Measure outcomes where they already live. New patients come from your schedule; calls from your phone system. Many decisions need nothing from the website at all.
  2. Limit analytics to lower risk pages. Run your analytics tool only on pages your compliance decision allows, and count a click on the booking button rather than anything inside the booking flow.
  3. Use tools that will sign an agreement. Some analytics and tag management vendors market themselves to healthcare and will sign business associate agreements. Read the agreement, not just the sales page.
  4. Strip identifiers before data leaves your control. Server side setups can remove or coarsen IP addresses and other identifiers before anything reaches a third party. This needs technical care and documentation, and your compliance lead should review it.
  5. Ask your booking vendor for aggregate reports. Many scheduling tools can report bookings by source without your site sending anything to an ad platform.

Whatever you choose, write it down: which tools run where, why, and who approved it.

A one hour self check

You do not need to be technical to start.

  1. Ask your web vendor for a list of every script, pixel and tag on your site and which pages each one runs on.
  2. Open your appointment request, booking and contact pages. Ask what happens to the information a patient types, and which outside companies receive anything when the page loads or the form is sent.
  3. Look at the address bar after submitting a test form with a fake name. If your test name or email appears in the URL, every tool on that page may be receiving it.
  4. Check that no analytics or advertising tags load on the patient portal, bill pay or intake pages.
  5. Collect the business associate agreements you have, and list the vendors that touch higher risk pages without one.
  6. Write up what you found and agree the fixes with your compliance lead.

The broader picture of HIPAA on websites is covered in HIPAA on your website: what applies and what does not.

Checklist

  • A current inventory of every script, pixel and tag and the pages it runs on
  • No third party trackers on portal, bill pay or intake pages
  • Booking, request and chat pages free of trackers from vendors without a signed agreement
  • Signed business associate agreements on file for every vendor that receives patient information
  • A test form submission checked for names or emails leaking into URLs
  • A written, dated decision on where analytics may run, approved by your compliance lead
  • A yearly review, and a review whenever a new tool is added

Frequently asked

Did the 2024 court ruling make tracking pixels safe on medical websites?

No. The court vacated one specific part of HHS's guidance, about an IP address combined with a visit to a public page about health conditions or providers. It said other guidance in the document was not affected, and HIPAA still governs protected health information collected through portals, forms and booking flows.

Is Google Analytics HIPAA compliant?

Google says it makes no representation that Google Analytics satisfies HIPAA and does not offer business associate agreements for it. It tells HIPAA regulated entities not to use it on authenticated pages or on unauthenticated pages related to providing health care services, and to work with their legal teams on the rest.

Does a cookie banner solve the HIPAA problem?

Do not rely on one. A HIPAA authorization must contain specific elements, such as a description of the information, who receives it, the purpose, an expiration and the patient's signature. A typical cookie banner has none of these, and it does not create a business associate agreement with a vendor. Treat banners as a separate privacy question and ask counsel how they apply to you.

What is the safest way to know which marketing works?

Count new patients in your schedule and calls in your phone system, ask patients how they found you, and limit website analytics to pages and events your compliance lead has approved. You can learn a great deal without sending patient information to anyone.

Sources

  1. Opinion and Order, American Hospital Association v. Becerra, No. 4:23-cv-01110-P (N.D. Tex. June 20, 2024), U.S. District Court for the Northern District of Texas (copy hosted by the American Hospital Association)
  2. HHS OCR Withdraws Tracking Technologies Appeal in AHA v. Becerra, Quarles & Brady LLP
  3. 45 CFR 160.103, Definitions (business associate), Legal Information Institute, Cornell Law School
  4. HIPAA and Google Analytics, Google Analytics Help
  5. Best practices to avoid sending Personally Identifiable Information (PII), Google Analytics Help
  6. 45 CFR 164.508, Uses and disclosures for which an authorization is required, Legal Information Institute, Cornell Law School
Prefer to talk it through?

Book a strategy call with the team.

Twenty minutes. We'll walk through the specific opportunities in your market and what a MedPracticeGrowth engagement would look like for your practice.

AI patient discovery audit

Is AI recommending you, or your competitor?

See who ChatGPT, Gemini and Perplexity recommend to patients in your area.

Free. Built by physicians.