Skip to main content

Overview

Rehearsals provides extensive privacy controls to help you comply with data protection regulations and protect sensitive user information.
Privacy is built into Rehearsals from the ground up. Many protections are enabled automatically without any configuration.

Understanding the Trade-offs

For Rehearsals to deliver the most accurate simulations and projections of your customers, it’s important that we can see email addresses and full names (or receive this information through the Identity API). This allows us to merge behavioral data with preferential data to create better insights. If you choose to block this information, you’ll need to rely on providing your own preferential data and custom identifiers. If you have questions about this approach, please contact our support team to discuss your specific requirements.

Automatic Privacy Features

Out of the box, Rehearsals automatically:
Masks all password fields - Password inputs are always masked
Respects privacy attributes - Elements with privacy classes are handled appropriately
Sanitizes sensitive data - Credit card numbers and similar patterns are automatically detected and masked

CSS Class-Based Privacy Controls

Add these classes to any HTML element to control recording behavior:
dp-block
CSS Class
Completely blocks the element from recording (appears as placeholder)
<div class="dp-block">
  <!-- This entire section will be blocked -->
  <input type="text" name="ssn" />
</div>
dp-ignore
CSS Class
Ignores the element entirely (won’t appear in recordings at all)
<div class="dp-ignore">
  <!-- This won't appear in recordings at all -->
</div>
dp-mask-text
CSS Class
Masks all text content within the element
<span class="dp-mask-text">
  Sensitive information here <!-- Will appear as ******** -->
</span>

Common Use Cases

Masking Personal Information

<!-- Phone numbers -->
<input type="tel" class="dp-mask-text" placeholder="Phone" />

<!-- Social Security Numbers -->
<input type="text" class="dp-mask-text" placeholder="SSN" />

<!-- Address -->
<input type="text" class="dp-mask-text" name="street-address" />

Ignoring Irrelevant Content

<!-- Chat widget -->
<div id="intercom-widget" class="dp-ignore">
  <!-- Third-party chat widget content -->
</div>

<!-- Admin controls (not visible to regular users) -->
<div class="admin-panel dp-ignore">
  <!-- Admin-only content -->
</div>

Dynamic Privacy Configuration

For advanced users who understand CSS selectors, you can configure privacy settings dynamically through your Rehearsals dashboard. This is useful when you need to block or mask elements based on specific CSS classes or IDs.

CSS Selector Examples

/* Class selectors */
.user-email
.customer-phone
.payment-info

/* ID selectors */
#credit-card-form
#user-profile
#sensitive-data

/* Attribute selectors */
[data-sensitive="true"]
input[name="ssn"]

Configuration Steps

1

Navigate to Privacy Settings

Log into your Rehearsals Dashboard, go to Settings, then click on Privacy
2

Add Custom Selectors

Add selectors for blocking or masking specific elements
3

Test Your Configuration

After saving your changes, visit your website and then watch any session replays created after your save to test if things are working as expected
If you operate in Europe or California, you will most likely need to:
  • Inform users about session recording in your privacy policy
  • Obtain consent before recording (especially for EU visitors)
  • Allow users to opt-out of recording
  • Provide clear information about what data is collected
These are suggestions and guidelines. Please consult with your legal team and follow all applicable local laws and regulations in your jurisdiction.

Support

Have questions about privacy controls or compliance?

Contact Support

Our team is here to help you configure Rehearsals for your privacy needs