On this page
What this issue is
A session recording (also called session replay) is a playback of a visitor's session: mouse moves, clicks, scrolls and page content. Most tools rebuild the page from the HTML and the changes the browser makes to it. If a visitor types into a field and that value is captured, it can show up in the replay.
This issue is when recordings contain card numbers, CVC codes, passwords, or other sensitive input. It usually happens because masking was switched off, the checkout is a custom form the tool does not recognise, or the sensitive value sits in a normal text element rather than an input.
Why it costs you leads or sales
This is mainly a trust and legal problem, not a conversion bug. Sensitive data stored by a third-party vendor can breach privacy law such as GDPR, and card data in recordings can breach payment card rules (PCI DSS). The result can be fines, forced data deletion, a vendor account being suspended, and a breach notice to customers.
It also hits sales indirectly. If you must pause recording, you lose the behaviour data that helps you fix checkout drop-off. If customers learn their details were exposed, they stop buying.
- Visitor types cardValue entered in a form field
- Replay script capturesMasking off or field missed
- Stored by vendorSensitive data on third-party servers
- Team watches replayStaff can see the data
The leak happens at the capture step, before anyone reviews the recording.
Without masking, what the visitor types is sent along with the page activity.
How to check if your site has it
Open recordings of checkout and login pages
In your replay tool, filter by URL (for example /checkout, /cart, /login, /account) and watch several sessions.
Look for readable typed values
Pause when the visitor fills a field. Card number, expiry, CVC, password, address and email should show as dots, stars or blocks.
Check page text, not only inputs
Order summaries, account pages and confirmation screens can show personal data as plain text that inputs masking does not cover.
Run your own test session
Open the site in a private window, type a fake value like 4111 1111 1111 1111 (a well-known test number, never a real card) into a field and then find that recording. Delete it afterwards.
Review the tool's settings
Find the privacy or masking setting and note whether it is set to mask all inputs or only some.
How to fix it
The exact menu names change between tools, so check your vendor's current documentation. The approach is the same: mask by default, suppress known sensitive areas, and do not record payment or login pages at all.
Check how the recorder is installed
It may be a plugin or a snippet in your theme. Find it, then apply the vendor's masking settings in the vendor dashboard.
Exclude checkout and account pages
For WooCommerce, exclude URLs such as /checkout/ and /my-account/ in the tool's settings, or load the script only on other pages.
Review where the script runs
Check theme code and Settings > Customer events for the recorder. Shopify's hosted checkout limits what third-party scripts can access, but the cart and account pages are still yours to protect.
Mask account and cart content
Add the vendor's mask attribute to elements that show names, addresses or emails, and exclude login and account pages.
Find the recorder tag
Open the Hotjar, Clarity or custom HTML tag in your container.
Block it on sensitive pages
Add a trigger exception for Page Path matching checkout, payment, login or account URLs. Publish and test in Preview mode.
Add mask attributes to elements
Select the element, open Settings > Custom attributes and add the vendor's attribute, for example data-clarity-mask with value true.
Limit the script by page
Place the recorder code in page-level custom code rather than site-wide, leaving out payment and login pages.
Check funnel and site tracking code
Look at Settings > Custom Code and each funnel step's tracking code for a recorder.
Remove it from payment steps
Keep it only on pages without sensitive input, and apply the vendor's masking settings.
Find the script
Check Settings > Custom code (Wix's Marketing integrations area may also hold it).
Apply it to selected pages only
When adding custom code, choose specific pages and leave out login, members area and payment pages.
Find the script
Check Settings > Advanced > Code Injection and page-level code injection.
Restrict it
Move the code to individual pages instead of the site-wide header and keep it off account and checkout pages.
Add mask attributes in templates
Mark every sensitive element with the vendor's attribute (see the snippet below).
Do not load the script on payment routes
Add a condition in your layout so the recorder is skipped on checkout, login and account routes.
<!-- Hotjar: hide an element's content from recordings -->
<div data-hj-suppress>Order for jane@example.com</div>
<!-- Microsoft Clarity: mask an element's content -->
<div data-clarity-mask="True">Order for jane@example.com</div>
<!-- Avoid autofill and mark card fields as sensitive -->
<input type="text" name="card" autocomplete="cc-number" data-hj-suppress data-clarity-mask="True">Before
- Input masking off or partial
- Script runs on checkout and login
- Order and account text visible in replays
After
- All inputs masked by default
- Payment and login pages excluded
- Personal text elements marked for suppression
How to confirm it's fixed
- Record a fresh test session after the changes and fill every sensitive field with fake values
- Confirm the replay shows masked characters, not the typed values
- Check order summaries, account pages and error messages for readable personal data
- Confirm checkout and login pages produce no recordings at all, if you excluded them
- Delete older recordings that contain sensitive data
- Test on mobile as well as desktop
How to prevent it happening again
- Keep the strictest masking mode as the default for every new project
- Use hosted payment fields from your payment provider
- Re-run the test-session check after every checkout, theme or form redesign
- Review recording tool settings whenever someone changes roles or a new vendor is added
- Set a short retention period for recordings
- Mention session recording in your privacy policy and cookie consent, and load it only after consent where the law requires
How FunnelGuard handles this
FunnelGuard does not check this yet. It does not look inside your session recording tool, so it cannot tell you whether card or password fields are being captured. It is a possible future check.
What FunnelGuard does cover nearby: a robot visitor runs your real journeys, such as lead forms and checkouts, on a schedule and checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. That helps you notice when a checkout change breaks the journey, which is a good moment to re-run your masking check.
To watch for this issue today, add a recurring task to watch a few checkout and login recordings each month and after every site release. You can also use your replay tool's own privacy settings and any built-in sensitive-data reports it offers.
Questions people ask
Do session recordings capture credit card numbers?
They can. If masking is off, or card fields are built into your own page and not covered, the typed values may be stored in the recording. Card fields from a payment provider's iframe are generally not readable by your page scripts.
How do I stop Hotjar from recording password and card fields?
Hotjar suppresses keystrokes in password fields by default, but you should still check your settings and add the data-hj-suppress attribute to other sensitive elements. Also exclude payment and login pages from recording. Confirm with a test session.
Does Microsoft Clarity record passwords and card details?
Clarity masks sensitive inputs such as passwords and card fields by default in its standard mode, but custom fields and page text can still need manual masking. Use the data-clarity-mask attribute and review its masking mode in project settings, then verify with a test recording.
Is session replay compliant with GDPR?
It can be, but only with care. You need a lawful basis, usually consent, a clear privacy notice, masking of personal and sensitive data, and limited retention. Ask your data protection lead or legal adviser for your specific case.
What should I do if recordings already contain card numbers?
Delete the affected recordings in the vendor dashboard, fix the masking, and tell your security or privacy lead. They can decide whether you must notify anyone under payment card or privacy rules.
Should I record my checkout page at all?
Many teams choose not to record payment steps. If you do, use strict masking and verify it regularly. Recording earlier steps like the cart and product pages usually gives the behaviour insight with much lower risk.
Can FunnelGuard tell me if my session recordings leak card data?
No. FunnelGuard does not check session recording content yet. It monitors your funnel steps, tracking hits and lead delivery, so you need to review recordings manually or with your replay tool's privacy features.
Related issues
- TRK-355Email address in page URL query string sent to GA4Fix guide
- TRK-357Name or address in thank-you URL sent to pixelsFix guide
- TRK-360PII in dataLayer pushed to all vendorsFix guide
- TRK-361Hashed PII sent without consentFix guide
- TRK-363Health or financial sensitive data in event namesFix guide
- TRK-365Search query with PII in site search trackingFix guide