Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Session recording capturing form fields: how to find and fix it

TRK-240High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A session recording tool (such as Hotjar, Microsoft Clarity, FullStory or PostHog) replays a visitor's session by recording page changes, clicks and scrolls. If masking is off or incomplete, it can also record the text people type into form fields. That text is then stored on the vendor's servers and shown to anyone with access to your recordings.

Why it costs you leads or sales

The direct cost is risk: a data complaint, a fine, a forced deletion of recordings, or a vendor account suspension. Teams often react by switching recording off entirely, so you lose the insight that helps you fix drop-offs in forms and checkouts.

There is a trust cost too. If visitors see or learn that what they type is recorded, some abandon forms. And a leak of customer data in a shared recording link can reach people who should never see it, such as freelancers, agencies or screen-share audiences.

How typed data ends up in a recording
  1. Visitor typesName, email, phone in the form
  2. Recording scriptCaptures page changes and inputs
  3. Vendor serversReadable text stored
  4. Team replaysPII visible to everyone with access

The break is the missing mask between the form field and the recording script.

How to check if your site has it

Check your own recordings for readable input
  1. Run a test session

    In a private window, open your form page, type obviously fake data (for example Test Person, test@example.com, 555 0100) and submit. Do not use real personal or card details.

  2. Find the recording

    Open your recording tool and find that session. It can take a few minutes to appear. Filter by page URL or your test email's timing.

  3. Watch the form moments

    Look for readable text in fields. Properly masked fields show asterisks, blocks or blank boxes instead of the typed text.

  4. Check every input type

    Test text boxes, dropdowns, textareas, search boxes, checkout fields, login fields and chat widgets. Also check text that appears on screen after typing, such as a confirmation page showing the email.

  5. Review old recordings

    Scan a sample of past recordings from your highest-traffic forms. If you find PII, plan to delete those recordings after you fix masking.

Where to find masking settings in common tools (menus can change, so check the vendor docs)
ToolWhere to lookAttribute to mark an element
HotjarRecordings settings and the privacy options for keystrokesdata-hj-suppress
Microsoft ClaritySettings, Maskingdata-clarity-mask="True"
FullStoryPrivacy settings and element blockingfs-exclude or fs-mask classes
PostHogSession replay settings and masking optionsph-no-capture class

How to fix it

The fix has two layers. First, switch on the tool's global masking so every input is hidden by default. Second, add explicit mask attributes to any field or area that shows personal data, including text that is not a normal input.

Stop PII reaching your recordings
  1. Turn on global input masking

    In your recording tool's settings, choose the strictest masking mode for inputs (or all text). Prefer masking everything and unmasking safe areas over the reverse.

  2. Mark sensitive elements

    Add the vendor's mask or suppress attribute to fields and containers that show personal data: contact forms, checkout, account pages, order summaries and chat boxes.

  3. Exclude payment and login pages

    Where possible, do not record checkout, payment, login and account pages at all. Use URL rules in the tool to skip them.

  4. Check embedded forms

    Forms in iframes (booking widgets, payment providers, some CRM forms) may be outside your page's masking. Check the vendor's guidance, and exclude those pages if masking cannot be guaranteed.

  5. Delete exposed recordings

    Delete or ask the vendor to delete past recordings that contain PII, and review who has access and which share links are active.

  6. Update your privacy notice and consent setup

    Make sure your cookie banner and privacy policy describe session recording, and that recording only starts after consent where your rules require it.

Example: mask a form with Hotjar and Clarity attributeshtml
<form id="contact" data-hj-suppress data-clarity-mask="True">
  <input type="text" name="name" autocomplete="name">
  <input type="email" name="email" autocomplete="email">
  <input type="tel" name="phone" autocomplete="tel">
  <textarea name="message"></textarea>
  <button type="submit">Send</button>
