View difference between Paste ID: 6bfSEjYM and ArJ3gQKV
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3
  event: 'purchase',  			// name of the event. In this case, it always must be purchase
4
  ecommerce: {
5
	currency: 'EUR',
6-
    value: 250.00,						// total price of the trip
6+
    value: 250.00,						// total price of the reservation
7-
    transaction_id: 'abc123',			// transaction id
7+
    transaction_id: 'abc123',			// reservation id
8
    items: [{                           // an array with all products (that were in a cart when the checkout began)
9-
      item_name: 'Blue Cave',           // insert an actual trip name
9+
      item_name: 'Hotel Terme Jezerčica',           // insert an actual accommodation name
10-
      item_id: 'trip1',             // insert an actual trip ID
10+
      item_id: 'accommodation1',             // insert an actual accommodation ID
11-
      price: '250.00',                  // insert an actual trip price. Number or a string. Don't include currency code
11+
      price: '250.00',                  // insert an actual accommodation price. Number or a string. Don't include currency code
12-
      item_category: 'Sea & Boat',          // insert an actual trip top-level category
12+
      item_category: 'Hotels',          // insert an actual accommodation top-level category
13-
      product_type: 'Excursions and Tours', 	// in this case, always "Excursions and Tours"
13+
	  item_variant: 'Standard twin room, balcony', // insert room type or similar
14-
      trip_location: 'Krk',        // insert a trip location
14+
      accommodation_location: 'Donja Stubica',        // insert a accommodation location
15-
      booking_type: 'Reservation',		// booking type: Reservation or inquiry
15+
	  check_in_date: '15.05.2026.',		// check in date
16-
	  country_address_section: 'Germany',				// country from the address section
16+
      check_out_date: '16.05.2026.',		// check out date
17-
	  departure_date: '25.08.2023.',		// the date when the trip is booked
17+
	  number_of_nights: '1'
18-
      place_of_departure: 'Krk 10:00',		// place of departure and starting time (what is displayed in the dropdown menu)
18+
	  number_of_adults: '4',		// number of adults
19-
	  number_of_adults: '4',		// number of adults 12+
19+
20-
	  number_of_youth: '5',			// number of youth
20+
      quantity: '1'                     // product quantity of accommodations, usually always 1
21
    }]
22-
      quantity: '1'                     // product quantity of how many trips were added to a wishlist, usually always 1
22+
23
});