E-commerce tracking

In addition to reservations, e-commerce products purchased at time of booking, such as events, experiences, ancillary items or other, can be tracked and measured.

The e-commerce products should be added to the Confirmation page snippet. Below is an example, followed by the supported fields.

<!--Flip.to - Confirmation Page Start-->
<script>
	!function(n,e,w){
		w.eventData={category:'Booking_Engine',action:'Load',value:w.amount};
		(n[e]=n[e]||[]).push({flipto:w,event:'flipto.confirmation.load'});
	}(window,'fliptoDataLayer',
	{
		bookingEngine: '[BOOKING-ENGINE]',
		companyCode: '[COMPANY-CODE]',
		code: '[PROPERTY-CODE]',
		confirmation: '67890',
		loyalty: '12333322',
		first: 'John',
		last: 'Smith',
		email: '[email protected]',
		phone: '(212) 123-4567',
		startDate: '2025-4-10',
		endDate: '2025-4-13',
		guests: 5,
		adults: 3,
		children: 2,
		type: 'KING',
		rateCode: 'BAR',
		language: '[LANGUAGE-CODE]',
		currency: 'USD',
		amount: 1234.12,
		addonAmount: 234.56,
		dateFormat: 'yyyy-M-d',
		products: [
		    {
		      id: "ABC",
		      name: "Wine Tasting Tuesdays",
		      category: "Event/Onsite/Wine",
		      price: 100,
		      currency: "USD"
		    },
		    {
		      id: "DEF",
		      name: "Sunglasses",
		      brand: "Oakley",
		      category: "Womens/Apparel",
		      price: 200.50,
		      inventory_status: "in stock",
		      currency: "USD"
		    }
		  ] 
	});
</script>
<!--Flip.to - Confirmation Page End-->
Field
Description
Required

id

SKU or product ID.

currency

Currency in which the product is being priced (ISO 4217).

price

Price of the product at the current time, supplied as a valid number including a decimal point if appropriate.

name

Name or title of the product.

category

Category the product belongs to. Use a consistent separator to express multiple levels, e.g., Event/WineTasting or Womens/Apparel.

list_price

Recommended or list price of a product.​List price should be supplied as a valid number including a decimal point if appropriate.

quantity

Quantity of the product taking part in the action.​Quantity should be supplied as a valid number including a decimal point if appropriate.

size

Size of the product, e.g., XL, XS, M.

variant

Variant of the product, e.g., Red, Heavy, Leather.

brand

Brand of the product.

inventory_status

Inventory status of the product, e.g., in stock, out of stock, preorder, backorder.

creative_id

Identifier/Name/Url for the creative presented on a list or product view.

Last updated