Events

Firework Embed provides a way to subscribe to particular lifecycle and video events using CustomEvent listener on document.

// Custom event listener
document.addEventListener('<event-name>', function(event) {
  console.log(event.detail);
})

Response data

Data available for all events.

Name

Description

app_id

ID of your widget.

name

Custom name of a widget.

widget_id

Random ID assigned for each render

guest_id

Random ID assigned to a visitor for as long as possible. Available post render.

Last updated