Foundgrove
← All posts

Conversion · 10 min read

HIPAA and Marketing Pixels: What You Can Legally Track

Summary

Google and Meta will not sign a HIPAA BAA. Here is what a pixel actually leaks on a healthcare site, and how to prove ad spend works anyway.

By Hyder Shah, Founder & CEO · Published July 13, 2026 · Updated July 13, 2026

Your agency dropped a Meta pixel and a GA4 tag on your practice's website, wired the appointment form up as a conversion, and called it attribution. On a healthcare site, that setup can be an impermissible disclosure of protected health information — and the two companies whose tags you just installed will not sign a Business Associate Agreement to cover it.

This is not theoretical. On July 20, 2023, the FTC and HHS Office for Civil Rights sent a joint warning letter to approximately 130 hospital systems and telehealth providers, naming the Meta/Facebook pixel and Google Analytics by name. If you run a therapy practice, a treatment center, a dental group or a clinic, the tags on your site are a compliance surface, not just a marketing setting. Here is exactly what you can and cannot track — and how to still prove the ad spend works.

Is Google Analytics HIPAA compliant?

No. Google's own documentation says it plainly: Google 'makes no representations that Google Analytics satisfies HIPAA requirements and does not offer Business Associate Agreements in connection with this service.' That sentence is on Google's HIPAA and Google Analytics support page, not on a competitor's blog.

The same page tells covered entities they 'may only use Google Analytics on pages that are not HIPAA-covered,' and that 'authenticated pages are likely to be HIPAA-covered and customers should not set Google Analytics tags on those pages.' It also warns that unauthenticated pages related to the provision of health care are more likely to be covered.

Google reinforces this on the other side of the house. Google Cloud's HIPAA compliance guide publishes the list of products its BAA actually covers — BigQuery, Cloud Storage, the Healthcare API, and dozens more — and tells customers to 'disable or otherwise ensure that you do not use Google Cloud Products that are not explicitly covered by the BAA' when working with PHI. Google Analytics is not on that list. Neither is Google Ads.

So the answer to the question every practice owner asks is: GA4 is fine on your careers page and your directions page. It is not fine on your patient portal login, your appointment booker, or your 'do I have an anxiety disorder?' quiz. If you want a genuinely privacy-simple analytics setup, our comparison of GA4 versus Plausible and Fathom is the right starting point — but understand that no analytics tool is HIPAA-safe by default. The BAA is the only thing that makes it so.

How can a tracking pixel disclose PHI on a healthcare site?

A pixel discloses PHI the moment it sends an identifier — an IP address, device ID, cookie ID or hashed email — together with information that relates to a person's health, care, or payment for care. OCR's bulletin gives the textbook example: someone reading a hospital's oncology services page to get a second opinion on their brain tumor. Transmitting that person's IP address alongside that pageview is a disclosure of PHI.

In practice, the leak is almost never the pixel firing on the homepage. It is what the tag scrapes off the pages that matter:

Leak pathWhat the tag actually sendsWhy it counts as PHI
Appointment form submitThe selected service or reason for visit, inside the event name or a custom parameterAn identifier plus a reason for seeking care
Patient portal login or registration pageThe email or username typed into the field, captured by an autocapture tagOCR states this login and registration information meets the definition of individually identifiable health information
Symptom checker or self-assessment quizThe answers, frequently sitting in the URL query stringHealth information tied to an IP address
Condition or service page URLA page_location value like /services/addiction-treatment/detoxTies a person to the care they are researching
Call-tracking scriptThe swapped phone number plus the keyword the caller searchedLinks a caller to a campaign about a condition
Session replay or heatmapEverything typed into every field, including free-text boxesVerbatim health disclosures, recorded

Session replay is the one that gets missed. It records the free-text box where a patient types 'I have been having panic attacks since my divorce.' If that vendor has not signed a BAA, that is an impermissible disclosure, and there is no configuration setting that fixes it after the fact.

What does the HHS OCR tracking guidance actually say now?

Part of it was struck down — and most agencies have not read the part that survived. On June 20, 2024, the U.S. District Court for the Northern District of Texas vacated a portion of OCR's online tracking bulletin in American Hospital Association v. Becerra: specifically, the guidance that HIPAA obligations are triggered where a technology connects an individual's IP address with a visit to an unauthenticated public webpage addressing specific health conditions or health care providers. HHS says it 'is evaluating its next steps.'

