window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: 'purchase', // name of the event. In this case, it always must be purchase ecommerce: { currency: 'EUR', value: 250.00, // total price of the reservation transaction_id: 'abc123', // reservation id items: [{ // an array with all products (that were in a cart when the checkout began) item_name: 'Hotel Terme Jezerčica', // insert an actual accommodation name item_id: 'accommodation1', // insert an actual accommodation ID price: '250.00', // insert an actual accommodation price. Number or a string. Don't include currency code item_category: 'Hotels', // insert an actual accommodation top-level category item_variant: 'Standard twin room, balcony', // insert room type or similar accommodation_location: 'Donja Stubica', // insert a accommodation location check_in_date: '15.05.2026.', // check in date check_out_date: '16.05.2026.', // check out date number_of_nights: '1' number_of_adults: '4', // number of adults number_of_children: '3', // number of children quantity: '1' // product quantity of accommodations, usually always 1 }] } });