auto_capture controls what your SDK collects automatically (clicks, inputs, text, etc.) and how sensitive data is masked or excluded.
Quick start
If you don’t want to override a field, simply omit it. Using undefined in JavaScript is equivalent to “not set”.
Options
* Defaults shown assume your project’s global defaults enable auto capture and text collection. If your SDK’s default differs, omit the field or set it explicitly.
Selector tips
- Prefer scoped attributes for stability over brittle class names:
- Exclude:
[data-up-ignore="true"] - Mask:
[data-up-mask]
- Exclude:
- To exclude an entire component tree, target the container:
#billing-widget, .chatbot-shell - To mask all inputs except a whitelist, combine selectors:
input:not([data-up-allow])
Examples
Disable auto capture entirely
Exclude a component and mask specific fields
Strip sensitive attributes globally
Best practices
- Attribute contracts: Use
data-up-*attributes in your app code so rules survive refactors and CSS changes. - Review regularly: Audit
excluded_elementsandmasked_elementsduring major UI releases.
Type definition (optional)
Troubleshooting
- “My rule doesn’t apply” – Verify the selector matches the actual rendered DOM, not framework component names.
- “PII still appears” – Add both a mask rule for the element and an exclude attribute rule if PII is in attributes.
- Performance – Prefer fewer, broader selectors (e.g., container IDs) over many granular ones.