Skip to main content
G.05 · Analytics · Reviewed 2026-05-01

HIPAA-conscious analytics - measure everything, leak nothing.

Behavioral-health marketing analytics is a regulated practice. After HHS OCR's tracking-technology guidance and the wave of enforcement around health-site pixels, the question isn't whether to track - it's how to architect tracking so PHI never leaves your domain. This guide is the playbook.

HIPAA · OCR-aware · BAA-discipline · 2026 edition
01 · Premise

Why this is now table stakes.

HHS OCR's 2022 bulletin on tracking technologies - reinforced in 2023 and 2024 - made explicit what was already implicit: tracking pixels and analytics on regulated healthcare sites can transmit PHI to third parties, and doing so without a BAA or explicit authorization is a HIPAA violation. Multi-million-dollar settlements have followed against health systems. Behavioral health is squarely in scope.

The risk is concrete: a single misconfigured pixel on an intake confirmation page can leak names, child ages, diagnoses, and insurance information into Meta's and Google's ad platforms. Most ABA practices have at least one of these violations live today and haven't noticed.

Disclaimer

This guide reflects industry best practice and a careful read of public OCR guidance; it is not legal advice. Configure analytics in consultation with your HIPAA privacy officer and counsel familiar with your specific data flows.

02 · PHI in marketing

What counts as PHI in a marketing context.

The five recurring leak patterns we find in behavioral-health analytics audits. Each one is fixable - and each one is a HIPAA exposure until it is.

Field / surfaceHow PHI gets inFix
URL parametersForms that submit with names, conditions, or insurance in the URL (e.g., ?child_name=...&dx=ASD) push PHI directly into every analytics and ad pixel on the next page.POST forms only. Sanitize URL parameters in tag manager. Never set ad platform conversion pixels on pages that can receive PHI in the URL.
Page titles & H1sConfirmation pages titled "Thank you, Jane Doe" or "Your appointment for Avery" leak PHI into the analytics dataLayer and into ad pixel page_title parameters.Use a static thank-you title that never includes user input. Personalize the body content client-side after tags have fired.
Event parametersCustom GA4 events like "intake_submitted" with parameters carrying child_age, diagnosis, or insurance can constitute PHI when combined with IP and device data.Strip identifying parameters at the tag layer. Send only outcome (event happened) and approved non-PHI dimensions (referrer source, device, geo at metro level).
Form field values via chatbotsSome chatbot tools transmit full form values to analytics or ad platforms by default. This is a common source of inadvertent PHI exfiltration.Audit chatbot vendor data flows; disable analytics passthrough for sensitive fields; ensure a BAA is in place if the vendor receives PHI.
Meta CAPI / Google Enhanced ConversionsThese features send hashed user data (email, phone) to ad platforms. In behavioral health, this can constitute PHI under the OCR's 2023+ guidance unless explicit authorization is obtained.Either disable these features on PHI-adjacent pages, gate them behind explicit, granular consent, or run server-side with strict parameter allowlists.
03 · GA4

Configuring GA4 safely.

GA4 is not HIPAA-compliant, but it can be operated in a HIPAA-conscious way if it never receives PHI. Five configuration rules.

Anonymize IP and disable advertising features.

GA4 already anonymizes IP by default; verify it. Turn off Google Signals, ad personalization, and remarketing on properties tied to behavioral-health sites - these features are the primary vector for inadvertent PHI sharing with advertising surfaces.

Strip URL parameters at the property level.

Configure GA4 referral exclusions and unwanted-referrals. More importantly, use server-side processing or GTM transformations to strip URL parameters before they ever hit GA4. Build a parameter allowlist instead of a denylist - allowlists fail safe.

Don't put PHI in custom dimensions.

Free-text custom dimensions are the most common PHI ingress in GA4. If you must collect a dimension, define an enumerated set of allowed values (e.g., service_type: in_home / center / telehealth) and reject anything else at the tag layer.

Set data retention to the shortest you can live with.

GA4 supports 2-month and 14-month retention. Shorter retention reduces risk surface materially. Use 2-month retention for properties on behavioral-health sites and export aggregated reports elsewhere for longer-term trend analysis.

