Skip to content

Events

  • popup_shown
  • popup_clicked
  • survey_completed
interface DeepdotsEvent {
type: 'popup_shown' | 'popup_clicked' | 'survey_completed';
surveyId: string;
timestamp: number;
data?: Record<string, unknown>;
}
const onShown = (event) => console.log(event);
popups.on('popup_shown', onShown);
popups.off('popup_shown', onShown);
  • popupId
  • action
  • userId

popup_clicked is a general interaction event. Depending on the flow, data.action can include values such as loaded, start_survey, manual_send, back, complete, or close_icon.