Skip to main content
trackEvent('widget.view', {
  widgetId: 'gallery-homepage',
  widgetType: 'gallery',
  marketId: 'market_se',
  postsLoadedCount: 12,
  fallbackPostsCount: 0,
  pagePositionX: 0,
  pagePositionY: 640
})
{
  "widgetId": "gallery-homepage",
  "widgetType": "gallery",
  "marketId": "market_se",
  "postsLoadedCount": 12,
  "fallbackPostsCount": 0,
  "pagePositionX": 0,
  "pagePositionY": 640
}
Sent when a widget becomes visible to the shopper. The browser event is emitted as cevoid:widget.view. The forwarded payload is available on event.detail.

Payload fields

widgetId
string
required
Your Cevoid widget instance ID.
widgetType
'gallery' | 'card'
required
The rendered widget type.
marketId
string
Market identifier for localized storefronts.
postsLoadedCount
number
Number of posts loaded into the widget.
fallbackPostsCount
number
Number of fallback posts used.
pagePositionX
number
Horizontal page position.
pagePositionY
number
Vertical page position.