> ## 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/Ym5ZDQVtqh8A0PbT/images/Screenshot-2026-07-21-at-10.40.58-PM.png?fit=max&auto=format&n=Ym5ZDQVtqh8A0PbT&q=85&s=303352d21a5266dbcd33a8870b490508" alt="Screenshot2025 12 18at15 16 25" lightAlt="Screenshot2025 12 18at15 16 25" darkAlt="Screenshot2025 12 18at15 16 25" className="dark:hidden" width="2910" height="1190" data-path="images/Screenshot-2026-07-21-at-10.40.58-PM.png" />

<img src="https://mintcdn.com/userpilot/Ym5ZDQVtqh8A0PbT/images/Screenshot-2026-07-21-at-10.40.58-PM-1.png?fit=max&auto=format&n=Ym5ZDQVtqh8A0PbT&q=85&s=fced26711c587cd8a58928beaeb9174c" alt="Screenshot2025 12 18at15 16 25" lightAlt="Screenshot2025 12 18at15 16 25" darkAlt="Screenshot2025 12 18at15 16 25" className="hidden dark:block" width="2910" height="1190" data-path="images/Screenshot-2026-07-21-at-10.40.58-PM-1.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.
* **Detection of Frustrations** - Automatically flags signals that indicate a user struggled. It detects dead clicks, rage clicks, u-turns, form abandonment, and error clicks during a session.
* **Network & Console Capturing** - Records network errors, console errors, and uncaught exceptions and syncs them to the session replay in the built-in Dev Tools panel, so you can debug without pulling in engineering.

<img src="https://mintcdn.com/userpilot/Ym5ZDQVtqh8A0PbT/images/Screenshot-2026-07-21-at-10.44.42-PM.png?fit=max&auto=format&n=Ym5ZDQVtqh8A0PbT&q=85&s=78e302e286414a0a125e02044d40d642" alt="Screenshot2025 12 18at15 24 07" lightAlt="Screenshot2025 12 18at15 24 07" darkAlt="Screenshot2025 12 18at15 24 07" className="dark:hidden" width="2934" height="1196" data-path="images/Screenshot-2026-07-21-at-10.44.42-PM.png" />

<img src="https://mintcdn.com/userpilot/Ym5ZDQVtqh8A0PbT/images/Screenshot-2026-07-21-at-10.44.42-PM-1.png?fit=max&auto=format&n=Ym5ZDQVtqh8A0PbT&q=85&s=46c953b721cc5c1fbe549b1dd67151c0" alt="Screenshot2025 12 18at15 24 07" lightAlt="Screenshot2025 12 18at15 24 07" darkAlt="Screenshot2025 12 18at15 24 07" className="hidden dark:block" width="2934" height="1196" data-path="images/Screenshot-2026-07-21-at-10.44.42-PM-1.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.
* **Ignore Frustrations and errors** - Set rules to exclude specific interactions from frustration and error detection. Pick a frustration or error type (e.g. rage click), scope it to where it occurred (e.g. Path equals /checkout/payment), and Userpilot will stop flagging that interaction in sessions.

<img src="https://mintcdn.com/userpilot/NnB2h7c1hQahcBny/images/Screenshot-2026-07-22-at-12.21.47-AM.png?fit=max&auto=format&n=NnB2h7c1hQahcBny&q=85&s=b146f1fc91e1531122435c4f5e2c8b12" alt="Screenshot2025 12 18at15 45 01" lightAlt="Screenshot2025 12 18at15 45 01" darkAlt="Screenshot2025 12 18at15 45 01" className="dark:hidden" width="2898" height="1524" data-path="images/Screenshot-2026-07-22-at-12.21.47-AM.png" />

<img src="https://mintcdn.com/userpilot/NnB2h7c1hQahcBny/images/Screenshot-2026-07-22-at-12.21.47-AM-1.png?fit=max&auto=format&n=NnB2h7c1hQahcBny&q=85&s=1335f9c4b122c80d5345c1f23cefdeaa" alt="Screenshot2025 12 18at15 45 01" lightAlt="Screenshot2025 12 18at15 45 01" darkAlt="Screenshot2025 12 18at15 45 01" className="hidden dark:block" width="2898" height="1524" data-path="images/Screenshot-2026-07-22-at-12.21.47-AM-1.png" />

<Frame>
  <img src="https://mintcdn.com/userpilot/NnB2h7c1hQahcBny/images/Screenshot-2026-07-22-at-12.19.06-AM.png?fit=max&auto=format&n=NnB2h7c1hQahcBny&q=85&s=5ade9294943134e97fac025c77cb45ee" alt="Screenshot 2026 07 22 At 12 19 06 AM" width="2896" height="1532" data-path="images/Screenshot-2026-07-22-at-12.19.06-AM.png" />
</Frame>

### 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/NnB2h7c1hQahcBny/images/Screenshot-2026-07-22-at-12.21.47-AM-2.png?fit=max&auto=format&n=NnB2h7c1hQahcBny&q=85&s=fc06829857e75a7e8976852224f57ca4" alt="Screenshot2025 12 18at15 46 01" lightAlt="Screenshot2025 12 18at15 46 01" darkAlt="Screenshot2025 12 18at15 46 01" className="dark:hidden" width="2898" height="1524" data-path="images/Screenshot-2026-07-22-at-12.21.47-AM-2.png" />

<img src="https://mintcdn.com/userpilot/NnB2h7c1hQahcBny/images/Screenshot-2026-07-22-at-12.21.47-AM-3.png?fit=max&auto=format&n=NnB2h7c1hQahcBny&q=85&s=3880c2698315df11d2a2aa209cd27747" alt="Screenshot2025 12 18at15 46 01" lightAlt="Screenshot2025 12 18at15 46 01" darkAlt="Screenshot2025 12 18at15 46 01" className="hidden dark:block" width="2898" height="1524" data-path="images/Screenshot-2026-07-22-at-12.21.47-AM-3.png" />

## See also

* [Data Retention](/configure/data-retention/data-retention) — control how long Userpilot stores your analytics events and session replays.

### FAQs

<AccordionGroup>
  <Accordion title="If I mask the text of an element, would Userpilot still capture the text and display it masked in the replays?">
    No, Userpilot would not capture the text of masked elements. So the text associated with the masked elements would not be saved in our database. 
  </Accordion>
</AccordionGroup>

<Frame>
  [For any questions or concerns please reach out to **support@userpilot.com**](mailto:support@userpilot.com)
</Frame>
