---
title: "Track whether a booking has been completed in your iframe"
description: "You can easily track whether your booking has been completed"
url: https://helpcenter.c1st.com/en/articles/10821431-track-whether-a-booking-has-been-completed-in-your-iframe
collection: "Booking"
updated: 2026-11-20
language: en
alternates: [da, nb, sv]
---

# Track whether a booking has been completed in your iframe

You can easily track whether your booking has been completed

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.

```javascript
 <script>
    window.addEventListener('message', (event) => {
        if (typeof event.data === 'object' && event.data.type === 'booking_completed') {
            console.log('Booking completed!');
        }
    });
</script>
```

![](https://staticfiles.gleap.io/ghelparticle/pVdnRPG0ivg5g0n0dz6O5xlUMDoKkkM0l9jUsC3MhneaidSNBJvXrhE2Pxmc8W3iyaE6uS2a8Ro.png)
