Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeHIPAA compliant analytics means no tracking tag sends protected health information (PHI) to a vendor that has not signed a business associate agreement. No tool is compliant by itself: the answer depends on each page. Public pages can usually be measured with minimal settings; portal, login and health-form pages need a BAA or no tag. Below: the PHI test, what the 2024 ruling changed, and a page-by-page decision table.
What you will learn
- Decide per template: authenticated pages, portal logins and health forms send PHI; most public pages do not
- The June 2024 AHA v. Becerra ruling vacated only the IP + public condition page combination; portal and app tracking rules still stand
- Keeping tags off portal pages cost 15% of pageviews in the sample; 85% stayed measurable with minimal settings
What does "HIPAA compliant analytics" actually mean?
HIPAA does not certify software. The Privacy Rule applies to covered entities (health plans, clearinghouses and providers that bill electronically) and to their business associates, the vendors that handle protected health information (PHI) on their behalf. A vendor is a business associate only when it receives PHI, and then the covered entity needs a business associate agreement (BAA) with it before any PHI flows (45 CFR 160.103).
So "HIPAA compliant analytics" is really two questions, asked page by page:
- Does this page send PHI to the analytics vendor? That depends on what the page is about, whether the visitor is logged in, and which fields the tag sends.
- If it does, is there a BAA and are the Security Rule safeguards in place? If the answer is no, the tag cannot run on that page, however the vendor describes itself.
The useful consequence: a hospital, clinic or telehealth company does not need one rule for the whole site. Most pageviews on a typical provider site carry no PHI and can be measured with privacy-minimal settings. A small set of templates (the patient portal, login and sign-up, form steps that collect health details) needs either a vendor under a BAA or no third-party tag at all. The rest of this guide is the rule set for drawing that line. Which metrics are worth tracking in healthcare is a separate question, covered in healthcare analytics; this page is the HIPAA counterpart of GDPR-compliant analytics.
When does tracking data become PHI?
PHI is individually identifiable health information held by a covered entity or business associate. Two things must be true at once:
- It relates to health, care or payment for care, past, present or future.
- It identifies the person, or there is a reasonable basis to believe it could.
The HHS Office for Civil Rights (OCR) applied this test to tracking in its bulletin Use of Online Tracking Technologies by HIPAA Covered Entities and Business Associates (issued December 1, 2022, revised March 18, 2024). The points of that bulletin that analytics teams act on:
- Identifiers that tracking tools routinely collect, such as IP address, device IDs, email address, medical record number, appointment dates and geographic location, can make health information identifiable.
- Pages behind a login (patient portals, telehealth platforms) generally have access to PHI, so tracking there needs a BAA and HIPAA safeguards.
- Mobile apps offered by a covered entity that collect health information and device identifiers are treated the same way.
- A cookie or tracking consent banner is not a HIPAA authorization. Accepting cookies does not permit disclosing PHI to a tracking vendor.
A practical rule follows: if a page or screen would tell the vendor "this identifiable person is a patient, or is dealing with this condition", treat what the tag sends from it as PHI.
What changed after AHA v. Becerra?
On June 20, 2024, the U.S. District Court for the Northern District of Texas ruled in American Hospital Association v. Becerra (No. 4:23-cv-01110). The court declared unlawful and vacated one part of the bulletin, which it called the Proscribed Combination: the position that an online technology connecting a person's IP address with a visit to an unauthenticated public webpage addressing specific health conditions or healthcare providers creates PHI. The court denied a permanent injunction and said in a footnote that the vacatur should not be read as limiting the rest of the guidance.
That leaves a split that matters for analytics setup:
| Situation | Status after June 20, 2024 |
|---|---|
| IP address + visit to a public page about a condition, symptom or doctor | Vacated: this combination alone is no longer treated as PHI under the bulletin |
| Tracking on authenticated pages (patient portal, telehealth) | Not vacated: still treated as having access to PHI |
| Tracking in a covered entity's mobile app that collects health data | Not vacated |
| Form fields, search terms or URLs that carry a name, email, condition or appointment detail | Not affected: identifiable health information is PHI under the Privacy Rule itself |
| Cookie banner consent as a substitute for HIPAA authorization | Not affected: still not a valid authorization |
Two cautions. First, the ruling narrowed what OCR can treat as PHI on public pages; it did not make public health pages risk-free. A URL like /find-a-doctor?condition=hiv&email=... still carries identifiable health information. Second, state health-privacy laws and the FTC Act apply independently of HIPAA, so legal review of public condition pages is still worth doing.
A page-by-page decision table
Classify every template on the site by two facts: is the visitor authenticated, and does the page (or what the tag sends from it) reveal a condition, a visit or an appointment? The table after this section turns that into a setup decision per page type.
How to use it:
- List templates, not URLs. A provider site with 40,000 URLs usually has fewer than 30 templates: article, condition page, doctor profile, location, booking step, portal screen.
- Write down what the tag sends from each template. URL with query string, page title, event names, event properties, IP, device or visitor ID. A condition page that sends only its path is a different risk from one whose title includes a search the visitor typed.
- Pick the safer setup per row. "Keep the tag off" is a valid answer and often the cheapest one for portal screens, which are a small share of traffic.
| Page type | What the tag can reveal | PHI risk | Safer setup |
|---|---|---|---|
| General public page (home, careers, visiting hours) | Interest in the organisation | Low | Measure with minimal settings |
| Condition or symptom article | Interest in a condition | Lower after June 2024 for IP + visit alone; higher if URL or title holds identifiers | No persistent ID, IP not stored, country-level location |
| Find-a-doctor and search results | Specialty or doctor searched | Same as above; query strings often hold the search | Drop query strings; no search text in events |
| Appointment booking steps | Visit intent; form holds name, date, reason | High if form fields or confirmation details are sent | Count step pageviews only; never send form fields |
| Patient portal login and sign-up | That the visitor is a patient | High | No third-party tag unless under a BAA |
| Authenticated portal or telehealth pages | Care, results, messages | High | No third-party tag unless under a BAA |
| Covered entity's mobile app screens | Health data plus device IDs | High | Same as portal: BAA or no third-party SDK |
Classify templates, not URLs. A filter in a vendor console does not help: the data has already been sent.
Worked example: what keeping tags off the risky pages costs
Sample data: a regional hospital site with 200,000 pageviews in a month, grouped by template.
| Page type | Pageviews | Share | Setup |
|---|---|---|---|
| General public pages (home, visiting hours, careers, news) | 70,000 | 35.0% | Measure with minimal settings |
| Condition and symptom articles | 56,000 | 28.0% | Measure with minimal settings, no persistent ID |
| Find-a-doctor and location pages | 30,000 | 15.0% | Measure with minimal settings, drop query strings |
| Appointment booking steps | 14,000 | 7.0% | Measure the step pageview only; never send form fields |
| Patient portal login and sign-up | 18,000 | 9.0% | No third-party tag unless under a BAA |
| Authenticated portal pages | 12,000 | 6.0% | No third-party tag unless under a BAA |
| Total | 200,000 | all |
The calculation:
- Measured with minimal settings: 70,000 + 56,000 + 30,000 = 156,000 pageviews, 156,000 ÷ 200,000 = 78%.
- Booking steps measured as pageviews without form contents: 14,000, so 156,000 + 14,000 = 170,000, or 85% of traffic, stays in reports.
- Portal login, sign-up and authenticated pages: 18,000 + 12,000 = 30,000 pageviews, 15%, carry no third-party tag unless a BAA covers the vendor.
The site keeps 85% of its traffic data and removes the 15% where the HIPAA risk sits. That is the point of deciding page by page: a blanket "no analytics" policy would lose the 85%, and a blanket "the vendor says it is compliant" policy would ignore the 15%. Portal usage can still be counted inside the portal's own system, which already sits under the covered entity's HIPAA program.
Monthly pageviews by template
sample hospital siteWhich fields in an analytics tag are identifiers?
HIPAA's Safe Harbor de-identification method lists 18 identifiers that must be removed before health information counts as de-identified (45 CFR 164.514(b)(2)). Several of them are exactly what a default analytics tag sends:
| What a tag sends | Safe Harbor identifier it matches | Minimal setting |
|---|---|---|
| IP address | (O) Internet Protocol addresses | Do not store it; truncate before any lookup |
| Persistent visitor or device ID | (M) device identifiers, (R) any other unique identifying code | No persistent ID on public health pages |
| Full URL with query string | (N) web URLs, plus whatever the query holds | Strip query strings; never put names or emails in URLs |
| City or ZIP from IP lookup | (B) geographic subdivisions smaller than a state | Country only, or none |
| Event timestamp | (C) all elements of dates except year | Cannot be removed from event data; see below |
| Form field values (name, email, phone) | (A), (F), (D) | Never capture form contents |
The timestamp row is why "de-identified analytics" is a weak claim for event-level data: every event has a date and time, and Safe Harbor requires removing all date elements except the year that relate to an individual. Do not plan around de-identification for portal or booking data. Plan around not collecting health information from those pages at all, and treating public-page data with privacy-minimal settings.
What if a health app or site is not covered by HIPAA?
Many health apps, fitness and wellness services and direct-to-consumer brands are not covered entities, so HIPAA does not apply to them. The FTC's Health Breach Notification Rule often does. The 2024 amendments made explicit that health apps and connected devices that hold personal health records are covered, and that a disclosure of covered information without the person's authorization is a breach of security, even with no hack. Sharing health data with an analytics or advertising vendor without authorization can therefore trigger:
- notice to each affected person within 60 calendar days of discovery;
- notice to the FTC at the same time when 500 or more people are affected;
- notice to prominent media when 500 or more residents of one state or territory are affected;
- civil penalties of up to $53,088 per violation, per the FTC's guidance page.
The same page-by-page method applies: list the screens, list what each SDK or tag sends, and keep health details out of third-party payloads unless the user has authorized that disclosure.
Setup checklist for a healthcare site
- Inventory templates and tags. For each template, record every script and SDK that loads, and what it sends (URL, title, events, properties, identifiers).
- Mark each template with the decision table. Authenticated or not; reveals a condition, visit or appointment or not.
- Remove tags from the "no third-party tag" rows. Do it in the template, not with a filter in the vendor's console: a filter applied after collection still means the data was sent.
- Minimise what public pages send. No persistent ID, IP not stored, country-level location, query strings dropped, no form contents, no free-text search terms in event properties.
- Check URLs and titles. Booking confirmations and search results often put a condition, doctor or appointment date in the URL or page title.
- Get a BAA for any vendor that must see PHI. If one is not available, that page stays untracked.
- Re-check after each release. New templates and marketing tags are added faster than privacy reviews; put the inventory on the release checklist.
The same discipline applies to live chat on a healthcare site, where visitors type symptoms into the widget; see HIPAA-compliant chatbot.
How to set this up in TapCub
Take the hospital example above: 85% of pageviews to measure with minimal settings, 15% to keep untracked.
- Keep the script off the portal templates. Do not add the TapCub snippet to the patient portal, its login and sign-up pages. For paths that share a template with public pages, add them as path exclusions in Web analytics › Configuration › Web settings; exclusions stop pageviews only, so templates with custom
track()calls are safer left without the script. - Set the collection tier in Configuration › Privacy center. Tier 1 (anonymous aggregate) rotates the salt daily, keeps no persistent ID and drops autocapture and identity calls. Region rules can set the tier, address truncation and geography (city, country or none) separately for the US and other regions. See collection tiers.
- Know what is stored. The IP address still reaches the collector with each request, so it is used for the location lookup and then discarded, not written to the event; by default two bytes are truncated before the city lookup. Page reports use the path without the query string. Strings that look like an email or phone number in event properties are replaced with a placeholder by default, and form tracking, when enabled, records only the form's id, name and action, not what was typed. Details: keep personal data out.
- Read the public-page numbers in Web analytics › Pages. Condition articles, doctor pages and booking-step pageviews show traffic, entries and exits without any person-level profile when the tier is 1.
TapCub does not decide which of your pages carry PHI, and this guide does not make a claim about business associate agreements for any vendor: treat the "no third-party tag" rows as off-limits to TapCub too unless your compliance team has a signed BAA in place.
FAQ
Is Google Analytics HIPAA compliant?
No analytics tool is HIPAA compliant on its own. The question is whether the pages you tag send PHI and whether the vendor will sign a BAA for that data. Check the vendor's own published terms on BAAs before tagging any authenticated page, and keep tags off pages where no BAA is available.
Is an IP address PHI?
An IP address is one of the 18 Safe Harbor identifiers. Combined with health information, such as a visit to a patient portal or a booking for a specific condition, it can make that information PHI. After the June 2024 ruling, an IP address plus a visit to a public condition page alone is no longer treated as PHI under the vacated part of the bulletin.
Do I need a BAA for website analytics?
Only for pages that send PHI to the analytics vendor. Public pages measured with privacy-minimal settings usually do not; portal pages, login pages and forms that collect health details do. If a vendor will not sign a BAA, keep its tag off those pages rather than relying on settings inside its console.
Does a cookie banner make tracking HIPAA compliant?
No. OCR's bulletin states that accepting cookies or tracking in a banner is not a valid HIPAA authorization. A banner can still be needed for other laws, such as GDPR or state privacy laws, but it does not permit disclosing PHI to a tracking vendor.
Does the FTC rule apply if my health app is not covered by HIPAA?
Often, yes. The FTC's Health Breach Notification Rule covers vendors of personal health records, including many health apps, and treats sharing covered health information without the user's authorization as a breach. That triggers notices within 60 days and penalties of up to $53,088 per violation.
Sources
- U.S. District Court, N.D. Texas, American Hospital Association v. Becerra, No. 4:23-cv-01110, memorandum opinion and order of June 20, 2024 (GovInfo).
- HHS Office for Civil Rights, Use of Online Tracking Technologies by HIPAA Covered Entities and Business Associates (December 2022, revised March 2024).
- eCFR, 45 CFR 164.514, other requirements relating to uses and disclosures of PHI (Safe Harbor identifiers), and 45 CFR 160.103, definitions.
- Federal Trade Commission, Complying with FTC's Health Breach Notification Rule (updated for the 2024 amendments).
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.



