Privacy and compliance

Tracking pixels on healthcare websites: what HIPAA actually allows

Analytics dashboard on a large screen

Most clinic websites were built by marketers, not compliance teams. So it's common to find the Meta Pixel and Google tags on every page, including the booking form and the patient portal login. Those tags were designed for online shops. On a healthcare site they can send far more than a click to an ad platform.

What a pixel actually sends

A tracking pixel is a small piece of code that reports what a visitor does. By default it usually includes the page address, the visitor's IP address, a cookie that identifies the browser and sometimes the text of buttons that were clicked. Put that on a page called "Book a cancer screening" and you have told an advertiser that a specific device is interested in cancer care.

Inside a logged in patient portal it gets worse. The page address can contain appointment types, test names or a patient ID. That is protected health information, and sending it to Meta or Google without a Business Associate Agreement is a disclosure HIPAA does not allow.

What HHS has said

In December 2022 the HHS Office for Civil Rights published a bulletin on online tracking technologies, and updated it in March 2024. The core message: when a tracking tool collects information that is connected to someone's health, care or payment, covered entities and their business associates have to treat it as protected health information.

In June 2024 a federal court in Texas, in a case brought by the American Hospital Association, set aside one part of that guidance. It concerned public pages that anyone can visit without logging in, where the only link to a person is an IP address. The ruling did not touch the rest. Authenticated pages such as patient portals, mobile health apps and any page where a patient enters their details are still squarely covered.

The Federal Trade Commission has also been active. In 2023 it took action against GoodRx and BetterHelp for sharing health information with advertisers, under rules that apply even to companies HIPAA doesn't cover.

Why turning the pixels off isn't the answer

Clinics still need to know which ads bring in patients. Without conversion data, Google and Meta can't optimise campaigns and cost per new patient goes up. The goal is to keep measurement and remove the risk.

How server side tracking fixes it

Instead of letting the browser talk to ad platforms directly, events are sent to a server you control first. That server decides what leaves. A typical setup does four things:

  • Removes the 18 identifiers listed in the HIPAA Safe Harbor standard, including names, contact details, dates and IP addresses
  • Strips page addresses and labels that reveal a condition or treatment
  • Sends only a generic conversion, such as "appointment booked", to Meta's Conversions API or Google Ads
  • Respects consent choices and keeps a log of what was sent

The ad platform still learns that a campaign produced a booking. It never learns who booked or why.

A quick audit you can do today

  • List every script on your booking pages, portal and forms. Your browser's developer tools will show them under the network tab.
  • Check whether any vendor receiving data will sign a Business Associate Agreement. Most ad platforms will not.
  • Look at the page addresses on your site. If they include conditions, test names or patient IDs, treat them as sensitive.
  • Remove tracking from logged in areas entirely.
  • Move conversion tracking to the server before you relaunch campaigns.

None of this is legal advice, and rules keep moving, so involve your privacy officer or counsel. But the technical fix is well understood, and it usually takes weeks rather than months.

Want help with this?

Book a free 45 minute architecture review. We'll look at your setup and send you a written plan.

Keep reading

Related guides

All articles