On this page
What this issue is
A session recording tool (also called session replay) adds a script to your site that records how visitors use it: clicks, scrolls and sometimes keystrokes. You watch the sessions later to see where people get stuck. Examples include Hotjar, Microsoft Clarity, FullStory and Smartlook.
The problem appears when the recording includes what people type into form fields. A card number, expiry date, CVV, password, email or address can end up stored on the vendor's servers, and visible to anyone on your team with access to the tool.
It often happens quietly. Masking defaults differ by tool and setting. Custom checkouts, embedded payment forms, fields with unusual names, and content loaded after the page starts can slip through.
- Visitor types card numberCheckout form field
- Replay script reads inputMasking off or field not covered
- Sent to vendor serversStored with the session
- Visible to your teamPlayback shows the digits
The leak happens at the recording step, long before anyone notices.
Why it costs you leads or sales
This issue rarely drops conversions directly. The cost is legal, financial and reputational, and it can force you to change how you track users.
- Card data stored by a tool that is not part of your payment setup can create problems with card scheme rules (PCI DSS) and with your payment provider.
- Passwords and personal data stored without a clear purpose can breach privacy laws such as GDPR.
- A vendor breach or a staff member with replay access exposes real customer data.
- Regulators or your payment provider may ask you to stop recording on checkout pages, which removes insight exactly where you need it.
- Customers who learn their card was recorded lose trust and do not come back.
How to check if your site has it
List every replay tool on your site
Check Google Tag Manager, your theme or plugin settings and the page source for scripts from Hotjar, Clarity, FullStory, Smartlook, Mouseflow, Lucky Orange or similar. Also ask your team what they installed.
Watch recent checkout and login sessions
Filter recordings by URLs such as /checkout, /cart, /login, /account. Play several and look at the form fields while the visitor types.
Look for readable text in inputs
Real digits, plain-text passwords, names, emails or addresses mean masking is not working. Asterisks or blocks mean the field is masked.
Test it yourself with fake data
Use a test card number from your payment provider's docs, or a made-up value, in a staging or live form. Wait for the session to appear, then play it back.
Check embedded payment forms
Fields inside an iframe from your payment provider (Stripe, for example) are normally outside the reach of your page scripts. Fields rendered directly in your own page are not.
Search the tool's data
Some tools let you search or filter text inputs or export events. Look for patterns like 16-digit numbers.
How to fix it
Work in this order: stop new capture, then clean up old data. Setting names change over time, so check your tool's current documentation if a menu differs from what is described here.
Turn on the strictest masking
In your replay tool's privacy settings, choose the option that masks all text input (and ideally all text) by default. Hotjar suppresses keystrokes and masks some fields by default, and Clarity has masking modes (Strict, Balanced, Relaxed). Pick the strictest and confirm it in the settings.
Tag sensitive elements explicitly
Add the tool's suppression attribute to card, password, address and account fields or their wrapper. For example Hotjar uses data-hj-suppress, Clarity uses data-clarity-mask="True" and FullStory uses the fs-exclude class.
Exclude whole sensitive pages
If you cannot be sure of masking, stop recording on checkout, payment, login and account URLs. Most tools let you set URL rules, or you can load the script only on other pages.
Use hosted payment fields
Where possible, use your payment provider's hosted fields or redirect so card inputs live in the provider's iframe, not in your page.
Delete data already captured
Delete affected recordings in the tool, or ask the vendor's support to purge them. Reduce who has access and shorten the retention period.
Tell the right people
If real card data was stored, contact your payment provider and whoever handles compliance or data protection for your business.
<!-- Hotjar -->
<input type="text" name="card_number" data-hj-suppress>
<!-- Microsoft Clarity -->
<input type="text" name="card_number" data-clarity-mask="True">
<!-- FullStory -->
<input type="text" name="card_number" class="fs-exclude">Find how the tool is installed
Check the plugin list for an official plugin (for example Hotjar or Clarity) or a code snippet in your theme or a header/footer plugin.
Change privacy settings in the tool
Set masking in the vendor dashboard, not in WordPress. Then add suppression attributes to custom form fields through your form plugin's field settings or theme template.
Exclude checkout pages
For WooCommerce, stop the script loading on the cart, checkout and my-account pages with the plugin's page rules or a conditional in your theme.
Review installed apps and theme code
Check Online Store > Themes > Edit code for pasted scripts, and Settings > Apps for replay apps. Look in Settings > Customer events for custom pixels.
Apply masking in the tool
Shopify's hosted checkout limits what your scripts can access, but account and login pages still run theme code. Set strict masking in the tool and review recordings of those pages.
Find the replay tag
In your container, open Tags and look for Hotjar, Clarity or a Custom HTML tag with the vendor script.
Restrict where it fires
Add a trigger exception for Page Path containing checkout, payment, login or account. Preview in Tag Assistant, then publish.
Find the script
Check Site settings > Custom code, and page-level custom code, for the replay snippet.
Add attributes to form fields
Select the input, open Settings > Custom attributes, and add the tool's suppression attribute. Move the script from site-wide to specific pages if needed.
Check funnel and site tracking code
Look in funnel or website settings under tracking code (header and footer) for the replay script.
Remove it from payment and login steps
Add the script only to steps that have no sensitive fields, or use custom code with attributes on the fields where the builder allows it.
Find the snippet
Check Settings > Custom code (Header or Body) and any connected app from the Wix App Market.
Limit pages
When adding or editing custom code, choose specific pages instead of all pages, leaving out checkout and member login pages.
Find the script
Check Settings > Developer Tools > Code Injection, and page-level code injection.
Move it off sensitive pages
Remove it from the site-wide header and add it page by page to non-sensitive pages only. Squarespace's hosted checkout limits script access, but test your account pages.
Load the script conditionally
Only include the replay script on templates without sensitive inputs.
Mark inputs in your templates
Add the suppression attribute to every card, password and personal data input in your components, so new forms inherit it.
Before
- Card number visible as typed digits in playback
- Password field shown in plain text
- Replay script loads on every page
- Old recordings kept indefinitely
After
- Inputs masked in playback
- Sensitive fields tagged with suppression attributes
- Script excluded from checkout and login
- Old sensitive recordings deleted, short retention set
How to confirm it's fixed
Run a fresh test
Complete a checkout or login with fake data in a private browser window. Wait for the new session to appear.
Play it back
Every sensitive field should show as masked, blank or hidden. Check each form step, including address and account fields.
Check the network request
If you excluded pages, open browser DevTools > Network on the checkout page and confirm no requests go to the replay vendor's domain.
Confirm old data is gone
Search the tool again for previously affected sessions and confirm they were deleted.
How to prevent it happening again
- Keep masking on strict by default and only unmask specific non-sensitive elements.
- Add the suppression attribute to new forms as part of your launch checklist.
- Review replay tools after any checkout, theme or form redesign.
- Limit who can view recordings and set a short retention period.
- Control who can edit your tag manager container, since a new replay tag can be added there.
- Review recordings of checkout and login monthly with fake data tests.
- Check your privacy policy and consent banner cover session recording.
How FunnelGuard handles this
FunnelGuard does not check for this yet. It cannot tell you whether a session recording tool is capturing card or password fields. It is a possible future check.
What FunnelGuard does 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 to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a change to your checkout or tag setup breaks a step, you get one alert with a screenshot and a likely cause. It never enters real card details and stops before payment unless your store's test mode is set up.
To watch for this issue today, put a monthly reminder in your calendar to run the fake-data test above, watch the playback, and review which scripts load on your checkout. Your replay tool's own privacy settings and your browser's DevTools Network tab are the best manual checks.
Questions people ask
Can session recording tools capture credit card numbers?
Yes, if the card field is in your own page and masking is off or does not cover that field. Most tools mask some inputs by default, but custom forms and unusual field names can slip through. Check by playing back a test session.
Why is my Hotjar or Clarity recording showing passwords?
Usually masking is set to a relaxed mode, the field is not recognised as a password input, or it was customised with a non-standard element. Switch to the strictest masking mode and add the tool's suppression attribute to the field.
How do I stop session recordings capturing form fields?
Turn on the strictest input masking in your replay tool, add its suppression attribute (such as data-hj-suppress or data-clarity-mask) to sensitive fields, and exclude checkout and login pages. Then replay a fake-data session to confirm.
Is it a problem if a session replay tool records card data?
It can be. Storing card data in a tool outside your payment setup may conflict with card scheme rules (PCI DSS) and your provider's terms, and personal data may need a lawful basis under privacy laws. Ask your payment provider or a compliance adviser.
Do Stripe or PayPal embedded fields get recorded?
Fields in an iframe hosted by the payment provider are normally not readable by your page scripts, so replay tools cannot capture the digits. Fields you build yourself in the page can be recorded.
How do I delete session recordings that contain sensitive data?
Open your replay tool, find the affected sessions, and delete them from the dashboard, or ask the vendor's support to purge them. Then set a shorter retention period and restrict who can view recordings.
Does FunnelGuard detect session recording capturing card fields?
No. FunnelGuard does not check this yet. It monitors your funnel steps, tracking hits and lead delivery, so it can alert you when a checkout or form breaks, but you need to review recordings and masking yourself.
Related issues
- OPS-205Third-party pixel collecting PII without consentFix guide
- OPS-195Magecart / card skimmer script on checkoutFix guide
- OPS-196Unknown third-party domain appears on checkout pageFix guide
- OPS-199Tag manager container edited by unknown userFix guide
- OPS-200Too many third-party scripts (performance and risk)Fix guide
- OPS-197Compromised npm/CDN library serving malicious codeFix guide