Skip to main content
GUIDE · HIPAA10 min read

HIPAA + server-side tracking for healthcare brands

Healthcare, wellness, and fitness teams need measurement, but the browser is a dangerous place to make privacy decisions. This guide explains where HIPAA touches tracking, why client pixels created a wave of litigation, and how server-side controls can help brands measure without forwarding protected health information to ad platforms.

Guide section

What HIPAA covers

HIPAA applies to Covered Entities: health plans, healthcare clearinghouses, and healthcare providers that transmit health information electronically in covered transactions. For tracking teams, the important point is that the same hospital, clinic, telehealth provider, pharmacy, or benefits-related flow that creates a care relationship can also turn ordinary web data into regulated health information when it identifies a person or relates to their care.

HIPAA also applies to Business Associates. A vendor becomes a Business Associate when it creates, receives, maintains, or transmits protected health information for a Covered Entity, or for another Business Associate, in order to perform a covered service. That is why healthcare measurement stacks need Business Associate Agreements, vendor review, minimum necessary rules, security controls, access governance, and clear limits on permitted use.

Protected health information, or PHI, is individually identifiable health information held or transmitted by a Covered Entity or Business Associate. Electronic PHI, or ePHI, is PHI in electronic form. A page URL, appointment event, portal visit, query string, IP address, email, cookie ID, form submission, medication interest, or diagnosis-related path can become PHI when it is tied to an individual and reveals a healthcare context.

Guide section

Why healthcare brands can't use client pixels

Client pixels run in the user's browser, observe the page the user is on, collect browser identifiers, and often transmit referrers, URLs, page titles, cookies, click data, form metadata, and device information before a server policy can inspect the payload. In ordinary retail, that is already a privacy concern. In healthcare, a URL like /oncology/second-opinion, an appointment confirmation, or a portal route can reveal the fact that a person sought care.

The 2023-2024 Meta Pixel and Google Analytics HIPAA lawsuits made this risk visible. Plaintiffs alleged that hospitals, health systems, telehealth providers, pharmacies, and wellness platforms embedded client-side trackers that disclosed patient activity to advertising or analytics companies without proper authorization. The alleged disclosures included appointment scheduling behavior, portal use, search terms, doctor pages, conditions, treatments, prescription flows, and identifiers that could be matched to users.

The financial context changed the risk calculation. Hospitals and healthcare organizations paid $1.8B+ in settlements tied to client-side trackers leaking PHI, and Meta Pixel HIPAA lawsuits carried the kind of $$$ exposure that boards and privacy officers cannot ignore. Server-side tracking is not a magic exemption, but it gives healthcare teams a controlled inspection point before any event reaches Meta, Google, or another destination.

Guide section

What counts as PHI in tracking

Tracking teams often underestimate PHI because each field looks harmless in isolation. HIPAA analysis depends on context. A browser event with an IP address and a generic homepage view may be low risk. The same IP address, attached to a mental health intake flow, cancer center appointment page, medication refill journey, or diagnosis code in a URL, can identify both a person and their care interest.

IdentifierExampleHIPAA status
IP address203.0.113.24 attached to a visit on /cardiology/appointmentLimited PHI if combined with health context or other identifiers.
User-AgentBrowser, operating system, device model, and version stringNot PHI alone, but it can contribute to fingerprinting risk.
Email hashSHA-256 normalized email used for consented matchingDe-identified for many operational uses, OK when not reversible and policy allows.
Full nameJane Doe submitted inside an intake, lead, or appointment eventPHI when connected to healthcare activity.
Appointment date + locationApril 12 at the oncology clinic in AustinPHI because it reveals care timing and place.
Prescription infoMedication name, dosage, refill date, or pharmacy pickup eventPHI.
Diagnosis codes in URL/results?icd10=F32.1 or /programs/diabetes-type-2Definitely PHI when linked to a user, visit, form, or account.
Guide section

Safe Harbor de-identification

HIPAA's Safe Harbor method de-identifies data by removing 18 identifiers of the individual, relatives, employers, or household members, and by having no actual knowledge that the remaining information could identify the person. In tracking, Safe Harbor is useful as a strict payload review checklist, even when the final product decision also needs expert determination, security review, contract review, or destination-specific controls.

  1. Names.
  2. Geographic subdivisions smaller than a state, except the first three ZIP code digits when allowed by population rules.
  3. All date elements directly related to an individual, except year, including birth date, admission date, discharge date, death date, and ages over 89.
  4. Telephone numbers.
  5. Fax numbers.
  6. Email addresses.
  7. Social Security numbers.
  8. Medical record numbers.
  9. Health plan beneficiary numbers.
  10. Account numbers.
  11. Certificate or license numbers.
  12. Vehicle identifiers and serial numbers, including license plates.
  13. Device identifiers and serial numbers.
  14. Web URLs.
  15. IP addresses.
  16. Biometric identifiers, including finger and voice prints.
  17. Full-face photographs and comparable images.
  18. Any other unique identifying number, characteristic, or code.
Guide section

TrackLayer + HIPAA