If an agency is telling you 'a court threw that out, put the pixel back,' they read one paragraph. Everything below is still standing:

  • Tracking technologies on user-authenticated pages — patient portals, telehealth platforms — generally have access to PHI, and a BAA is required.
  • A portal login or registration page is technically unauthenticated, but if a tag captures what the user types into it, that is a disclosure of PHI.
  • An unauthenticated page that lets someone book an appointment or run a symptom checker can disclose PHI, because the reason for the visit is individually identifiable health information.
  • Cookie banners do not fix this. OCR states that banners asking users to accept or reject tracking technologies 'do not constitute a valid HIPAA authorization.'
  • A vendor promising to strip PHI on their end does not fix it either. OCR says it is 'insufficient for a tracking technology vendor to agree to remove PHI from the information it receives or de-identify the PHI before the vendor saves the information.'
  • OCR states it is prioritizing HIPAA Security Rule compliance in its tracking-technology investigations — meaning your risk analysis had better name your tags.

The downside is not a stern letter. Under the bulletin, an impermissible disclosure to a tracking vendor with no BAA and no Privacy Rule permission is presumed to be a breach of unsecured PHI unless you can demonstrate a low probability that the PHI was compromised. That means individual notification, notice to the Secretary, and media notice once it is large enough. Our healthcare SEO playbook covers the rest of the compliance surface; this page owns the tags.

Which marketing tools will sign a BAA, and which never will?

Google and Meta will not sign a BAA for their analytics and advertising products, and no plan tier, spend level or account manager changes that. Call-tracking and customer-data platforms built for healthcare will.

ToolSigns a BAA?What that means for you
Google Analytics 4NoGoogle states it does not offer BAAs for the service and that covered entities may only use it on pages that are not HIPAA-covered
Google Ads conversion tagsNot coveredGoogle Cloud publishes the products its BAA covers; Google Ads and Google Analytics are not on the list
Meta Pixel and Conversions APINoMeta's Business Tools Terms make you warrant you will not send data that includes or is based on health information
Call tracking on a healthcare planYesCallRail's healthcare plans include a BAA and start at $150/month, with a separate account and integration restrictions
Healthcare CDP or privacy platformYes, if it is in writingOCR's own bulletin blesses this pattern: a BAA-signed vendor that de-identifies before forwarding to tools that will not sign

Meta's position is the blunt one. Its Business Tools Terms, effective November 3, 2025, require you to represent and warrant that you will not share data with Meta that 'includes or is based on, directly or otherwise, health information' — and add that your event, conversion and custom-audience names 'must not reflect, imply or be based on' that information either. An event named rehab_admit breaks that clause on its own.

The verdict: there is no configuration of GA4 or the Meta pixel that makes them HIPAA-compliant on a page where PHI can appear. You either keep those tags entirely off HIPAA-covered pages, or you put a BAA-signing platform in between that de-identifies events before Google or Meta ever see them. Vendors like Freshpaint sell exactly that middle layer — and their own writeup of the BAA problem is worth reading, with the obvious caveat that they are selling the fix. Anyone offering you a third option is selling you a breach.

Can you run Google Ads conversion tracking on a healthcare site?

Yes — but only if the conversion signal that reaches Google carries no PHI at all. The Google Ads tag is not on Google's BAA-covered product list, so it must never fire with an identifier attached to health information. That constraint is workable, and it is mostly about what you strip out:

  • Fire conversions from a generic thank-you page. /thank-you, never /thank-you?service=iop&insurance=aetna.
  • Strip query strings and condition values out of page URLs and event parameters before any tag reads them.
  • Never name a conversion after a condition, service line or treatment. Meta's terms forbid it explicitly; treat Google the same way.
  • Turn off autocapture and enhanced-measurement features that scrape form fields you did not choose to send.
  • Keep the tag off patient portals, symptom checkers, intake forms and anything behind a login.
  • Do not assume enhanced conversions or CAPI solve this. They exist to send more identity, not less — hashed emails and phone numbers. On a page where the visit itself reveals why someone is there, that is the opposite of what you need, and Meta's terms already prohibit it.

Our full Meta Pixel and CAPI setup guide is the right build for a plumber or a roofer. On a HIPAA-covered site, it is the exact setup you cannot run unfiltered — the server-side layer has to be a BAA-signed platform, not a Meta endpoint you own.

