Advanced widget configuration for integration with Google Ads.
The widget sends an event to the parent page when the reservation is made. To achieve this, you need to implement additional JavaScript code.
Example of receiving an event on the page with the widget:
<script>
const widget = document.getElementsByTagName('parkflow-widget')[0];
widget.addEventListener('booking', (event) => { dataLayer.push({'event': 'purchase'}); });
</script>
Additionally, the event contains all the necessary information about the booking, such as the booking number, amount, and other data that may be required by Google Ads to track conversions.