2.0.0 - Web
Added
Logout
BlazeSDK.logout() logs out the current viewer and continues as an anonymous viewer. The SDK clears that viewer's local activity and follows. See logout.
Analytics events survive reloads and offline periods
Events are written to browser storage before they are sent, and the SDK drains that queue the way the iOS and Android SDKs do. A reload, a closed tab, or a period offline no longer loses them. Failed batches are retried with backoff, and when several tabs are open only one of them sends at a time. If storage is unavailable, the SDK falls back to the in memory behavior used until 2.0.0.
New analytics reporting
The unified schema adds reporting the Web SDK never sent before. Moments report seek and follow activity, videos report audio track, live edge and catch up activity, widgets report fold position and thumbnail format, and ad sessions report ad_exit. See Migrate on Web.
Recommendation version on content
Content items now carry recommendationVersion, exposing the recommendation model version that produced the item.
Breaking Changes
Unified analytics schema
Events delivered to onEventTriggered now use the unified cross-platform analytics schema. Event names, categories and property values change, and api_scheme_version is now "2.1", so review reports and app logic that depend on them. Nothing is aliased and analytics listeners have no compile step, so a listener that matches a name used until 2.0.0 keeps running and silently sees nothing. Payload keys are namespace prefixed, so read eventData['story.story_id'] instead of eventData.story_id. See 2026 events schema and Migrate on Web.
Story sessions and ad events report differently
story_session_id is now one id for the whole player session rather than one per story, so session counts drop and an ad between stories carries the session it interrupted. Ad events do not carry the root block, so event_category and tech.* are absent on them. Re-baseline anything counting sessions or joining ads to content. See Migrate on Web.
External user ID kept across page loads
The external user ID is now kept across page loads until you call logout(). setExternalUserId no longer accepts null, and Initialize takes restoreExternalUserId to start a load as an anonymous viewer. See setExternalUserId and Initialize the SDK.
Follow entity type required
The entityType property of FollowedEntityInput no longer has a default value, and the bare string form is removed. Pass a type, or undefined when the type is unknown. See Follow entities.
Widget and custom action button identifiers required
id is now required on every custom action button passed to addCustomActionButton, and every widget element needs a stable id that you choose. Without a widget id, analytics report widget_id: "not_provided" and cannot be grouped across sessions. Widgets created with WidgetRowView or WidgetGridView already report their container id. Pass a stable label per placement. See Migrate on Web.
Consent events use a fixed action
Every consent event now arrives as event_action: "consent_action", with your action string in consent.action and your payload in consent.body. Listeners that matched your own action string on event_action match nothing. An empty action is rejected and no event is sent.
Updated
Video player
The long form video call to action moved to the end of the timer row, and the live stream is covered while a live recap plays.
Fixed
Followed entities
Fixed Initialize({ followedEntities }) keeping only the first entry when the list mixed typed and untyped entries.
Consent events
Fixed pushConsentEvent throwing when called, which meant consent events were never sent. Expect consent volume to start arriving.
Analytics delivery
Fixed analytics batches being dropped in browsers that do not support compression in the page context, and nested fields such as cta_config being dropped from the delegate payload.
