For the complete documentation index, see llms.txt. This page is also available as Markdown.

E-commerce tracking

In addition to reservations, e-commerce products purchased at time of booking—events, experiences, ancillary items and the like—can be tracked and measured.

Flip.to reads the reservation itself from your confirmation page, but it can't see what else was in the basket. If you sell add-ons at time of booking, this is the one thing you still need to send us.

Add the products to a confirmation-page push, as shown below. This is the same shape as the reservation override described under Sending the reservation directly. 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: 'jsmith@flip.to',
		phone: '(212) 123-4567',
		startDate: '2027-4-10',
		endDate: '2027-4-13',
		guests: 5,
		adults: 3,
		children: 2,
		type: 'KING',
		rateCode: 'BAR',
		language: '[LANGUAGE-CODE]', // optional
		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