TL;DR: Healthcare websites and mobile apps can violate HIPAA when third-party tracking technologies collect or transmit protected health information without the right disclosures, and OCR’s 2024 guidance tightened the operational examples, per Jscrambler. The real issue is client-side data exposure in browser-based architectures, where privacy, security, and identity governance collide at the point of collection.
At a glance
What this is: This is an analysis of HIPAA guidance on online tracking technologies and the key finding that browser-side scripts can create impermissible PHI disclosures.
Why it matters: It matters to IAM and security practitioners because client-side telemetry, tracking tags, and portal scripting can bypass traditional controls unless identity, consent, and data-handling governance extend into the browser.
By the numbers:
- 100 US hospitals had tracking codes on their, acking codes on their websites, and in seven cases those codes were added to password-protected patient portals.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
👉 Read Jscrambler's analysis of HIPAA tracking technologies and PHI exposure
Context
HIPAA tracking technologies create a governance problem, not just a compliance problem. Once JavaScript, pixels, or embedded tags can observe form fields, page events, or portal interactions, the organisation has effectively extended data collection into the client side, where privacy controls and access controls are much harder to enforce consistently.
The article focuses on healthcare, but the same architectural weakness shows up wherever browsers carry sensitive workflows. For IAM and identity governance teams, the key issue is not whether a page has login protection, but whether the surrounding telemetry, tag management, and third-party integrations can see data they should never receive.
Key questions
Q: How should healthcare organisations control tracking technologies in patient portals?
A: They should treat patient portals as sensitive execution environments and block or tightly restrict scripts that can observe form inputs, session state, or page content. Contract terms matter, but the real control is whether third-party code can access protected health information at runtime. Inventory every tag, test authenticated pages separately, and remove unnecessary collection paths.
Q: Why do tracking pixels create compliance risk even when there is no explicit cookie banner rule?
A: Tracking pixels can still collect or disclose personal information under broader privacy rules, so the absence of a banner requirement does not remove the obligation to be transparent and, where needed, obtain consent. The risk grows when behavioural data is linked to customer or account records.
Q: What do security teams get wrong about business associate agreements?
A: They often assume a business associate agreement solves the problem on its own. In practice, a contract cannot stop a script from collecting data it should never access. Teams need technical validation of what the code can see, where it sends data, and whether the page state exposes PHI in the first place.
Q: How do you know whether browser-side privacy controls are actually working?
A: Look for evidence that sensitive fields are blocked, storage access is constrained, outbound requests are logged, and opt-out or GPC signals cause immediate technical suppression. If the only proof is policy text or a checkbox in a dashboard, the control is not being enforced where it matters.
Technical breakdown
Why browser-side tracking changes the PHI trust boundary
Modern web apps push business logic, analytics, and observability into the browser. That means any script loaded on the page can often inspect form data, session context, or page content before it is sent back to the server. In healthcare, that collapses the practical trust boundary because protected health information can be exposed through tags, pixels, or SDKs even when the application itself appears properly secured. The problem is architectural: data governance now depends on client-side code paths that are difficult to inventory and harder to control than backend systems.
Practical implication: treat browser code, tag managers, and third-party scripts as part of the sensitive-data control surface.
Why a business associate agreement is necessary but not sufficient
A business associate agreement defines contractual responsibility, but it does not stop impermissible disclosure by itself. If tracking technology collects identifiers or health-related context that should not leave the environment, the legal paper trail cannot compensate for the technical data flow. That is why HIPAA compliance in tracking-heavy sites depends on both vendor governance and runtime control of what scripts can observe and transmit. In practice, the security question is whether the data ever reaches the third party in the first place.
Practical implication: validate data flow and script behaviour before relying on contractual controls.
How client-side protection supports regulated web applications
Client-side protection platforms aim to reduce tampering, obfuscate first-party code, and monitor risky JavaScript behaviour. That is useful in regulated web applications because it can expose unauthorized data collection patterns and limit some forms of e-skimming or formjacking. It does not replace privacy review or consent management, but it does add a runtime control layer where the browser is itself a sensitive execution environment. For healthcare, that makes the client-side stack part of the security and compliance architecture, not a separate marketing layer.
Practical implication: pair code protection with continuous monitoring for scripts that access regulated data.
Threat narrative
Attacker objective: The objective is to collect sensitive user or patient data from the browser before it is protected by server-side controls or privacy checks.
- Entry occurs through embedded third-party tracking code, tag managers, or client-side scripts loaded into healthcare webpages and portals.
- Credential or data harvesting happens when those scripts observe form inputs, page context, or portal interactions and transmit information to external services.
- Impact follows when protected health information is disclosed without a valid business associate agreement or patient authorization, creating HIPAA exposure and privacy harm.
NHI Mgmt Group analysis
Client-side data collection is now a governance boundary, not a marketing detail. When tracking code can read inputs in a patient portal, the risk is no longer limited to analytics misuse. The organisation has created a parallel data path outside its server-side privacy design, and that path must be governed like any other sensitive workflow. For healthcare and regulated industries, browser telemetry belongs in the same control conversation as access control and disclosure review.
PHI exposure through scripts is a trust boundary failure. The article shows that login protection does not automatically protect what client-side code can see. That is the core assumption gap: teams often secure the application while leaving third-party scripts, tags, and SDKs with broad visibility into regulated data. Practitioners should treat those components as data processors with explicit technical restrictions, not passive observability tools.
Runtime visibility has to extend into the browser. Static review of vendor contracts and privacy notices is not enough when script behaviour changes after deployment. Healthcare organisations need continuous inspection of what first-party and third-party code actually does in production, including what it reads, where it sends data, and whether it changes by page state. The control gap here is operational monitoring of client-side behaviour.
Identity governance matters because the browser is now part of the identity journey. In patient portals and authenticated healthcare workflows, the same page that establishes identity may also expose sensitive context to trackers. That makes identity, consent, and data-sharing governance inseparable. Teams should evaluate whether their identity programme covers the full data path from authentication to client-side transmission, not just the login event.
HIPAA tracking issues reveal a broader telemetry sprawl problem. The same pattern can appear in finance, retail, and public-sector portals whenever third-party scripts are allowed to observe regulated interactions. The named concept here is client-side disclosure drift: sensitive data slowly escapes the intended trust boundary through small, cumulative script decisions. Practitioners should focus on this drift before it becomes a compliance finding or breach vector.
What this signals
Client-side disclosure risk will keep expanding as more regulated workflows move into authenticated web and mobile experiences. The practical shift for security teams is to extend governance into scripts, tags, and SDKs, because server-side controls no longer see the full data path.
Client-side disclosure drift: this is what happens when small telemetry decisions gradually move sensitive information outside the intended trust boundary. Teams that manage identity, privacy, and application security together will be better placed to spot the drift before it becomes a breach or enforcement action.
For identity and access programmes, the lesson is that authentication is not the end of the control chain. Once a user enters a portal, the browser becomes part of the regulated environment, so privacy review, runtime inspection, and third-party access control need to operate as a single programme.
For practitioners
- Inventory browser-side data flows Map every tag, pixel, SDK, and embedded script that can observe form fields, page context, or authenticated portal traffic. Classify each by the data it can access and whether that access includes regulated information. Use that inventory to identify scripts that should never run on patient or member workflows.
- Restrict third-party visibility in sensitive workflows Separate marketing and analytics tooling from authenticated healthcare pages, and block scripts from pages where PHI may appear. Where collection is still required, apply the narrowest possible data scope and review whether the page state can trigger sensitive disclosures.
- Test scripts against real portal states Assess pages differently when they are public, authenticated, or context-sensitive. A page that is safe for general browsing may become non-compliant once it loads a patient record, diagnosis, or appointment detail, so review behaviour under each state rather than assuming one policy fits all.
- Treat client-side code as a regulated control surface Include browser-side protections, code review, and runtime monitoring in your privacy and security programme. For healthcare, that means tracking whether scripts can read, rewrite, or exfiltrate sensitive inputs before server-side controls ever see them.
Key takeaways
- Tracking technologies in healthcare are a browser-side trust problem, not just a privacy notice problem.
- The article’s core evidence shows that portal tracking can reach protected health information even when login controls exist.
- Security teams should govern scripts, tags, and SDKs as part of the regulated data path, not as optional front-end extras.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 and GDPR define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.DS-1 | Tracking technologies create data security and disclosure risk in regulated web flows. |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege should also apply to scripts that can read regulated portal data. |
| ISO/IEC 27001:2022 | A.8.2 | Information classification should extend to client-side handling of protected health data. |
| GDPR | Art.32 | The article’s browser-side disclosure issue mirrors security of processing obligations for personal data. |
Map browser-side telemetry to PR.DS-1 and restrict sensitive data collection to approved channels.
Key terms
- Client-side Exposure Drift: The widening gap between the security a team believes it has placed on front-end code and what an attacker can still recover over time. It grows when releases are not revalidated, protection patterns become familiar, or runtime controls are not tied to ongoing governance.
- Business Associate: A business associate is any external organisation that handles PHI on behalf of a covered entity. The term matters because liability and security obligations extend beyond the primary healthcare provider, making third-party access governance, contract terms, and technical controls part of the same compliance chain.
- Protected Health Information: Protected Health Information is any health-related data that can identify a person and is covered by HIPAA protections. In practice, PHI can flow through applications, integrations, service accounts, and cloud systems, which is why identity governance matters as much as data governance.
What's in the full article
Jscrambler's full article covers the operational detail this post intentionally leaves for the source:
- A step-by-step timeline of the OCR guidance and related legal milestones that shaped the current compliance position
- The article’s examples of when tracking technologies may or may not create a HIPAA violation in web and mobile contexts
- More detail on how browser-based tracking can differ between public pages, authenticated portals, and app experiences
- Jscrambler's client-side protection framing for first-party scripts and third-party tags in regulated environments
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, identity lifecycle, and secrets management. It helps security and identity practitioners connect access controls to the wider operational risk surface.
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org