---
title: "Version 2.5.0 introduces web autocapture and improves event handling"
canonical: https://www.togohq.ai/changelog/sdk-browser/2.5.0
package: "@togohq/sdk-browser"
version: "2.5.0"
released: 2026-11-24T21:09:30.490Z
published: 2026-11-24T00:00:00Z
breaking: false
---

# @togohq/sdk-browser 2.5.0 — Version 2.5.0 introduces web autocapture and improves event handling

Released November 24, 2026 · Browser SDK
Permalink: https://www.togohq.ai/changelog/sdk-browser/2.5.0

## New

- Web Autocapture: Automatically captures `$page_viewed` and `$page_left` events with visible time and scroll depth.

## Improved

- `AutocaptureOptions` is now exported from the package entry point, simplifying type imports.

## Fixed

- Autocapture: Disabled clients now correctly stop autocapture, preventing unnecessary event listeners.
- Autocapture: Correctly handles scroll events from elements like carousels, ensuring accurate page depth measurement.
- Autocapture: Ensures a view ended by a path change retains its own scroll depth.
- Autocapture: New views in single-page apps no longer start with the previous page's scroll depth.
- The page-close batch now skips oversized events instead of stopping, ensuring other events are sent.
- A full queue no longer evicts events that are currently uploading, preventing false loss reports.
- The page-close send now operates independently of ongoing uploads, ensuring events are sent before page unload.
- Unserializable events are dropped at `track()` to prevent blocking subsequent batches.
