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.
- Visitor typesName, email, phone in the form
- Recording scriptCaptures page changes and inputs
- Vendor serversReadable text stored
- 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
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.
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.
Watch the form moments
Look for readable text in fields. Properly masked fields show asterisks, blocks or blank boxes instead of the typed text.
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.
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.
| Tool | Where to look | Attribute to mark an element |
|---|---|---|
| Hotjar | Recordings settings and the privacy options for keystrokes | data-hj-suppress |
| Microsoft Clarity | Settings, Masking | data-clarity-mask="True" |
| FullStory | Privacy settings and element blocking | fs-exclude or fs-mask classes |
| PostHog | Session replay settings and masking options | ph-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.
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.
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.
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.
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.
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.
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.
<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>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.
Prefer global masking
If attributes are hard to add, rely on the tool's global input masking and exclude form pages by URL.
Edit theme form sections
In Online Store, Themes, Edit code, add the mask attribute to the form markup in your contact form and customer account templates.
Leave checkout to Shopify
Checkout pages are controlled by Shopify, so you cannot add attributes there. Do not rely on your recording tool capturing them, and check what your tool or app is allowed to record on checkout.
Fire the recording tag only where safe
Use trigger conditions (Page Path) so the recording tag does not fire on payment, login or account pages.
Add masking via a custom HTML tag if needed
If you cannot edit the page, a Custom HTML tag can add the attribute to form elements after load. Test it, because late changes may miss early typing.
Add a custom attribute
Select the form block, open Element settings, Custom attributes, and add the vendor's attribute (for example data-clarity-mask with value True).
Publish and retest
Publish the site, then record a test session and check the fields.
Use the custom code area
Where the builder lets you add custom code or attributes to a form element, add the mask attribute. Otherwise rely on global masking in the recording tool.
Check embedded forms
Forms embedded by iframe on other sites may not be maskable from the host page. Exclude those pages from recording if so.
Rely on global masking
Wix has limited access to element attributes. Use the tool's strictest masking mode and URL exclusions for form pages.
Use Velo only if you need it
If you use Velo (Wix's coding layer), you can set attributes on elements in code. Test the result in a recording.
Install the tool via Code Injection
Add the recording script under Settings, Advanced, Code Injection, then use the vendor's global masking setting.
Exclude forms if needed
Squarespace forms are hard to tag individually. Use URL rules to skip pages with sensitive forms.
Add attributes in your templates
Add the vendor's mask attribute or class to form elements and containers that show personal data, then deploy.
Initialise the tool with masking options
Where the vendor's snippet supports options (for example PostHog's session recording masking settings), set them to mask all inputs.
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
- 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.
- 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
Week 1
Recording tool installed with default settings.
Week 6
New landing page with a custom form goes live, not masked.
Week 10
A teammate shares a recording link showing a customer's details.
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.
Related issues
- TRK-241Session recording loading before consentFix guide
- TRK-238Hotjar script missing or wrong site IDFix guide
- TRK-239Microsoft Clarity missing or wrong project IDFix guide
- TRK-242Heatmap tool slowing page (heavy script)Fix guide
- TRK-245PostHog / Heap autocapture missing conversionFix guide
- TRK-243Mixpanel / Amplitude / Segment events missingFix guide