Would you like to track whether your booking has been completed, for example for statistics in an external system? You can easily implement a snippet like the one below, which captures a message from our iframe when a booking is completed.
After the booking is completed, you can send the data to your system.
<script>
window.addEventListener('message', (event) => {
if (typeof event.data === 'object' && event.data.type === 'booking_completed') {
console.log('Booking completed!');
}
});
</script>