Use Measurement Protocol via server-side only.

Direct Measurement Protocol calls from the browser are powerful and dangerous - they can transmit arbitrary parameters. Funnel all server-side analytics events through a controlled gateway (server-side GTM or a custom endpoint) with parameter validation.

04 · Server-side

Server-side tagging architecture.

The architectural pattern that makes HIPAA-conscious analytics defensible: a single controlled egress point, parameter allowlists, and logged event handling.

Server-side GTM as the single egress.

All client-side tags emit a generic event to your server-side GTM container. The server-side container then transforms, sanitizes, and forwards events to GA4, Meta, Google Ads, and any other downstream destination. The client never speaks to third parties directly.

Parameter allowlists, not denylists.

Define explicitly which parameters are allowed to leave your domain. Anything not on the list is dropped. This protects against future code changes that accidentally introduce new PHI fields.

First-party domain for the collector.

Host server-side GTM on a first-party subdomain (e.g., m.yourpractice.com). This both reduces ad-blocker false positives and ensures cookies and event data stay within your controlled domain.

BAAs with the vendors that receive data.

Server-side processing doesn't exempt you from HIPAA. If GA4, Meta, or another destination receives any data that could be PHI in context, you need a BAA. If the vendor won't sign one, don't send PHI-adjacent data to them - period.

Logging and replay.

Log every event the server-side container processes (with PHI redacted). When an audit comes, you need to be able to prove that no PHI left your domain. Logs make that defensible.

05 · Events

Events worth tracking.

The seven events that give you the operational visibility you need without ever requiring PHI. Each event's parameter list is allowlisted at the server-side container.

EventAllowlisted parametersPHI risk after allowlist
page_viewpage_path (sanitized), referrer source, device class, metro-level geoLow if URL is sanitized
form_startform_id, source, device classLow
form_submitform_id, source - NO field valuesLow if field values stripped
click_calllocation_id (clinic location), sourceLow
chat_opensource, device classLow
scheduler_openservice_type (enum), location_idLow
intake_scheduledsource, service_type, location_id - fired server-side after CRM record creation, no PIILow (server-side, sanitized)
06 · Ad platforms

Conversion tagging to ad platforms.

  1. No pixel-based conversions on intake confirmation pages.These pages can receive PHI in URL parameters or rendered content. Pixels firing here are the most common OCR violation pattern.
  2. Fire conversions server-side, post-form-submit.The server emits a sanitized conversion event to your tag gateway with non-PHI parameters only. Ad platforms receive "conversion happened" without payload.
  3. Use offline conversion uploads for downstream events.Once an inquiry becomes an accepted intake (days later, in your CRM), upload a hashed identifier as an offline conversion. Requires explicit consent and a defensible authorization model.
  4. Gate Meta CAPI and Google Enhanced Conversions behind explicit consent.These features transmit hashed user data. In behavioral health, treat them as PHI flows and obtain explicit, granular consent before activation.
  5. Document the architecture.For each conversion event, document the source surface, the parameter set transmitted, the BAA status of the destination, and the consent basis. Auditable trail.
08 · Audit

Quarterly audit checklist.

The audit cadence we recommend for behavioral-health practices. Quarterly is the minimum; major site or vendor changes warrant a re-audit.

  • Inspect every form on the site. Confirm all submit via POST, not GET; no PHI in URL parameters.
  • Inspect every confirmation page. Confirm no user input renders into the page title, H1, or analytics dataLayer.
  • Review the active tag list. Confirm all third-party tags are routed through server-side GTM, not direct browser calls.
  • Confirm BAAs are in place with every vendor that receives any data tied to inquiries (CRM, scheduling, chat, analytics, ad platforms when applicable).
  • Review custom GA4 dimensions and events for free-text fields or PHI-adjacent parameter values.
  • Spot-check ad platform conversion configurations for parameter passthrough that could carry PHI.
  • Confirm chat / chatbot vendor data flows. Many enable analytics passthrough by default that needs to be disabled.
  • Verify cookie consent banner blocks tag firing until consent is captured, where applicable to your jurisdiction.
  • Review the privacy policy and the marketing disclosures for accuracy against current data flows.
