Public documentation
Documentation indexRead as MarkdownData privacy and lifecycle
Control telemetry at the point of collection: choose the signals you need, remove sensitive content before export, and review the payload from a representative session. This page describes the Corridora browser agent's protections and their boundaries. Organization storage controls are covered in the protected administration guide.
Use browser RUM setup for installation and configuration. Return to the documentation home for other guides.
Browser collection defaults
The browser agent defaults to pending consent and remains inactive until the host site's analytics purpose is granted. Before a grant, it does not create sessions, access session storage, register instrumentation, inject trace headers or queue telemetry. After a grant, available signals include navigation and resource timing, fetch and XMLHttpRequest spans, uncaught errors and unhandled rejections. The current consent-aware runtime omits document navigation timing and Web Vitals entirely, so document-wide observations cannot backfill earlier activity. Records include application identity, browser/device context, a session identifier, and page or request URLs where applicable.
These content-capture options are unavailable in this release, even when requested:
- Console capture.
- User-action click logs.
- Interaction spans for clicks, input, and focus.
- DOM mutation spans.
Long-task observations remain optional and are disabled by default. Their observation must start after the current grant.
Optional collection may expose additional application data. Error messages, stack traces, console arguments, custom attributes, DOM attributes, and selectors can contain sensitive values even when URL sanitization is enabled. Review those fields in your own application.
Your consent platform owns the banner, analytics purpose, saved choices, evidence, expiry and preference controls. Forward its current decision and every change to agent.setConsent() or window.CorridoraRum.setConsent(), including changes made in another tab. Missing, failed or unrecognized choices remain inactive. See the consent adapter example.
setConsent("denied") synchronously closes collection and transport gates, then stops instrumentation and retries, discards queued telemetry, and removes only this service's Corridora session-storage entry. Its promise resolves after cleanup. A cleanup failure leaves the gates closed. A later grant starts a fresh session and cannot export records from before withdrawal. forceFlush() and resetSession() do nothing while consent is pending or denied.
Loading the inactive script still contacts its asset host. Have your CMP defer script insertion when that request must also wait for consent, and read the current choice again after loading. Corridora's controller does not enforce consent for another browser SDK or application code that collects data independently.
URL sanitization
The default browser URL sanitizer removes URL usernames and passwords. It replaces the values of these query parameter names with [REDACTED], matching names case-insensitively:
token, key, password, secret, api_key, api-key, apikey,
access_token, access-token, accesstoken,
refresh_token, refresh-token, refreshtoken,
authorization, auth, code
The sanitizer applies to recognized URL fields for pages, requests, navigation and resource timing, and manual spans, including:
url.full
page.url
browser.document.url.full
http.url
browser.web_vital.resource_url
resource.url
Other query parameters and URL paths are retained; fragments are stripped by default. For example, email, customer_id, and a customer identifier embedded in a path are not removed by the default policy. Invalid URL strings become [REDACTED]. The URL sanitizer does not inspect arbitrary log bodies, error messages, headers, or custom attribute names for secrets.
Supply an application-specific policy
Pass a redactUrl function during programmatic initialization. A custom function replaces the default URL sanitizer, so it must implement every URL protection you want to retain.
The following example removes credentials, all query parameters, and the fragment. It preserves the path; adapt path handling if your URLs contain personal identifiers.
function redactUrl(rawUrl) {
try {
const url = new URL(rawUrl, window.location.href);
url.username = "";
url.password = "";
url.search = "";
url.hash = "";
return url.toString();
} catch {
return "[REDACTED]";
}
}
const agent = window.CorridoraRum?.init({
endpoint: "https://ingest.corridora.ai",
ingestKey: "YOUR_RUM_INGEST_KEY",
serviceName: "storefront-web",
consent: "pending",
redactUrl,
});
Use this in place of automatic initialization, following the loading instructions in the linked guide. Calling init after an agent is already active does not replace its policy. If a custom sanitizer throws, the agent exports [REDACTED] for that URL instead of its original value.
DOM and interaction capture
domMutations and interactions are disabled in this release pending a separate
content-capture purpose and gate. The following describes existing schema-2 data
and the underlying capture format. Schema-2 DOM capture
records masked initial/checkpoint snapshots and node operations. Interactions carry
a generated node identity and tag-only selector; host IDs/classes and entered
values are omitted. Mark a sensitive subtree with data-corridora-mask or
data-mask. Masking inherits through descendants and applies to snapshots,
subtrees and mutations; inputs, textareas and selects always become structural
placeholders without values or descendants. Dynamic mask changes trigger a checkpoint.
Only explicitly supported attributes are captured. Allowed URL attributes are sanitized, and content-bearing attributes are redacted. API readback continues masking recorded text/attributes, and dashboard rendering remains passive, inert and sandboxed with networking disabled.
Optional mutations, interactions, action and console capture share a 40-event and 64 KiB budget per second. Snapshots are bounded to 300 nodes/24 KiB, with 15-second checkpoints and recovery after drops. Sampling, truncation, missing checkpoints or sequence gaps make replay explicitly partial. Collection still requires your own appropriate content policy; it does not promise complete visual replay.
Session identifiers and trace context
After a grant, the browser agent stores a generated session identifier in tab-scoped sessionStorage under the versioned per-service key corridora.session.v1:<service>. It attaches the identifier to logs and spans for correlation. When storage is unavailable, it keeps the identifier for the active page in memory. Sessions rotate after 30 minutes of inactivity or 24 hours total. Trusted activity and navigation renew activity; background telemetry does not. Withdrawal removes this service's entry and clears its in-memory identity; storage access failures cannot keep collection running.
This identifier represents browser telemetry continuity, not a signed-in user. Call agent.resetSession() when your application signs out. See core concepts for the distinction between sessions and traces.
Browser trace propagation sends traceparent to same-origin requests and explicitly configured HTTPS origins. It does not inject baggage or tracestate. Choose propagation origins for services you intend to correlate with the browser. The origin list controls context propagation; it does not exclude other network requests from local observation.
Sampling and delivery
traceSampleRate controls root traces, with child spans following their parent decision. Network request-error logs are generated from recorded error spans and follow that sampling. Uncaught exception logs are independent of the trace sample rate; document Web Vitals are omitted in this release. Lowering it does not disable all browser telemetry or provide a complete data-removal policy.
The agent batches logs and spans and flushes on page lifecycle events. Page-exit delivery is best effort. Resource timing selects the slowest 25 cross-origin or unknown-origin candidates per drain while retaining same-origin entries, while new DOM mutation capture is disabled in this release. Account for these omissions when interpreting a session or comparing browser observations with backend counts.
For consent withdrawal, call setConsent("denied"); it stops future recording and discards the queue. Use ordinary shutdown() when deliberately removing or reconfiguring an authorized runtime; it drains pending authorized data. Removing a script tag after initialization does not stop its runtime. Forward later CMP changes throughout the page lifecycle.
Neither shutdown nor changing a sampling or redaction policy deletes telemetry already sent to Corridora.
Browser keys
A RUM key is visible in the installed script and telemetry requests. Use the browser application's ingest key for that purpose; dashboard API keys belong in trusted applications and server-side tools.
Ask an organization administrator to manage browser credentials. Signed-in administrators can follow browser keys and storage lifecycle.
Retention and deletion
Collection settings affect future telemetry. Changing a sanitizer, removing a script, or stopping an agent does not delete telemetry already sent to Corridora. Retention and organization purges can remove records from an investigation, and do not retract downloaded exports or copies shared elsewhere.
An organization administrator can review the applicable retention periods and use the protected storage and deletion guide. Product retention is separate from your application's collection policy and the lifecycle of exported copies.
Review a representative payload
Before broadening collection, exercise a page with representative URLs, errors, form interactions, and account states. In the browser Network panel, inspect the /v1/logs and /v1/traces request bodies:
- Confirm recognized URL fields have the expected sanitization.
- Inspect exception messages and resource attributes for values the URL policy does not cover. For existing content captures, also inspect console bodies, selectors and mutation attributes.
- For existing DOM captures, check masked elements and nested content separately; new content capture is disabled in this release.
- Confirm the configured trace destinations and collection options match the intended scope.
Use missing-data troubleshooting for delivery problems and the ingest reference for endpoint behavior. An accepted export does not establish that its contents match your privacy policy; inspect the actual fields to validate it.