HIPAA and Your Practice Website: Tracking, Forms and Analytics

Illustration of a medical practice website with a green shield and padlock over the patient portal, while analytics charts sit on the public pages outside the protected area

Most medical and dental websites were built by someone who knew websites, not health privacy law. The site works, the analytics tag is installed, and the Facebook pixel went in years ago when someone ran a campaign. Nobody has looked at any of it since.

That’s understandable, and it’s also where a lot of practices are exposed. Since late 2022, federal regulators have paid close attention to the tracking technology on healthcare websites: analytics tags, advertising pixels, session recording tools and chat widgets that can send information about patients to companies outside the practice.

This article explains what that guidance says, where the legal picture changed in 2024, and the practical steps we take when we build or review a practice website. It isn’t legal advice. Your compliance officer or healthcare attorney should make the final calls, and we’re always glad to work alongside them.

Why tracking became a privacy issue

Tracking technologies collect information about how people use a website. That’s their whole purpose. An analytics tag records which pages someone visited. An ad pixel reports what they did so ads can be measured or targeted. A session recording tool may capture what they clicked and typed.

On most business websites, that’s ordinary marketing measurement. On a healthcare website, the same data can reveal something sensitive: that a specific person, identified by an IP address, a device ID or an account, looked into a condition, booked a particular kind of appointment, or logged into a patient portal.

When that information goes to a technology vendor, and the vendor can use it for its own purposes like advertising, a practice may be disclosing protected health information without the patient’s authorization. That’s the concern regulators focused on.

What HHS says

The Department of Health and Human Services’ Office for Civil Rights publishes guidance on the use of online tracking technologies by HIPAA covered entities and business associates. A few points in it matter for nearly every practice.

Authenticated pages are the clearest risk

Pages that require a login, such as a patient portal, telehealth platform or online bill pay, generally have access to protected health information. HHS says tracking technologies on those pages must be configured to use and disclose that information only as the HIPAA rules allow.

In practice, that means no general analytics or advertising tags on patient portals, unless the vendor has signed a business associate agreement and the setup is genuinely compliant.

Vendors that receive health information need a BAA

If a tracking vendor receives protected health information on your behalf, HHS treats it as a business associate. HIPAA requires a business associate agreement before that happens. Many popular marketing tools don’t offer one.

HHS states plainly that a website banner asking visitors to accept cookies isn’t a valid HIPAA authorization. If disclosing information to a tracking vendor would require patient authorization, a banner doesn’t provide it.

Infographic titled “Tracking on a practice website” dividing a site into public pages, forms and scheduling, and logged-in patient areas, with guidance for each zone on which tools fit and when a business associate agreement is needed

What changed in 2024

The guidance originally went further. It said that on public pages, which don’t require a login, collecting someone’s IP address along with a visit to a page about a specific health condition could count as protected health information in certain cases.

Hospital groups challenged that part in court. In American Hospital Association v. Becerra, decided June 20, 2024, a federal court in Texas vacated the portion of the guidance covering that combination on unauthenticated pages. HHS updated its page to reflect the ruling.

What that ruling did not do:

  • It didn’t change the guidance on authenticated pages like patient portals
  • It didn’t remove the need for business associate agreements when vendors receive protected health information
  • It didn’t make every tracking setup on public pages safe; a contact form that collects a patient’s symptoms is a different matter from an anonymous page view
  • It didn’t affect state privacy laws, which can apply separately

So the legal picture for public, general information pages is less strict than the original guidance suggested, but the practical risks around portals, forms and scheduling tools remain. A cautious setup is still the sensible one.

Google Analytics and healthcare

Google Analytics is the most common tracking tool on practice websites, so it deserves its own section.

Google’s own guidance on HIPAA and Google Analytics says Google makes no representation that Analytics meets HIPAA requirements and doesn’t offer business associate agreements for it. Google tells customers subject to HIPAA not to use Analytics in ways that could give Google access to protected health information.

That doesn’t mean a practice can’t use Analytics at all. It means Analytics belongs on the parts of the site where it won’t receive protected health information. In practice:

  • Use it on public marketing pages: the home page, services, about, blog and location pages
  • Keep it off authenticated pages: patient portals, bill pay, telehealth
  • Don’t send form contents to it: no names, phone numbers, dates of birth or symptoms in events or page URLs
  • Watch your URLs: if a scheduling tool puts a visit reason or patient detail into the page address, that address ends up in Analytics reports

The same thinking applies to Google Ads conversion tags. We touched on this in Google Ads for Dental Practices: track that a booking happened, never what it was for.

Advertising pixels are the bigger concern

Analytics tools are mostly used for measurement. Advertising pixels from social platforms and ad networks are built to connect website activity to real people for ad targeting. That’s the use HHS was most concerned about.

For healthcare websites, our general approach is:

  • Remove ad pixels from any page with forms, scheduling or logins
  • Question whether you need them on public pages at all, since health-related ad targeting is restricted on the major platforms anyway
  • If you keep them, review what they collect, including automatic event tracking features that can capture button labels and form fields