</form>
Adding mask attributes by platform
  1. Use the form plugin's custom attributes

    Many form plugins let you add a CSS class or custom attributes to a form or field. Use the vendor's class option (for example ph-no-capture or fs-exclude) or add attributes in your theme template.

  2. Prefer global masking

    If attributes are hard to add, rely on the tool's global input masking and exclude form pages by URL.

Recording of a contact form

Before

  • Replay shows the typed name, email and phone
  • Anyone with a share link can read them
  • Past recordings hold personal data

After

  • Fields show as masked blocks or asterisks
  • Payment and login pages are not recorded
  • Old recordings with PII deleted

How to confirm it's fixed

Confirmation checklist
  • Record a fresh test session with fake data on every form page
  • Replay it and confirm no typed text is readable
  • Check dropdowns, textareas, search boxes and chat widgets
  • Check thank-you and confirmation pages for echoed personal data
  • Confirm payment, login and account pages are not recorded
  • Confirm old recordings containing PII are deleted
  • Confirm the recording script only loads after consent where required

How to prevent it happening again

Masking breaks when forms are redesigned, a new plugin is installed or a new landing page is built. Make masking part of the launch process rather than a one-off job.

Prevention habits
  • Add a recording privacy check to your launch checklist for every new form or page
  • Keep global masking set to the strictest mode
  • Review a sample of new recordings monthly
  • Limit who can access recordings and share links
  • Set a retention period so old recordings expire
  • Re-test after theme, plugin or form builder changes
How the problem usually unfolds (Example)
  1. Week 1

    Recording tool installed with default settings.

  2. Week 6

    New landing page with a custom form goes live, not masked.

  3. Week 10

    A teammate shares a recording link showing a customer's details.

  4. Week 11

    Masking turned on, old recordings deleted, launch checklist updated.

How FunnelGuard handles this

FunnelGuard does not check this yet. Whether a session recording tool is capturing typed form data is a possible future check, but today it is not something FunnelGuard tests.

What FunnelGuard does do nearby: a robot visitor runs your real customer journeys on a schedule, such as lead forms and checkouts, and checks each step, the tracking hits sent to platforms like GA4, Google Ads and Meta, and whether test leads reach your inbox and CRM. If a masking change or script edit breaks a form, that journey failure can show up. It will not tell you what your recording tool stored.

Questions people ask

Why is my session recording showing what people type in forms?

Input masking is probably off or incomplete. Some tools mask only passwords by default, and custom forms, embedded widgets or text shown outside a normal input field can slip through. Turn on the strictest masking mode and add the vendor's mask attribute to sensitive elements.

Does Hotjar record form inputs?

Hotjar suppresses keystrokes in some fields by default, but you should not assume every field is covered. Check its privacy settings and use the data-hj-suppress attribute on elements that show personal data, then verify with a test recording.

How do I mask form fields in Microsoft Clarity?

Open Settings, Masking in your Clarity project and choose a stricter mode. You can also add data-clarity-mask="True" to specific elements. Record a test session afterwards to confirm the fields are hidden.

Is it illegal to record form fields in session replays?

It can be. Recording personal data without a legal basis or without telling visitors can breach laws such as GDPR, and card data has separate rules. Ask your privacy lead or lawyer what applies to you, and mask by default.

How do I check whether my recordings contain PII?

Submit a form in a private window using fake data, then find and replay that session in your recording tool. If you can read what you typed, the field is not masked. Also scan a sample of older recordings from your busiest forms.

Should I record checkout and payment pages?

Usually not. Exclude payment, login and account pages using the tool's URL rules, and never rely on masking alone for card details. Shopify's hosted checkout also cannot be edited with your own attributes.

Can FunnelGuard detect PII in session recordings?

No. FunnelGuard does not check this yet. It can run your lead form and checkout journeys on a schedule and check steps, tracking hits and test lead delivery, but it does not inspect what your recording tool stores.

What should I do with recordings that already contain personal data?

Fix masking first, then delete the affected recordings or ask the vendor to. Review who has access and revoke old share links. Set a retention period so recordings expire automatically.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.