Skip to content

User Guide & Documentation

SessionLens Help Center

Step-by-step guides matching the SessionLens dashboard: installing the tracker and WordPress plugin, building Page and Event funnels, configuring GDPR consent and Do Not Track, and understanding Free, Pro, and Business plan limits.

Setup & Integration

Installation: Tracker Script & WordPress Plugin

Add the asynchronous SessionLens loader (t.js) and optional instant-visitor presence pixel (p.gif) to your website, configure the WordPress plugin, and exclude the tracker from caching delays.

Open dedicated guide

1. Copy your Site Key and tracker snippet from Setup

In the SessionLens dashboard, select your site in the top-left switcher and click Configure → Setup (/app/sites/:siteId/settings). Under "1. Add the code to your site", click Copy to copy your site-specific <script> tag and paste it inside the <head> of every page.

<script async data-cfasync="false" nowprocket data-no-optimize="1" data-no-defer="1" src="https://app.otpshare.site/t.js" data-site="YOUR_SITE_KEY"></script>
  • WordPress (without plugin): Install "WPCode" or "Insert Headers and Footers" and paste the snippet into the Header section.
  • Shopify: Go to Online Store → Themes → Edit code → theme.liquid and paste the snippet right before </head>.
  • Google Tag Manager: Create a "Custom HTML" tag, paste the snippet, and set the trigger to All Pages.
  • React / Next.js: Add the script to index.html or load it in your root layout with next/script.

2. Add the 1-pixel instant-visitor image (recommended)

Speed optimization plugins often delay all JavaScript until the visitor clicks, scrolls, or taps. In Configure → Setup under "2. See every visitor from the first second", copy the 1-pixel <img> snippet and paste it immediately after the opening <body> tag (not inside <head>). Because browsers do not delay an eager 1×1 image, visitors appear in Live immediately and transition into the full session recording as soon as t.js starts.

<img src="https://app.otpshare.site/p.gif?k=YOUR_SITE_KEY" alt="" width="1" height="1" loading="eager" fetchpriority="high" data-no-lazy="1" data-skip-lazy="1" class="skip-lazy no-lazy" referrerpolicy="no-referrer-when-downgrade" style="position:absolute;width:1px;height:1px;opacity:0;pointer-events:none">
  • WordPress (WPCode / Insert Headers and Footers): Paste into the Body section (not Header).
  • Shopify: In theme.liquid, paste on the line immediately after <body ...>.
  • Elementor / theme builders: Use Custom Code with location set to "<body> – Start".
  • Do not place the <img> tag inside Google Tag Manager, because GTM itself is JavaScript and subject to script delay.

3. Install via the official WordPress plugin

If your store runs on WordPress or WooCommerce, you can use the dedicated SessionLens plugin located in wordpress-plugin/sessionlens instead of editing theme templates manually.

WP Admin → Settings → SessionLens
- Site Key: YOUR_SITE_KEY (letters, numbers, hyphens, underscores; up to 64 chars)
- Server Origin: https://app.otpshare.site
- Disable for Administrators: Checked by default (skips users with manage_options)
- Respect Do Not Track (DNT): Adds data-respect-dnt="true"
- Require Consent Before Recording: Adds data-require-consent="true"
- Enable Instant Presence Pixel: Outputs p.gif on wp_body_open
  • Upload the sessionlens plugin folder to /wp-content/plugins/sessionlens/ (or upload the ZIP in Plugins → Add New → Upload Plugin) and click Activate.
  • Open Settings → SessionLens in WP Admin and paste your Site Key from the dashboard Setup page.
  • The plugin automatically outputs the script in wp_footer with data-cfasync="false", nowprocket, data-no-optimize="1", and data-no-defer="1" attributes.
  • Keep "Disable for Administrators" enabled so store admins browsing the site are not recorded.

4. Configure cache & speed plugins and verify installation