Google Ads, for example, restricts advertiser-curated audiences like remarketing lists for health-related targeting. If you can’t build those audiences, the pixel that fed them may be giving you very little in return for real privacy risk.

Forms and scheduling: where most problems hide

Contact forms, appointment requests and online scheduling are where public websites most often start collecting health information.

Ask only what you need

A general contact form rarely needs more than a name, contact details and a short message. Avoid asking for symptoms, conditions, medications or insurance details through a general website form. Gather those through your secure intake process.

If patients might volunteer health details anyway, add a short note like “Please don’t include medical details here; we’ll collect those securely when we follow up.”

Know where form data goes

Many website forms email submissions in plain text, store them in a website plugin’s database, or pass them to marketing tools. For a practice, that matters. Use a form provider that will sign a business associate agreement if forms may contain protected health information, and make sure submissions go somewhere appropriate.

Check your scheduling tool

Third-party scheduling tools often come with their own tracking, and some pass details into URLs or analytics events. Ask your vendor whether they offer a business associate agreement, what tracking they include, and whether you can turn it off.

Chat widgets and session recordings

Two other tools deserve a hard look.

Live chat and chatbots invite patients to type questions, which often include health details. If you use one, it should come from a vendor willing to sign a business associate agreement, with clear notices about what not to share, or it should be limited to general questions.

Session recording and heatmap tools capture how visitors scroll, click and sometimes type. On a healthcare site, that can include form entries. These tools are rarely worth the risk on pages with forms, and many practices are better off without them entirely.

Embedded content counts too

Tracking doesn’t only come from tags someone installed on purpose. Embedded content from other companies loads their code, and that code can collect information about visitors.

Common examples on practice websites include embedded video players, maps, review widgets, social media feeds, and booking buttons from third-party platforms. Each one may set cookies or record visits for its provider.

On public information pages, a map showing your office location or a video explaining a procedure is usually reasonable. The risk grows when embeds sit on pages with forms or appointment requests, or when they load on every page of the site through a shared template. Where it’s easy, use privacy-friendly options: many video platforms offer a privacy-enhanced embed mode, and a static map image linking to directions works as well as an interactive map for most visitors.

Working with your vendors

Most practices rely on outside companies for their website, marketing, scheduling and patient communications. Each of them can add tracking, sometimes without telling you.

A few habits keep this under control:

  • Ask before anything new goes on the site. Agree with your web team and marketing vendors that no new tags, widgets or plugins are added without someone checking what they collect.
  • Ask vendors directly about business associate agreements. If a vendor handles anything that might include patient information, get a clear answer in writing about whether they’ll sign one.
  • Keep a simple register. A one-page list of every tool on the website, what it does, which pages it runs on and whether a business associate agreement is in place makes future reviews quick.
  • Review after redesigns and campaigns. New websites and new ad campaigns are when tracking tends to creep back in.

A practical audit for your website

If you haven’t reviewed your website’s tracking recently, here’s a sensible order.

  1. List every tag and script on the site. Your web developer or a tag inspection tool can do this. Include analytics, ad pixels, chat, scheduling, video embeds and anything loaded through a tag manager.
  2. Map your site into zones. Public information pages, pages with forms or scheduling, and logged-in areas.
  3. Remove anything you don’t use. Old campaign pixels and abandoned tools are surprisingly common.
  4. Keep marketing tags to public pages. Exclude forms, scheduling and portals.
  5. Check form handling. Where does each form send data, and does that vendor sign a business associate agreement?
  6. Review URLs and events. Make sure no patient details appear in page addresses or analytics events.
  7. Update your privacy policy so it accurately describes what the site collects.
  8. Document what you did, and repeat the review whenever you add a new tool.

What good measurement looks like

None of this means flying blind. A practice can still measure its marketing well:

  • Count conversions without details. A tag can record that a booking request was submitted without recording anything about the visit.
  • Track calls by source. Call tracking can show which campaigns produce calls without recording the conversation.
  • Ask patients how they found you. Your front desk’s notes are often more useful than any tag.
  • Watch the public pages. Analytics on your service and blog pages still tells you which topics bring visitors and how fast your pages load. Our article on Core Web Vitals covers the speed side.

Common questions

Can a medical practice use Google Analytics?

Many do, on public marketing pages, configured so it doesn’t receive protected health information. Keep it off patient portals and other logged-in pages, and don’t send form details to it.

Does the 2024 court ruling mean tracking is fine now?

No. It removed one part of the guidance about public pages. The guidance on logged-in pages, vendor agreements and authorization still applies, and state laws may add their own requirements.

Not for HIPAA purposes. HHS says a cookie banner isn’t a valid HIPAA authorization.

Where we come in

We build websites for medical and dental practices that measure marketing properly without putting patient privacy at risk, and we review existing sites for tracking problems. Learn more about our medical marketing and dental marketing work, or book a free consultation and we’ll take a look at what’s running on your site.

More articles

Tell us what you want your website to do.

We'll sit down with you, go over your goals and lay out a plan. The first consultation and estimate are free.