What does a compliant measurement stack look like end to end?

It routes every tracking event through a vendor that has signed a BAA, de-identifies it there, and only then forwards a stripped signal to Google or Meta. OCR's bulletin describes this pattern directly: if a tracking vendor will not provide a BAA, a regulated entity can 'establish a BAA with another vendor, for example a Customer Data Platform vendor,' that de-identifies the tracking information and passes only de-identified data onward. Six layers, in order:

  • The site. No third-party tags on authenticated pages, appointment forms, symptom checkers, or portal login and registration pages. This is a page-by-page decision, not a site-wide toggle.
  • Collection. A BAA-signed healthcare CDP or privacy platform is the only thing that receives raw events. It sits in front of the ad platforms, not beside them.
  • De-identification. Identifiers are irreversibly removed inside the BAA-covered platform before anything is forwarded anywhere.
  • Destinations. Google Ads and Meta receive a de-identified conversion signal with no condition, service, insurance or reason-for-visit in the payload.
  • Calls. Call tracking runs on a healthcare plan with a signed BAA. CallRail's healthcare plans start at $150/month, and its healthcare accounts are separate accounts that log users out every 30 minutes and restrict integrations that send PHI to third parties.
  • The CRM or EHR. This is where real, identified outcomes live — and nothing from here is ever uploaded to an ad platform.

What breaks this stack in practice is never the pixel. It is the marketing coordinator adding a heatmap tool, a chat widget, a review-request script or a scheduling embed nine months later without asking whether that vendor signed anything. Put tag governance in writing — one named owner, one approval step — or your compliant stack has a 90-day shelf life.

How do you prove the ad spend works without leaking PHI?

You measure at the campaign level and reconcile inside your own systems. The number you defend to your board is cost per booked appointment, computed in your CRM or practice-management system — not a conversion count sitting inside a Google Ads dashboard you were never allowed to populate that way.

  • Give each campaign its own tracking number through a BAA-signed call-tracking vendor, then match booked appointments back to the number in your PMS.
  • Import offline conversions using de-identified IDs generated inside your BAA-covered platform, not hashed patient emails.
  • Use geo holdouts and clean before-and-after windows to size channel impact when user-level attribution is off the table.
  • Report on booked and kept appointments, not form fills. A form fill on a therapy site is not a patient.
  • Ask one question of every new report: could we rebuild this if we deleted the pixel tomorrow? If the answer is no, your business case is built on a tag you are not allowed to have.

This is also why we do not sell 'HIPAA-safe tracking' as a line-item upsell. If you are a covered entity, the compliant measurement stack is the measurement stack. It goes in the base scope for mental health practices and for paid ads, because the alternative is a program that cannot be reported on without generating a breach notification.

What should your practice remove from its site this week?

Open your tag manager and your page source and list every third-party script — most practices find between six and fifteen. Anything that has not signed a BAA and can see a HIPAA-covered page comes off now; the rest gets a written decision this month.

  • Meta pixel on any page with an appointment form, condition detail, symptom checker or portal login. Remove it.
  • GA4 on authenticated pages and pages related to the provision of care. Remove or restrict, per Google's own instruction.
  • Session replay and heatmap scripts anywhere a patient can type. Remove until a BAA exists.
  • Chat widgets and scheduling embeds. Get the BAA or get a different vendor.
  • Any call-tracking script not running on a healthcare plan with a signed BAA. Swap it.
  • Reason-for-visit, service, insurance and condition values in URL query strings and event names. Strip them.
  • A cookie banner being treated as consent for tracking. It is not a HIPAA authorization. Stop presenting it as one.

Then document what you removed and why. OCR says it is prioritizing Security Rule compliance in tracking-technology investigations, and a risk analysis that names your tracking technologies is the exact artifact an investigator will ask for. A screenshot of a clean tag manager is not a compliance program, but an undocumented one is not a defense either.

If an agency just handed your clinic a Google Ads pixel and called it HIPAA-compliant marketing, get a second opinion on the tags before you get one on the strategy. We build the measurement layer first for mental health and behavioral health practices — month-to-month, no lock-in, no ranking guarantees, and no conversion tracking that would embarrass you in a breach notification. Get my free audit.

Where does this fit in your stack?

