Skip to main content

Visitors and sessions

In Kameleoon, a visitor is a unique person (or device), and a session is one continuous period of activity from that visitor. One visitor can have many sessions over time. The distinction matters when you read experiment results: visitor counts tell you how many distinct people saw a variation, while session counts tell you how many times those people were active while the experiment was running.

What counts as a session

Kameleoon uses a 30-minute inactivity window to define the boundary between sessions. When a visitor has no activity for more than 30 minutes, their next action starts a new session. Example: A visitor views a product page at 10:00, then returns at 10:20 to view a second page (both actions belong to the same session). If the same visitor returns at 10:35 instead, that second visit starts a new session.
The default 30-minute session duration is configurable for server-side Feature Experimentation SDKs. Contact your Customer Success Manager or refer to the technical considerations reference for details.

How Kameleoon identifies visitors

Web Experimentation

On web, Kameleoon identifies each visitor using a unique visitor code stored as a cookie in their browser. When a visitor arrives at your site:
  • If the cookie already exists, Kameleoon recognizes them as a returning visitor and maintains continuity with their previous sessions.
  • If no cookie exists, Kameleoon generates a new visitor code and stores it. The cookie remains active for 365 days.

Feature Experimentation

For server-side SDK integrations, you pass the visitor identifier (such as a user ID or session token) directly when calling SDK methods. Kameleoon keeps visitor and session data in memory for the duration of the active session (30 minutes of inactivity by default). The SDK automatically records and sends tracking data to Kameleoon when you use tracking-enabled SDK methods. Kameleoon batches data on a short, configurable interval, so you typically don’t need to take manual action.
For a full breakdown of which SDK method calls trigger tracking requests, see the Feature Experimentation SDK FAQ.

Counting visitors in hybrid experimentation

When you run experiments that span both web and server-side environments, Kameleoon can recognize the same visitor in both. The server-side SDK shares the visitor code from the browser cookie, so Kameleoon counts the same person consistently regardless of which side of your app they interact with. See Hybrid experimentation for setup details.

How native data point breakdowns work

For data points that the engine or SDK collects natively, such as browser, page URL, or SDK name, the Results page breakdown shows the first value received per visit. A visitor’s separate visits can each contribute a different value, so a visitor’s activity can appear under more than one breakdown value even though each individual visit has only one. See Native data point breakdown values for a worked example.

Further reading