1. No tracking cookies & how browser storage works
SessionLens does not set tracking cookies on your storefront. Instead, browser storage is scoped to your domain as follows:
localStorage["sl_vid"] // Anonymous visitor ID across visits on the same browser
sessionStorage["sl_sid"] // Active tab session continuity across page loads
localStorage["sl_consent"] // Set to "1" when window.sessionlens.consent() is called- Because no third-party or cross-site tracking cookies are set by the tracker, visitors are never tracked across unrelated websites.
- On the SessionLens dashboard itself, Google sign-in uses an essential security cookie, and optional referral attribution cookies are only stored if explicitly allowed in the cookie banner.
2. Automatic input masking, sl-block, and sl-mask
All form input fields (passwords, payment card numbers, emails, phone numbers) are masked automatically inside the visitor’s browser before any recording data is transmitted to the server.
<!-- Completely exclude a DOM subtree from the recording -->
<div class="sl-block">
<p>Saved billing address and payment summary</p>
</div>
<!-- Replace visible text characters with asterisks (*) while preserving layout -->
<span class="sl-mask">Aysel Mammadova</span>- Use class="sl-block" on containers that hold sensitive customer details, account portals, or embedded payment iframes.
- Use class="sl-mask" on inline text elements (such as customer names, street addresses, or order numbers) so layout geometry remains visible in replays and heatmaps without exposing personal text.
3. Require explicit GDPR consent before recording
If your privacy policy or jurisdiction requires opt-in consent before recording analytics or session replays, add data-require-consent="true" to the tracker <script> tag (or check "Require Consent Before Recording" in the WordPress plugin).
<script async src="https://app.otpshare.site/t.js" data-site="YOUR_SITE_KEY" data-require-consent="true"></script>
<script>
// Call when the visitor accepts analytics in your CMP / cookie banner:
window.sessionlens.consent();
// Call if the visitor withdraws consent or opts out:
window.sessionlens.revokeConsent();
</script>- When data-require-consent="true" is set, the tracker stays idle and sends no recording data until window.sessionlens.consent() is invoked.
- Calling window.sessionlens.consent() saves sl_consent="1" in localStorage and starts recording immediately.
- Calling window.sessionlens.revokeConsent() clears the consent flag and immediately halts event capture.
4. Respect Do Not Track (DNT), sampling, pause recording & IP exclusions
You can combine script attributes with server-side privacy settings in Configure → Setup (/app/sites/:siteId/settings) under "Privacy & recording":
<script async src="https://app.otpshare.site/t.js"
data-site="YOUR_SITE_KEY"
data-respect-dnt="true"
data-sample="0.5"></script>- Do Not Track (data-respect-dnt="true"): Checks navigator.doNotTrack === "1", window.doNotTrack === "1", and navigator.msDoNotTrack === "1". If enabled by the visitor’s browser, the tracker exits without recording.
- Traffic sampling (data-sample="0.5"): Records a percentage of sessions (between 0 and 1; for example, 0.5 records 50% of sessions).
- Pause recording toggle: In Configure → Setup → Privacy & recording, toggle "Pause recording" to stop new recordings immediately while keeping on-site widgets and visitor chat active.
- IP address exclusions: Under "Don't record these IP addresses", enter up to 50 IP addresses or wildcard prefixes (one per line, e.g. 85.132.10.4 or 10.0.*) and click Save. Use the "add it" shortcut next to your detected IP to exclude your own team.