Documentation
Difficulty level:
Usecase - meet het aantal reserveringen
This article assumes knowledge of the articles in the GTM section.
The use case: we want to measure the number of reservations.
We enter this script in i-Reserve.
ireserve.on("createBooking", function(booking){ console.log('createBooking'); console.log('i-res bookingnumber', booking.booking_id); window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'event': 'bookingMade', 'details': { 'bookingnumber': booking.booking_id } }); });
In GTM we use a Custom Event "BookingMade".
We only set up one variable for this. dlv-bookingnumber.
In GA we mark this event as a key event.
Result: for every reservation made there is a conversion into GA.