@togohq/sdk-browser 2.5.0
Version 2.5.0 introduces web autocapture and improves event handling
- Browser SDK
New
- Web Autocapture: Automatically captures
$page_viewedand$page_leftevents with visible time and scroll depth.
Improved
AutocaptureOptionsis 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.