Why this became urgent
In 2022 the Office for Civil Rights published guidance stating that information collected by online tracking technologies on a covered entity's website can be protected health information, including when the only facts are an IP address and the page visited. The reasoning is simple: an IP address plus a page about a specific condition is enough to indicate that an identifiable person sought care for that condition. Enforcement actions and class actions followed, and healthcare sites are now a standing target. Platform choice also decides which vendors handle form data, as our guide on website platforms for a medical practice explains. A records request form should ask for identity and contact details only, as described in our guide to a medical records request page.
The practical consequence is not that you must stop measuring. It is that the identity of the visitor and the health meaning of the page must never travel together to a vendor who has not signed a business associate agreement. Accessibility is the other legal topic for practice sites; see ADA web accessibility for a medical practice website. After the setup is safe, our guide to reading GA4 reports each month shows which few numbers to review. When you count clicks on a sign-in button, record only the click itself, as described in our guide to a patient portal login page that never asks for health details.
What counts as an identifier
- Name, email address, phone number, date of birth, and full address — the obvious ones.
- IP address. OCR's guidance is explicit that an IP address can be an identifier in this context, which is what makes ordinary analytics risky on condition pages.
- Advertising cookies and device identifiers that persist across visits.
- A precise appointment time combined with a location.
- Free-text form fields where a patient describes why they are calling. This is the most common leak we find.
A configuration that works
- 1General pages: standard analytics is acceptable, with IP anonymization on and no advertising features enabled.
- 2Condition pages: no advertising pixels at all. If you need page-level counts, use a server log or a privacy-preserving analytics tool that stores no personal data.
- 3Forms: collect the minimum. Name, phone, and a reason field limited to fixed choices such as 'new patient' or 'existing patient' — never free text describing symptoms.
- 4Thank-you page: fire the conversion here, but keep the URL generic. A thank-you URL containing the service name puts the condition into the referrer of every downstream request.
- 5Calls: route the tel: link through a tracking number from a vendor who signs a business associate agreement, and turn recording off or keep recordings inside that agreement.
- 6Ads: import conversions from the server with no personal data attached, and keep personalized-advertising features off.
Things practices get wrong
- A Meta pixel on a page about a specific treatment. This is the fact pattern in most of the health-tracking litigation of the last three years.
- Google Ads enhanced conversions left on, quietly hashing and transmitting patient email addresses.
- A chat widget that stores transcripts with no business associate agreement in place.
- Session-replay tools recording form input on an intake page.
- A cookie banner that says consent was obtained when the tags fire before anyone clicks anything.
- Appointment confirmation URLs containing the service name, the provider, and a booking identifier.
You can still measure what matters
Practices assume compliance means flying blind. It does not. You can still know how many calls came from the Google Business Profile versus organic search versus ads, how many forms each channel produced, which pages produce contacts, and what a booked patient costs by channel. What you give up is the ability to tie a specific human to a specific condition inside an advertising platform — which was never something a practice needed in order to run marketing well. Scheduling tools raise the same privacy questions; see online appointment scheduling on a medical practice website. Secure delivery matters as well, so make sure every page and form loads over HTTPS, as explained in HTTPS, SSL certificates and mixed-content warnings, though encryption alone does not settle compliance questions. Pages that collect completed intake answers need extra caution, and publishing new patient forms online without exposing patient data shows how to separate those pages from your normal analytics. Email is the other place where tracking and privacy collide, so read how a practice can write an after-visit follow-up email without health details before adding open tracking to any patient message. A dedicated confirmation page is the cleanest place to count a lead, and our guide to the thank-you page after a contact form and how to track it walks through the setup. Staff will be asked about speaking with relatives, so a page that explains who the office can speak with about a patient's care offers wording that stays kind and protects privacy. The tag container is where most tracking problems start, so follow the tag-by-tag checklist for Google Tag Manager without sending patient data when you review your own setup. Keeping your own staff and test leads out of analytics is a separate clean-up from privacy, covered in excluding staff and internal traffic from Google Analytics 4 on a medical practice website. Before a web company adds any new script, ask it these eight questions and keep the answers in writing.
How to set up HIPAA-safe tracking on a medical website
01Inventory every tag on the site
List every analytics, advertising, chat, heatmap, and scheduling script currently loading. Most practices find tags nobody remembers installing. Anything you cannot account for comes off.
02Classify your pages by sensitivity
Separate general pages — home, about, contact, hours — from condition-specific pages such as a hormone therapy or addiction treatment page. Visiting a condition page plus an identifier is the combination that creates protected health information.
03Strip identifiers out of URLs and forms
No names, emails, phone numbers, appointment reasons, or condition names in query strings. Turn off automatic form-field collection in analytics and disable any feature that captures typed input.
04Move conversions server-side with no personal data
Send a conversion event from your server with a random event identifier and no name, email, phone, or IP-derived identity. The ad platform learns that a conversion happened, not who it was.
05Turn off enhanced and automatic data collection
Disable enhanced conversions, automatic hashed email collection, remarketing lists built from condition pages, and any personalized-advertising feature that segments by inferred health status.
06Get the paperwork right
Sign a business associate agreement with every vendor that could receive protected health information — call tracking, scheduling, chat, CRM. Most advertising platforms will not sign one, which is precisely why identifiers must never reach them.
07Verify what is actually leaving the browser
Open the network tab on a condition page, submit a test form, and read every outbound request. If you see an email address, a phone number, or a condition name in any payload, the setup is not finished.
Frequently asked questions
Is Google Analytics HIPAA compliant?
Google does not sign business associate agreements for Analytics, so it is not compliant for anything that could be protected health information. It can be used on general pages with advertising features and identifiers off. It should not be used on pages that reveal a specific condition a visitor is seeking care for.
Can a medical practice use the Meta pixel?
Only on pages with no health meaning, and never with identifiers. Placing a Meta pixel on condition-specific pages is the exact pattern behind most health tracking lawsuits since 2022. For most practices the safe answer is to keep it off the site entirely and use server-side conversions instead.
Does an IP address count as protected health information?
OCR's guidance says it can. An IP address paired with a visit to a page about a specific condition may indicate that an identifiable individual sought care for that condition, which brings it inside the definition. That is why condition pages need different treatment from your homepage.
What is server-side conversion tracking?
Your server, rather than the visitor's browser, tells the ad platform a conversion happened. Because you control the payload, you can send a random event identifier and a value with no name, email, phone, or address. The platform can optimize; it learns nothing about the individual.
Do I need a business associate agreement with my call tracking vendor?
Yes, if the vendor could receive protected health information — and a tracked call to a medical practice usually qualifies, especially with recording or transcription enabled. Several call tracking vendors sign one. Use one that does, and disable recording if you do not need it.
Sources
- U.S. Dept. of Health & Human Services, OCR — Use of online tracking technologies by HIPAA covered entities
- U.S. Dept. of Health & Human Services — Business associate contracts
- Federal Trade Commission — Health Breach Notification Rule
Keep reading
- Email Marketing Compliance for a Medical PracticeThe same PHI question applied to email instead of website tracking.
- Text Message Marketing Compliance for a Medical PracticeThe same PHI question applied to text messaging instead of website tracking.
- Healthcare Ad Compliance ChecklistThe full compliance picture this tracking guidance is one part of.
- How to Measure ROI on Medical Practice MarketingHow this HIPAA-safe tracking setup feeds an actual ROI calculation.
- Track Phone Calls from a Medical WebsiteThe call-tracking specifics for the compliance rules on this page.
- HIPAA-Aware MarketingHow Primara handles compliance across every client engagement.
- Medical Practice Website DesignBuilds where tracking is configured correctly from day one.
- Medical SEO in FloridaThe measurement layer under every Florida engagement.
- Medical Website Design in West Palm BeachLocal builds with compliant analytics and call tracking.
- SEO vs Google Ads for a Therapy PracticeChoosing a channel when health targeting is restricted.
- How to get a medical practice into AI search answersWhat makes ChatGPT, Perplexity and AI Overviews name a practice — entities, schema and citations.
- Telehealth Marketing PlaybookWhere this exact tracking setup matters most, since it's often the entire funnel.
- Optimizing a Medical Practice Website for Voice SearchHow to track the traffic voice and AI assistants send without leaking anything.
- How to Set Up Google Analytics 4 for a Medical Practice From ScratchThe step-by-step setup this compliance guide assumes is already in place.
- How to Pick a CRM for a Medical Practice's Marketing and Patient Follow-UpWhere this same PHI-separation principle applies to lead-management tools.