Docs

Overview

SessionSight SDKs at a glance

Last updated:

SessionSight provides five SDKs, each designed for a specific purpose:

SDKEnvironmentAPI KeyPurpose
InsightsClient-side (browser)PublicSession recording, heatmaps, form analytics
Split TestingClient-side (browser)PublicA/B tests, copy tests, JSON experiments
GoalsServer-sideSecretGoal tracking (count or revenue, USD)
Feature FlagsServer-sideSecretFeature flag evaluation and targeting
FeedbackServer-sideSecretUser feedback, ratings, bug reports

Insights SDK (client-side)

Runs in your visitors’ browsers. Captures session recordings, click/scroll/movement data for heatmaps, form field interactions, and page navigations. All data is sent to SessionSight automatically.

One line to install, one line to initialize. See Setup to get started.

Key features:

Split Testing SDK (client-side)

Runs in your visitors’ browsers. Assigns visitors to test variations, tracks exposures automatically, and reports conversions. Supports three test types: ID (component branching), text (copy testing), and JSON (structured data). Zero-flicker by design with localStorage caching, SSR bootstrap, and an anti-flicker snippet.

One line to install, one line to initialize. See Setup to get started.

Key features:

Goals SDK (server-side)

Runs on your server. Tracks goal completions. Each goal is either a count goal (conversion counter) or a revenue goal (USD totals). Uses a secret API key so values can’t be spoofed from the browser.

Key features:

Feature Flags SDK (server-side)

Runs on your server. Evaluates feature flags with targeting rules based on user context and segments. Supports multiple environments for staged rollouts.

Key features:

Feedback SDK (server-side)

Runs on your server. Collects user feedback, bug reports, and ratings. Supports pre-defined option values and free-text messages, with metadata for context. Uses a secret API key so submissions are authenticated.

Key features:

API Keys

Each SDK requires an API key from your SessionSight dashboard:

  • Public key (sessionsight_pub_...): safe to include in client-side code. Used by the Insights and Split Testing SDKs.
  • Secret key (sessionsight_sec_...): must stay on your server. Used by the Goals, Flags, and Feedback SDKs.

Manage keys from the API Keys page, or use the API key selector in the top nav to auto-fill code examples throughout these docs.