Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Session recordings capturing card or password fields: fix

TRK-364High impactCould addBy FunnelGuardPublished Updated
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.

How card data ends up in a recording
  1. Visitor types cardValue entered in a form field
  2. Replay script capturesMasking off or field missed
  3. Stored by vendorSensitive data on third-party servers
  4. Team watches replayStaff can see the data

The leak happens at the capture step, before anyone reviews the recording.

Sensitive input reaching a recording tool

Without masking, what the visitor types is sent along with the page activity.

How to check if your site has it

Audit your recordings
  1. Open recordings of checkout and login pages

    In your replay tool, filter by URL (for example /checkout, /cart, /login, /account) and watch several sessions.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Mask sensitive fields by platform
  1. 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.

  2. 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.

Example: vendor mask attributes (check your tool's docs)html
<!-- 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">
Recording setup before and after

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

Confirmation checks
  • 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

Prevention habits
  • 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.

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.