---
title: "Version 2.0.0 introduces breaking changes to session management and experiment tracking"
canonical: https://www-stage.togohq.ai/changelog/sdk-browser/2.0.0
package: "@togohq/sdk-browser"
version: "2.0.0"
released: 2026-11-12T22:29:50.022Z
published: 2026-11-14T00:00:00Z
breaking: true
---

# @togohq/sdk-browser 2.0.0 — Version 2.0.0 introduces breaking changes to session management and experiment tracking

Released November 12, 2026 · Browser SDK
Permalink: https://www-stage.togohq.ai/changelog/sdk-browser/2.0.0

## Breaking

- BREAKING: `init({ sessionId })` and `SessionIdMode 'custom'` options are removed. Session IDs are now managed by the SDK.

## New

- `getExperiment(name)` is introduced to manage experiment assignments, caching results and recording `$experiment_entered` events.
- `$session_started` is now automatically sent by the SDK, marking the start of a session.

## Improved

- The SDK now owns every session ID, automatically generating and managing them internally.

## Fixed

- The reserved-name log now correctly follows other drops, and non-string names are logged and dropped.

## Migration

Remove custom session ID initialization and rely on SDK-managed session IDs.

Before:

```js
init({ sessionId: 'custom-id' });
```

After:

```js
init();
```

The old form stops working in @togohq/sdk-browser 2.0.0.
