Popin provides JavaScript events via window.popinEvent to help track user actions, permissions, and call activities on the widget.
Place the following snippet below the Popin integration script:
window.popinEvent = (event, data) => {
if (event === "popin_captured") {
// Example: Call FB event function here
fbq("trackCustom", "popinCapture", {
name: data.name,
mobile: data.mobile,
});
}
};
Each event is triggered with a specific payload. You can integrate these events with your analytics, backend systems, or third-party tools.
📘 Event Reference
Description: Triggered when a nudge popup is displayed to the user.
Payload:
Description: Triggered when the user opens the nudge popup.
Payload:
Description: Triggered when the user closes the nudge popup.
Payload:
4. popin_permission_given
Description: Triggered when the user grants microphone and/or camera permissions.
Payload:
5. popin_permission_denied
Description: Triggered when the user denies microphone and/or camera permissions.
Payload:
6. popin_call_missed
Description: Triggered when the expert is busy and cannot take the call.
Payload:
7. popin_rating_done
Description: Triggered when the user submits a rating and optional feedback after a call.
Payload:
8. popin_schedule_created
Description: Triggered when the user schedules a call.
Payload:
9. popin_call_end
Description: Triggered when a call ends.
Payload:
10. popin_captured
Description: Triggered when a new user/lead is captured via the widget.
Empty or null fields are automatically filtered out.
Payload:
11. popin_navigated
Description: Triggered when the user navigates to different screens.
Payload:
📺 Available Screens:
Screen Constant
Description
Screen that captures user info like name, number, email, etc.
SCREEN_CONNECT_OR_SCHEDULE
Screen to choose live call or scheduling a call.
SCREEN_CONNECT_GATE_QUEUE
Cart page to add products.
Shows recently viewed and other products.
Lets users pick a date and time.
Frequently Asked Questions view.
SCREEN_ASK_QUESTION_INPUT
Input screen for posting a question.
SCREEN_ASK_QUESTION_CONFIRM
Confirmation screen after posting a question.
Allows users to select a video FAQ to play.
Seen when a customer reopens after a call.
Selects time slot for call scheduling.
Displayed when all experts are busy.
Chat window with an agent.
Shown after scheduling when reopened.
SCREEN_INVITE_CALL_EXPIRED
Displayed when joining an expired group call.
12. popin_auto_captured
Description: Triggered on auto-capture or logged-in flows.
Payload:
Description: Triggered when the Popin widget opens.
Payload:
14. popin_close
Description: Triggered when the Popin widget closes.
Payload:
All events include a uid field that identifies the user session.
Payloads may vary depending on:
Handle optional fields gracefully — they may be omitted if not provided by the user.
Last updated