> ## Documentation Index
> Fetch the complete documentation index at: https://docs.userpilot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Capture & Privacy

> The Data Capture & Privacy settings allow you to configure how user interaction data is collected, recorded, masked, and restricted across features like Session Replay and Auto-capture (raw events). 

### Use Cases

* **Control what user data is collected** – Decide which interactions, inputs, and sessions are captured to balance insights with privacy requirements.
* **Protect sensitive information** – Mask or exclude specific elements, text inputs, URLs, or pages to prevent PII from being recorded.
* **Enable secure session replays** – Observe real user behavior while ensuring sensitive fields and actions are hidden or excluded.
* **Optimize session replay usage** – Make the most of your sessions allowance by recording only users or segments that are relevant to your analysis.
* **Support compliance and governance** – Configure capture rules that align with GDPR, CCPA, or internal data-handling policies.

## Key Controls & Options

Before getting started, navigate to the ‘Data Capture & Privacy’ tab within your settings.

<img src="https://mintcdn.com/userpilot/3R7kPXhVasT4PvBg/images/Screenshot2025-12-18at15.16.25.png?fit=max&auto=format&n=3R7kPXhVasT4PvBg&q=85&s=95e522e46dcc0290e0f8201ba95b33d4" alt="Screenshot2025 12 18at15 16 25" width="1927" height="963" data-path="images/Screenshot2025-12-18at15.16.25.png" />

### 1. Core data capture settings

* **Automatically capture frontend events**

  Enable Userpilot’s **autocapture** feature (raw events) to record frontend interactions automatically: clicks, text input changes, and form submissions. When enabled, Userpilot will start collecting this data once the SDK is active in your app.
* **Session playback toggle**

  Enable or disable **Session Replay** entirely. If turned off, Userpilot won’t store or display replayable session data
* **Capture text input**

  Enable text capture if you want typed interactions to show up in replays; if disabled, all text inputs are masked.

<img src="https://mintcdn.com/userpilot/3R7kPXhVasT4PvBg/images/Screenshot2025-12-18at15.24.07.png?fit=max&auto=format&n=3R7kPXhVasT4PvBg&q=85&s=1e9bc13a22b939db944ddd18b8f80e58" alt="Screenshot2025 12 18at15 24 07" width="1946" height="969" data-path="images/Screenshot2025-12-18at15.24.07.png" />

### 2. Element capture restrictions

Use element-level rules to control how specific UI elements are captured in auto-captured events and session replays.

* **Mask elements**

  Hide the text content of selected elements in session replays. Masked elements remain visible in replays, but their content is replaced so sensitive information isn’t exposed.
* **Exclude elements**

  Fully exclude selected elements from data capture. Interactions, text, and metadata related to these elements won’t be recorded in raw events or session replays.
* **Exclude attributes**

  You can also exclude specific **attributes** (for example, `value`, `placeholder`, or custom data attributes) to prevent sensitive or unnecessary information from being captured.

<img src="https://mintcdn.com/userpilot/3R7kPXhVasT4PvBg/images/Screenshot2025-12-18at15.32.29.png?fit=max&auto=format&n=3R7kPXhVasT4PvBg&q=85&s=b5a6457731eda73c049b7903aab77d53" alt="Screenshot2025 12 18at15 32 29" width="1922" height="959" data-path="images/Screenshot2025-12-18at15.32.29.png" />

### 3. Data capture restrictions

Data capture restrictions allow you to limit where auto-captured events and session data are collected.

* **Restrict by domain**

  Exclude specific domains or subdomains from being recorded. This is useful for omitting sensitive areas such as authentication flows, billing pages, or internal tools.
* **Restrict by user location**

  Control data capture based on a user’s physical location (for example, country or region). This helps you align data collection with regional privacy requirements or internal policies.

<img src="https://mintcdn.com/userpilot/3R7kPXhVasT4PvBg/images/Screenshot2025-12-18at15.45.01.png?fit=max&auto=format&n=3R7kPXhVasT4PvBg&q=85&s=917ae5d1e9bb68423f04e456e9d7385c" alt="Screenshot2025 12 18at15 45 01" width="1923" height="959" data-path="images/Screenshot2025-12-18at15.45.01.png" />

### 4. Session replay restrictions

Session replay restrictions let you control *whose* sessions are recorded and stored.

* **Segment-based recording**

  Limit session replays to specific user or company segments (for example, paid users, users on a certain plan, or users in a specific region).

<img src="https://mintcdn.com/userpilot/3R7kPXhVasT4PvBg/images/Screenshot2025-12-18at15.46.01.png?fit=max&auto=format&n=3R7kPXhVasT4PvBg&q=85&s=187e3a5f478299c3af6a13f493437aa7" alt="Screenshot2025 12 18at15 46 01" width="1905" height="959" data-path="images/Screenshot2025-12-18at15.46.01.png" />
