Protect PHI in Adobe CJA: Your Search Bar Is a HIPAA Risk

Home » Insights » Data Management » Protect PHI in Adobe CJA: Your Search Bar Is a HIPAA Risk
Loading the Elevenlabs Text to Speech AudioNative Player...

Did You Know Your Search Bar Collects and Saves PHI?

Patients type their member IDs into it. They paste Social Security numbers into support forms and enter birth dates in chat windows. They’re looking for their own account. Your analytics logs it all as a search term.

Once that value appears in a reporting dimension in Adobe CJA (or most other digital analytics applications), anyone with access to the report can see it. When tied to a patient or member, it’s classified as the patient’s Protected Health Information. This puts your HIPAA-compliant digital patient experience at risk and needs to be fixed now.

The permanent fix lies at the source: stop collecting Protected Health Information and delete what’s already there. That takes time and cross-team coordination, and some free-text fields fall outside your control. Until then, derived fields and shared dimensions protect your reporting.

Here’s how to set up both in Adobe Customer Journey Analytics, starting with the search bar.

Protect PHI in Adobe CJA Before a Patient’s Search Becomes a Breach

Safeguard Protected Health Information (PHI) in Adobe Customer Journey Analytics (CJA) with two features.

  1. A derived field uses a regex rule to replace member IDs, Social Security numbers, and other identifiers with a redacted placeholder in reports, including historical data.
  2. Shared dimensions apply that masking across every data view in a connection, so a single edit updates them all.

Understanding How PHI Ends Up in Adobe CJA Reports

Say you run analytics for a health plan, hospital, or healthcare system, and the site has a search bar. Most searches look the way you’d expect: “urgent care hours,” “flu symptoms,” “dental plans.” Mixed into the same search term dimension, you’ll also find a Social Security number, a member ID, or a string of digits from someone who assumed the search bar could pull up their account.

The U.S. Department of Health and Human Services (HHS) lists Social Security numbers, health plan beneficiary numbers, medical record numbers, and account numbers among the 18 identifiers that make health information identifiable under the HIPAA Privacy Rule. When any of those identifiers appears in a healthcare organization’s analytics, treat it as Protected Health Information until your privacy team says otherwise.

You don’t control what people type. You can and must (by law) control what Adobe Customer Journey Analytics does with it once it arrives. Derived fields and shared dimensions protect the fields where source control isn’t fully in your hands, while you keep working on the source fix in parallel.

You don’t control what people type. You do control what Adobe CJA does with it once it arrives.
Author Name
laptop with patient privacy graphic overlay to represent masking PHI in Adobe Customer Journey Analytics

Masking PHI in Adobe CJA With a Derived Field

A derived field in Adobe Customer Journey Analytics lets you build custom logic on top of an existing dimension without modifying the underlying dataset. Data view settings are retroactive and non-destructive, so masking applies to historical data in reports as soon as you save the view. For Protected Health Information, the rule I use most often is regex-based: find any value that matches a PHI pattern and replace it with a placeholder such as <<redacted>>. Here are the steps to do this:

1. Identify the pattern. Look at how PHI appears in your data. A Social Security number is nine digits, sometimes with dashes. A member ID might be 11 or 13 alphanumeric characters, with or without dashes. You need a pattern specific enough to catch those values without matching real search terms.

2. Write the regex. Adobe CJA supports a subset of Perl regex syntax, including \d, \b, and counted repeats like {3}. A starting pattern for Social Security numbers is \b\d{3}-?\d{2}-?\d{4}\b. Test it thoroughly. Too broad, and you redact searches that never contained Protected Health Information. Too narrow, and real PHI slips through.

3. Build the derived field. In the admin area of your data view, create a derived field from the original dimension (here, search term). Add a Regex Replace rule that replaces any match with your placeholder. Then add a Case When rule: if the regex matched, return the redacted value. Otherwise, return the original search term. Real searches remain intact. Only PHI-shaped values change.

Adobe CJA derived field editor showing a Regex Replace rule that masks PHI in search term dimension followed by a Case When rule that preserves non-matching values
A Regex Replace rule masks PHI-shaped values, while a Case When rule passes all other search terms through unchanged.

4. Validate the output. Run the derived field against real-world reporting data. Look for two failure modes: legitimate values redacted by mistake and PHI that slipped past the regex. Adjust the pattern until you’ve minimized both.

5. Swap it into reporting. Once you trust the derived field, choose one of two paths. If the dimension appears in only a few reports, add the derived field as a new component and hide the original. If it appears in many reports, assign the derived field the original dimension’s component ID. Now, every project that uses the dimension picks up the masking without breaking and without a manual swap in each report.

Expect to repeat step four. Regex is precise, but real-world data is messy. If the pattern blocks a value it should let through or misses a variant, go back to the same derived field, refine it, and revalidate. Treat it as a rule you maintain, one you’ll likely tune more than once.

The result is a PHI-safe version of your dimension. It behaves like the original for all legitimate values and masks anything that matches your risk pattern before it reaches a dashboard.

Before-and-after comparison of an Adobe CJA search term report, with Social Security and member ID numbers replaced by a redacted placeholder to protect PHI
Same report, before and after. Real searches remain. Identifiers become <>.

Keep PHI Masking Consistent Across Adobe CJA Data Views

A derived field protects one dimension in a single data view. Most organizations on Adobe Customer Journey Analytics run many data views. Applying the same PHI logic by hand to dozens of data views is tedious, and tedious admin work is where mistakes happen. Update the regex in 49 of 50 data views, miss the 50th, and you have an active Protected Health Information leak in production without knowing it.

Update the regex in 49 of 50 data views, miss the 50th, and you have an active PHI leak in production.
Author Name