If you're running a US service business, the playbook in this post pairs with our full services lineup and applies cleanly across our supported industries and US locations. If you want help implementing it, book a free strategy call — we'll review your current setup and prioritize the next three moves.

For the deeper engagement details, see our website design service. New to the terminology here? Our SEO & marketing glossary defines every acronym in this post.

Want this built for your vertical? See SEO for Mental Health Practices, SEO for Addiction Treatment Centers, SEO for Dental Practices, SEO for Primary Care Practices, SEO for Urgent Care Clinics, SEO for Dermatology Practices, SEO for Fertility & IVF Clinics.

What are the most common questions about this topic?

Common questions readers send us about this topic.

Is Google Analytics HIPAA compliant?

No. Google's support documentation states that Google 'makes no representations that Google Analytics satisfies HIPAA requirements and does not offer Business Associate Agreements in connection with this service.' Google further instructs HIPAA-regulated entities that they may only use Google Analytics on pages that are not HIPAA-covered, and should not place tags on authenticated pages. GA4 on a careers page is fine. GA4 on a patient portal login or an intake form is not.

Can I use the Meta Pixel on a healthcare website?

Only on pages where no protected health information can be observed, and even then you are on thin ice. Meta's Business Tools Terms, effective November 3, 2025, require advertisers to warrant that they will not share data that 'includes or is based on, directly or otherwise, health information,' and state that event, conversion and custom-audience names must not reflect or imply it. Meta does not offer a BAA. On condition pages, intake forms and portals, the pixel comes off.

Will Google sign a BAA for Google Analytics or Google Ads?

No. Google explicitly says it does not offer Business Associate Agreements for Google Analytics. Google Cloud does sign BAAs, but only for the products on its published covered-products list — BigQuery, Cloud Storage, the Cloud Healthcare API and similar infrastructure services. Google Analytics and Google Ads are not on that list, and Google Cloud tells customers not to use non-covered products when working with PHI.

What did HHS OCR say about tracking technologies?

OCR's bulletin says covered entities may not use tracking technologies in ways that impermissibly disclose PHI to vendors. It requires a BAA with any tracking vendor that qualifies as a business associate, states that cookie banners are not valid HIPAA authorizations, and says a vendor agreeing to strip PHI after receipt is insufficient. A federal court vacated one portion in June 2024 — the IP-address-plus-unauthenticated-page trigger — but the rest of the bulletin stands.

Is an IP address considered PHI?

An IP address is an identifier, and it becomes PHI when it is combined with information relating to a person's health, care, or payment for care. OCR's example: an IP address transmitted alongside a visit to an oncology services page by someone seeking treatment options is a disclosure of PHI. A June 2024 court order vacated OCR's blanket position on IP address plus unauthenticated condition pages, so the current line is fact-specific. Treat it conservatively.

Is call tracking HIPAA compliant?

It can be, but only on a vendor plan that includes a signed BAA. CallRail, for example, enters into a BAA with covered entities on its healthcare plans, which start at $150 per month and force a separate account, 30-minute session timeouts, and restrictions on integrations that would push PHI to third parties. A standard call-tracking account with no BAA, recording calls to a treatment center, is an impermissible disclosure waiting to be reported.

How do I track conversions on a therapy or dental site legally?

Fire conversions from a generic thank-you page with no service, condition or insurance value in the URL or event name. Keep tags off authenticated pages, intake forms and symptom checkers. Route raw events through a BAA-signed healthcare CDP that de-identifies them before forwarding to Google or Meta. Then reconcile campaign spend against booked appointments inside your CRM or practice-management system, where identified data is allowed to live.

What is server-side tagging and does it solve the HIPAA problem?

Server-side tagging moves tag execution from the browser to a server you control, which lets you filter payloads before they leave. It only solves the HIPAA problem if the server sits inside a platform that has signed a BAA and irreversibly de-identifies the data before forwarding. A self-hosted Google Tag Manager server container that still ships identifiable events to Google or Meta has changed the plumbing, not the disclosure.

About the author

Hyder Shah

Founder & CEO, Foundgrove

Hyder Shah is the founder of Foundgrove, an SEO and GEO agency for US service businesses. See our editorial policy for how these guides are researched and reviewed.

Want help applying this to your business?

Book a free 30-minute call. We'll review your current acquisition stack and show you the three highest-leverage moves for your industry and state. Or read how our website design service works.

Free SEO & AI visibility auditGet my free audit