After adding the snippet or enabling the WordPress plugin, check the installation status banner at the top of Configure → Setup. It polls every 10 seconds and reports when the last visitor was seen and whether script startup is delayed (> 2.5 seconds).

https://yourstore.com/?sl_debug=1
  • WP Rocket: Under File Optimization → Delay JavaScript execution → Excluded JavaScript Files, add app.otpshare.site (or your self-hosted domain). Also add it to Load JavaScript deferred and Combine JavaScript exclusions, then Clear cache.
  • LiteSpeed Cache: Under Page Optimization → JS Settings → JS Excludes and JS Deferred / Delayed Excludes, add app.otpshare.site, then run Toolbox → Purge All.
  • Cloudflare: Keep Rocket Loader off or rely on data-cfasync="false". If using a "Cache Everything" rule, bypass cache for /api/* and run Caching → Purge Everything.
  • Always load /t.js from the SessionLens server rather than copying the file to your own host so your site always receives the current loader.
Analytics & Conversion

Funnels: Page & Event Steps, Match Rules, and Drop-Off Replays

Build multi-step conversion funnels combining URL path rules (is, starts with, contains) and custom or built-in events, then watch the exact sessions that dropped off.

Open dedicated guide

1. Create a funnel in Analyze → Funnels

Open Analyze → Funnels (/app/sites/:siteId/funnels) in the left sidebar and click + New funnel (or Create your first funnel on an empty site). Enter a descriptive Name such as "Checkout funnel". Each funnel contains between 2 and 10 ordered steps.

  • Use + Add step to append up to 10 steps per funnel.
  • Use the ↑ and ↓ buttons on any row to reorder steps, or × to remove a step (a funnel requires at least 2 steps).
  • Add an optional Label on any step (for example, "Product page" or "Added to cart") to make the funnel report easier for teammates to read.
  • Click Save funnel to store the funnel definition and compute the report.

2. Configure "Visited page" steps and URL matching

When a step is set to "Visited page", choose one of three pathname match operators from the dropdown and select or type a path (autocomplete suggestions are populated from your recorded pages):

Step Type: Visited page
- "is" (equals):         Exact pathname match, e.g. /checkout
- "starts with" (starts): Pathname prefix match, e.g. /product/
- "contains" (contains):  Pathname substring match, e.g. cart
  • Pathname normalization: Page steps accept either paths (like /checkout) or full URLs. Matching always evaluates the URL pathname—hosts, query strings (?utm_source=...), and hash fragments (#shipping) are ignored.
  • Use "starts with" (/product/ or /collections/) when every product has a unique slug.
  • Use "is" (/cart, /checkout, /thank-you) when matching a fixed step URL.

3. Configure "Triggered event" steps

When a step happens inside a drawer, modal, or single-page checkout without changing the URL pathname, set the step type to "Triggered event". Event steps match custom events sent via window.sessionlens.tag() as well as built-in tracker events.

// Custom events sent from your storefront code
window.sessionlens.tag('add_to_cart', { product: 'Sneakers', price: 89 });
window.sessionlens.tag('checkout', { total: 89 });

// Built-in event names available in funnel steps
// form_submit | feedback | survey_completed
  • Type the exact event name (for example, add_to_cart or form_submit) into the step value field.
  • The event input includes an autocomplete datalist populated from events already seen on your site.
  • You can mix Visited page and Triggered event steps freely in the same funnel (for example: Step 1 Visited page starts with /product/ → Step 2 Triggered event add_to_cart → Step 3 Visited page is /checkout).

4. Analyze the Funnel Report and watch dropped sessions

Selecting a saved funnel in the left list pane loads the Funnel Report for visitors who completed the steps in order within a single session. Use the segmented date selector in the top-right to switch between 7 days, 30 days, and 90 days.

  • Summary cards at the top display Entered funnel (visitors reaching Step 1), Completed (visitors reaching the final step), and overall Conversion percentage.
  • Each step after Step 1 shows the continuation rate ("% continued from previous step", highlighted when below 50%) and the median time taken between steps.
  • Click "▶ Watch N who dropped here" on any step to open Analyze → Recordings pre-filtered to the exact sessions that reached the previous step but left before completing this step.
  • Click "▶ Watch who reached" to inspect sessions that successfully completed that step.
Privacy & Compliance

Consent, Do Not Track (DNT) & Privacy Controls

Configure default input masking, sl-block and sl-mask CSS classes, Do Not Track (DNT) enforcement, GDPR consent mode, IP exclusions, and localStorage visitor IDs.

Open dedicated guide

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.
Account & Billing

Plan Limits: Free, Pro & Business Quotas and Billing

Compare website allowances, monthly recorded sessions, retention windows, team member seats, funnel limits, and feature availability across Free ($0), Pro ($19/mo), and Business ($49/mo).

Open dedicated guide
Quota / FeatureFree ($0)Pro ($19/mo)Business ($49/mo)
Price (Monthly / Annual)$0 forever$19 / month ($190 / year)$49 / month ($490 / year)
Websites1 website5 websites25 websites
Recorded sessions / month1,000 / month25,000 / month150,000 / month
Recording retention7 days30 days90 days
Team members per site1 (owner only)Up to 3 membersUp to 15 members
Funnels per site1 funnelUp to 10 funnelsUnlimited funnels
Replay, Heatmaps, Live & FormsIncludedIncludedIncluded
Carts & Revenue insights—IncludedIncluded
Telegram alerts—IncludedIncluded
Visitor chat & proactive messages—IncludedIncluded
CSV & API exports—IncludedIncluded
Widget branding"Powered by SessionLens" badgeNo widget brandingNo widget branding

1. Monitoring monthly session usage in the sidebar and Billing page

Every site sidebar displays a compact PlanUsage widget showing your current plan badge (Free, Pro, or Business), a direct link to Billing (/app/billing), and a live progress bar for "Recorded sessions this month".

  • Session quotas count across all websites in your account during the current UTC calendar month.
  • When your account reaches 80% of its monthly session allowance, the dashboard displays an early warning banner so you can enable data-sample or upgrade before hitting 100%.

2. What happens when you reach 100% of your monthly session limit

When your monthly allowance is full, SessionLens never deletes or locks your existing data:

  • Active sessions that have already started can finish uploading normally.
  • All saved recordings, heatmaps, and funnel reports remain readable in the dashboard.
  • New visitor sessions receive a quiet no-record response from the server until the quota resets at the start of the next UTC calendar month or until you upgrade your plan.

3. Retention windows and automatic cleanup

Recordings are stored in the PostgreSQL database on the SessionLens server and automatically pruned once they age past your plan’s retention window:

  • Free plan: Recordings are retained for 7 days.
  • Pro plan: Recordings are retained for 30 days.
  • Business plan: Recordings are retained for 90 days.
  • On Pro and Business plans, you can export session metadata to CSV from Analyze → Recordings before older sessions expire.

4. Feature gates, team permissions, and upgrading in Billing

In the left sidebar, Shop (Revenue, Carts), Engage → Inbox, and Configure → Alerts require an active Pro or Business plan. Opening a locked route or exceeding your site, funnel, or team member limit shows an UpgradePrompt card.

  • Only the account owner (canManageBilling) can change plans in /app/billing; invited site admins and members see a notice to contact the account owner when hitting a plan limit.
  • Annual billing ($190/year on Pro, $490/year on Business) gives 2 months free compared with monthly billing.
  • If an account is downgraded and has more sites than the new plan allows, excess sites display "This site is paused by the account plan. Saved recordings remain available."

Ready to configure your site?

Open Configure → Setup in your SessionLens dashboard to copy your site key, or start with the Free plan (1 website, 1,000 recorded sessions/month).