Skip to main content

🚩 Events & callbacks

The following event listeners allow you to listen for specific events allowing you to build deeper integrations with the Gleap widget.

Gleap.registerListener('feedbackWillBeSent', () => {
// Feedback will be sent.
console.log('feedbackWillBeSent');
});

Gleap.registerListener('feedbackSent', (data) => {
// Feedback has been sent with data.
console.log('feedbackSent');
console.log(data);
});

Gleap.registerListener('feedbackSendingFailed', () => {
// Sending feedback failed.
console.log('feedbackSendingFailed');
});

Gleap.registerListener('customActionTriggered', (data) => {
// Custom action triggered.
console.log('customActionTriggered');
console.log(data);
});