Privacy-safe defaults
- URL query strings and fragments are removed;
- keys such as
password,secret,token,authorization,cookie,api_key, and credit-card fields are recursively redacted from context; - interaction labels and raw error stacks are withheld in masked mode;
- DOM text is masked during session replay;
- all input and
contenteditablevalues remain masked, including when visible page text is allowed.
Block or mask DOM content
The SDK recognizes privacy attributes without application-specific recorder code:Allow visible page text carefully
SetdefaultPrivacyLevel: 'allow' only after marking every sensitive region. Input values are still
masked, and the configured maskTextSelector plus contenteditable elements remain masked.
Control URLs and network collection
KeeptrackUrlQueryString: false unless the application guarantees that queries never contain
identifiers or secrets. Exclude sensitive routes or network endpoints before collection:
allowedTracingUrls controls which origins can contribute trace context. The option does not enable request
or response body capture; the SDK records timing and sanitized URL metadata.
Review before production
1
Record a controlled test session
Exercise sign-in, checkout, profile, search, and error flows with non-production test data.
2
Inspect every event surface
Review session metadata, action names, URLs, error stacks, custom context, and DOM replay.
3
Add selectors and exclusions
Block sensitive subtrees and exclude routes that do not need collection.
4
Repeat after UI changes
Treat privacy selectors as production configuration and test selector behavior after markup changes.
Session replay
Configure DOM recording after defining the privacy boundary.