Tool

The interactive HIPAA checklist formalizes this audit into a guided self-assessment.

09 · Sources

Sources & methodology.

Last reviewed: 2026-05-01. Not legal advice - implement with your HIPAA privacy officer and counsel.

10 · FAQ

Questions operators actually ask.

Q.01Is Google Analytics HIPAA-compliant?

Google Analytics is not HIPAA-compliant out of the box, and Google will not sign a BAA for it. That said, a behavioral health practice can use GA4 in a HIPAA-conscious way by ensuring no PHI ever reaches the property - through URL sanitization, custom dimension discipline, parameter stripping, and server-side architecture. The HIPAA exposure is not from GA4 itself; it's from what you let flow into it.

Q.02Can ABA clinics use Meta and Google Ads conversion tracking?

Yes, with care. Standard pixel-based conversion tracking on pages that can never contain PHI (homepage, blog posts, services pages) is generally low-risk. The risk surface is on intake confirmation pages, post-form-submit destinations, and scheduling flows. The safest architecture is server-side conversion forwarding with strict parameter allowlists, often after explicit consent.

Q.03What is server-side tagging and why does it matter?

Server-side tagging routes all analytics and ad pixel data through a server you control (typically server-side Google Tag Manager) instead of letting the user's browser talk directly to GA4, Meta, Google Ads, etc. It gives you a single, auditable egress point where you can sanitize parameters, drop PHI, and apply allowlists. For behavioral health, it's effectively required to operate analytics responsibly.

Q.04Do I need BAAs for analytics vendors?

If a vendor receives any data that could constitute PHI in context - which includes IP addresses combined with other behavioral data on a healthcare site, per OCR's 2023+ guidance - you need a BAA. Many large analytics and ad platforms will not sign one, which is why the HIPAA-conscious architecture is to ensure PHI never reaches them in the first place. CRM, scheduling, and chat vendors must always sign a BAA before going live.

Q.05What is the OCR guidance on tracking technologies?

The HHS Office for Civil Rights issued guidance in 2022 (and reinforced in 2023–2024) clarifying that tracking technologies on websites of HIPAA-regulated entities can transmit PHI to third parties, and that doing so without a BAA or authorization is a violation. The guidance specifically called out pixel-based ad tracking on patient portals and authenticated pages. The implication for behavioral health: assume tracking on any inquiry, intake, or scheduling page can constitute PHI transmission, and architect accordingly.

Q.06How do I measure paid-ad ROI without sharing PHI with ad platforms?

Three options: (1) Send a non-PHI conversion signal server-side - the event happened, with non-identifying source attribution - and reconcile to revenue inside your CRM, not the ad platform. (2) Use offline conversion uploads after the user becomes an accepted intake, with explicit consent and a defensible hashed identifier scheme. (3) For lower-funnel campaigns, accept that you'll measure to inquiry, not accepted intake, and rebuild the rest of the funnel in your CRM dashboard.

Q.07Do these constraints apply if my site doesn't accept PHI directly?

Most behavioral-health marketing sites accept some PHI - at minimum, parent contact information tied to a child with a clinical concern. As soon as a form collects identifying information along with health context, you're in PHI territory. The OCR's recent guidance has expanded what counts: even IP+behavior pattern data on health pages can be PHI in context. Default to assuming yes and architect accordingly.

Q.08Can I use heatmap or session-replay tools on an ABA site?

Cautiously. Tools like Hotjar and FullStory can capture form inputs by default, which would constitute PHI capture. They must be configured with form-field exclusions, a vendor BAA, and ideally restricted to non-PHI pages. Many practices end up disabling them on intake flows and using them only on top-of-funnel content pages.

Continue the hub

Related pillars.

For operators

Want a HIPAA-conscious analytics audit on your site?

Higglo runs end-to-end HIPAA-aware analytics architectures for ABA and behavioral health practices. Free 20-minute diagnosis - we'll surface the obvious leak patterns on your site within the call.