Analytics
Analytics Event Reference

Widget Events

9min

If you are creating your own widgets or components that rely on data fetched from LiSA APIs, it is important to implement a similar event flow to enable tracking in your analytics tool.

All widget events append identical properties to the foundational properties inherited from the analytics event.

Name

Description

widgetConfigurationId

The identifier associated with the applied widget configuration.

widgetName

The distinct name assigned to your widget.

Schema
Example
TypeScript


To improve simplicity and readability, the subsequent examples of specific event types exclude the foundational properties inherited from the analytics and widget event.

Widget Event Types

If an event includes extra properties, the schema and example for each property are specified with the event.

lsc:widget:error

Sent when an error occurs and the widget is unable to be displayed.

Schema
Example
TypeScript


lsc:widget:init

Sent when the widget begins its initialization process.

lsc:widget:item-click

Sent when a viewer interacts by clicking or tapping on a widget item.

Name

Description

itemType

The distinct type of widget item.

itemSourceId

The identifier associated with the widget item's source.

itemSourceType

The distinct type of a widget item's source.

Schema
Example
TypeScript




lsc:widget:item-impression

Sent when a widget item becomes visible in the viewport for the first time, with at least 90% of it being displayed.

Name

Description

itemType

The distinct type of widget item.

itemSourceId

The identifier associated with the widget item's source.

itemSourceType

The distinct type of a widget item's source.

Schema
Example
TypeScript


lsc:widget:item-like

Sent when a viewer interacts by clicking or tapping a widget item's like CTA.

Schema
Example
TypeScript


lsc:widget:ready

Sent once the widget content API response has been successfully fetched and the widget has finished rendering.