TrackLayer is designed to move healthcare measurement out of the uncontrolled browser path and into a policy-enforced server path. That does not replace legal review, privacy officer sign-off, or a correct BAA. It gives technical teams the controls needed to make those instructions real inside the event pipeline.

BAA available for enterprise tier

Enterprise healthcare accounts can execute a Business Associate Agreement so TrackLayer's processor obligations, permitted uses, safeguards, incident duties, and return or deletion rules are documented.

Server-side by default

Healthcare events are routed through server controls instead of letting client-side pixels touch appointment pages, symptom flows, portal URLs, medication journeys, or intake forms.

Automatic PII hashing

Supported identifiers such as email and phone can be normalized and hashed with SHA-256 before destination logic runs, reducing exposure while preserving permitted first-party operations.

URL sanitization

TrackLayer can strip PHI from landing URL parameters, referrers, event paths, and query strings before logs or destinations receive them.

PHI opt-out hardwire

Any event marked with a PHI flag can be blocked from downstream dispatch, regardless of ordinary marketing settings or destination defaults.

Guide section

What TrackLayer will NOT do

TrackLayer will not forward PHI to advertising platforms such as Meta or Google. If an event contains diagnosis information, appointment details, prescription data, care location, portal behavior, health-condition context, or any other PHI signal, it should be suppressed from ad destinations rather than transformed into a conversion event.

TrackLayer will not retain unhashed PII for HIPAA accounts. Supported identifiers are normalized, hashed, minimized, or dropped according to account policy and destination rules. Raw names, emails, phone numbers, patient IDs, and free-text health fields should not live in tracking logs as a convenience feature.

TrackLayer will not allow pixel fallback for HIPAA accounts. A blocked server route should fail closed rather than silently reintroducing a browser pixel that can observe URLs, referrers, page content, cookies, and form behavior before policy enforcement happens.

Guide section

Implementation checklist

HIPAA-safe tracking is an implementation discipline. The checklist below is the practical baseline for teams that want server-side measurement without recreating the same client-pixel exposure in a different system.

  • Sign a BAA with TrackLayer before sending any workload that may include PHI or ePHI.
  • Enable HIPAA mode in TrackLayer settings and confirm pixel fallback is disabled for the account.
  • Audit all existing browser pixels, tags, event payloads, URLs, referrers, cookies, and form fields for PHI.
  • Remove Meta Pixel, Google Analytics, TikTok, LinkedIn, and other client-side trackers from appointment, portal, intake, diagnosis, pharmacy, and authenticated health pages.
  • Add consent UI with HIPAA-specific language that explains measurement, advertising restrictions, health-data handling, and opt-out choices.
  • Create an event taxonomy that marks PHI, possible PHI, and non-PHI events before any destination mapping is approved.
  • Send the implementation to the privacy officer, security owner, and counsel for review before launch.
  • Document monitoring, incident response, access controls, retention, deletion, vendor review, and quarterly payload audits.
Guide section

Verticals this covers

HIPAA exposure depends on the role of the organization, the data being processed, the service being provided, and the vendor relationship. The guidance is most relevant to brands whose tracking can reveal care, treatment, payment, pharmacy, enrollment, or health-status context.

Hospitals and health systems.

Telehealth providers and virtual care platforms.

Pharmacy and retail health brands, including CVS and Walgreens-style flows.

Mental health apps and coaching platforms, including BetterHelp or Calm-style products.

Fitness apps that collect weight, sleep, heart rate, fertility, nutrition, recovery, or other health data.

Medical device manufacturers with product registration, patient support, refill, companion app, or connected-device journeys.

Guide section

FAQ

Is TrackLayer a Business Associate under HIPAA?

For healthcare workloads where TrackLayer creates, receives, maintains, or transmits PHI on behalf of a Covered Entity or Business Associate, TrackLayer should be treated as a Business Associate and a BAA should be in place. Enterprise customers can request a BAA before sending regulated data.

Can healthcare brands still use Meta or Google for ads?

They may be able to run campaigns, but PHI should not be sent to ad platforms. The safer pattern is to keep health-context events out of destination payloads, use non-PHI campaign reporting where allowed, and have counsel approve the data flow.

Does hashing make PHI safe to send anywhere?

No. Hashing is a control, not a universal permission slip. If the surrounding event, URL, timing, or destination can reveal that a person sought care or has a condition, the payload can still create HIPAA risk.

Are wellness and fitness apps always covered by HIPAA?

No. HIPAA applies based on entity role and transaction context, not simply because an app handles health-like data. Many wellness apps are outside HIPAA but still face FTC, state privacy, contract, and consumer protection obligations.

Can Google Analytics be used on healthcare pages?

Client-side analytics on healthcare pages is high risk when URLs, page titles, forms, or identifiers can reveal care. If analytics is needed, route only minimized, approved, non-PHI events through server-side controls and avoid health-context identifiers.

What should happen if an event is accidentally marked non-PHI?

Treat it as a privacy incident workflow. Stop dispatch, preserve the audit trail, identify affected destinations and time windows, rotate or suppress affected mappings, review whether notification is required, and update the taxonomy before re-enabling the event.

Next reads

Related privacy guides

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.