window.GetReviewSettings = {
onEvent: function (event, widget) {
if (event.type === GetReview.Events.WIDGET_OPEN) {
console.log("Виджет был открыт", widget.token) // Ваш код здесь
}
},
};
window.GetReviewSettings = {
onEvent: function (event, widget) {
if (event.type === GetReview.Events.CALL_TO_ACTION_BUTTON_CLICK) {
console.log("Пользователь кликнул на CTA-кнопку", widget.token) // Ваш код здесь
}
},
};