Gleap
Search…
🚩
Events
Use the following callbacks to get notified on certain state changes of the Gleap widget. This enables you to create an even deeper integration with Gleap.

On open

This allows you to get notified once Gleap opens.
1
Gleap.on("open", () => {
2
console.log("Gleap did open.");
3
});
Copied!

On close

This allows you to get notified once Gleap closes.
1
Gleap.on("close", () => {
2
console.log("Gleap did close.");
3
});
Copied!

On feedback sent

This allows you to get notified once feedback is sent.
1
Gleap.on("feedback-sent", () => {
2
console.log("Gleap did send a feedback item.");
3
});
Copied!

On flow started

This allows you to get notified once a Gleap flow is started.
1
Gleap.on("flow-started", (flow) => {
2
console.log("The user selected a flow");
3
console.log(flow);
4
});
Copied!

On error while sending feedback

This allows you to get notified if an error occurs while Gleap is trying to send a feedback item.
1
Gleap.on("error-while-sending", () => {
2
console.log("Ouch, something went wrong.");
3
});
Copied!
Last modified 1mo ago