Shared metrics and dimensions in Adobe CJA close that gap. You manage the masked dimension in one place, and changes apply instantly across every data view that shares it. One limitation: shared components can’t cross connections, so you set them up once per connection.

Adobe CJA Shared Metrics and Dimensions manager listing PHI-masked search term derived field as shared dimension
The masked search term dimension is imported once and shared across data views.

Here’s the setup for a single search-term dimension across 50 data views on three connections:

  • Import the masked dimension. Open the Shared Metrics & Dimensions manager, then import the derived field from the data view where you created it. Or mark it as a shared dimension from the original data view component settings.
  • Share it across data views. Apply it to every data view in that connection that requires it.
  • Repeat per connection. Three connections mean three times, not 50.
  • Clean up existing data views. Ensure each data view references the shared dimension, not an older copy of the search term dimension. The manager flags components that share a component ID, allowing you to select one version as the source of truth. You do this once.
  • Update centrally. When the regex changes, you edit it in three places instead of 50.
Diagram of single shared PHI-masking dimension in Adobe CJA feeding many data views from a single central definition
One definition, for every data view on the connection.

Fewer places to edit means fewer opportunities for Protected Health Information to leak and fewer data views falling out of sync with the rest of your reporting. You get one current definition of PHI-safe across your Adobe CJA environment, instead of 50 copies that started identical and slowly diverged. That’s what keeps teams trusting the numbers in front of them, the core of solving data distrust.

Other Places PHI Can Hide in Analytics

Search is a common culprit, but the same two-part fix works for any free-text field that feeds reporting: support ticket subject lines, on-site chat, appointment request notes, and custom form fields. Page URLs and query strings can carry identifiers too, and HHS lists URLs on its identifier list.

If a person can type into it, plan for PHI to appear there.

What PHI Masking in Adobe CJA Won’t Fix

Masking is a failsafe. Keep three limits in front of your privacy team.

  • The raw value still exists. A derived field changes what reports display. The stored value remains unchanged. The original resides in the Adobe Experience Platform dataset behind the connection. Restrict access to it and delete the records. Deleting records from a dataset in Adobe Experience Platform removes them from every Adobe CJA connection that uses that dataset.
  • PHI needs the right agreement with Adobe. Adobe supports PHI in Adobe Customer Journey Analytics only for Healthcare Shield customers that are covered entities or business associates in the U.S. If you aren’t on Healthcare Shield, Protected Health Information in your data is a bigger issue than reporting. Escalate it.
  • It doesn’t replace governance. You still need consent management, tag governance, and a review of what your site collects. The HHS guidance on online tracking technologies continues to shape how covered entities approach analytics, even though a federal court vacated part of it in June 2024. Check with counsel to determine how it applies to you.
A derived field changes what reports show. The stored value stays put.
Author Name

Set this up before you need it. An audit is the worst place to learn that your search bar needed a guardrail.

Protect PHI in Adobe CJA Without Losing Your Reporting

We’ve helped large health systems and health plans find Protected Health Information in their analytics, mask it, and keep it masked across all reports. That work isn’t limited to Adobe Customer Journey Analytics. Whatever analytics platform you use, we can show you where identifiers enter your data and what to fix first. If protecting Protected Health Information is a priority for your organization, let’s talk.

Frequently Asked Questions About Protecting PHI

What counts as PHI in digital analytics?

Health information tied to any of the 18 HIPAA identifiers, such as a Social Security number, member ID, medical record number, email address, or IP address. Your privacy team determines the final scope for your organization.

Can Adobe Customer Journey Analytics store PHI?

Only Healthcare Shield customers who are a U.S. covered entity or business associate can store PHI in Adobe Customer Journey Analytics. Without Healthcare Shield, don’t send Protected Health Information to Adobe CJA, and treat any you find as an incident.

Does a derived field delete PHI from Adobe CJA?

No. A derived field masks PHI in reports. The original value remains in the underlying Adobe Experience Platform dataset until you delete it there.

Do shared dimensions work across Adobe CJA connections?

No. Shared dimensions apply to data views within a single connection. Set up the masked dimension once per connection.

How often should I update a PHI regex in Adobe CJA?

Review it whenever your site adds a free-text field or changes a form, and on a regular schedule. Revalidate the output after each edit.

Author

  • Principal Consultant, Platform Analytics

    Taylor Cruz brings more than a decade of digital analytics experience, starting her career by building the analytics practice from the ground up at NIC Inc.’s Connecticut branch. Now a Principal Consultant, Platform Analytics at BlastX Consulting, Taylor helps organizations cut through the chaos by building clean, trustworthy analytics frameworks and ensuring the data tells the right story.

    Her expertise spans implementation, tracking, reporting, and turning data into decisions that fuel great digital experiences. Taylor balances attention to detail with a big-picture mindset, ensuring every tracking decision ladders up to meaningful customer and business outcomes. She is deeply passionate about fostering a data-driven culture that prioritizes the end user and recognizes that real impact comes not just from collecting data, but from using it effectively.

    Taylor is an Adobe Analytics Champion and holds certifications in Adobe Analytics, Adobe Customer Journey Analytics (CJA), Quantum Metric, and Google Analytics 4 (GA4). She was a featured speaker at Measure Summit, where she spoke on navigating industry shifts in digital analytics. She has authored more than a dozen thought leadership pieces on subjects including dashboard design, GA4 strategies, personalization, AI in marketing, and the evolving role of analytics in both the private and public sectors.

    Outside of work, Taylor enjoys working out and hiking, spending time with her husband and two children, and winding down with a gripping mystery miniseries.

    linkedin icon(opens in new tab)

    View all posts

Experience the impact BlastX can have on yourperformance.outcomes.business.insights.customers.users.members.