> For the complete documentation index, see [llms.txt](https://docs.flip.to/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flip.to/developers/integrations/booking-engines/vendors/ihotelier.md).

# iHotelier

Adding Flip.to to your iHotelier booking engine is done in just two steps.

{% hint style="warning" %}
**Before you begin:**

* If you ask your Amadeus point person to grant Engine Container access to **<integrations@flip.to>**, our [Customer Success team](broken://pages/RTdPXa9NV7w0qgds4y6l) will take care of configuring iHotelier for you.
* If you'd like to take care of the configuration below, you'll just need your **Flip.to companyCode**, which you should have received by email. If not, ask our [Customer Success team](broken://pages/RTdPXa9NV7w0qgds4y6l).
  {% endhint %}

***

## Step 1: Add the Flip.to booking engine tag

* Click into **Tags** → **New** to create a new tag
* Set the **Tag Name** to **Flip.to booking engine**
* Set the **Tag Configuration** as **Custom HTML**
* Copy and paste the snippet below into HTML field
* Replace **`XX`** with your **Flip.to companyCode** (be sure to keep the single quotes)
* Set the **Tag Firing Option** to **Once per page**
* Set the **Firing Triggers** to **Page View Event** (fires on the engine's "content-view" event, after iHotelier configuration is available)

```javascript
<!-- Flip.to - Booking Engine Integration -->
<script>
!function(b,e,i){
(b[e]=b[e]||[]).push({flipto:i, event: 'flipto.configuration.load'})
}(window,'fliptoDataLayer',
{
    bookingEngine: 'iHotelier',
    companyCode: 'XX',
    code: '{{ihHotelID}}'
});
</script>
<script async src='https://integration.flip.to/K2X4KDP'></script>
<!-- Flip.to - End Booking Engine Integration -->
```

* After that's configured, it should look something like:

<figure><img src="https://3055809608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FceADss4ajJpRUvo8bFH1%2Fuploads%2Fgit-blob-1b331e76977bb8d14430c88df17b9817b7e7fbdf%2FiHotelier%20Tag.png?alt=media" alt=""><figcaption><p>Example every-page tag setup</p></figcaption></figure>

<figure><img src="https://3055809608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FceADss4ajJpRUvo8bFH1%2Fuploads%2Fgit-blob-377eed4a04784bdf73aaf26a2d1dc9180a6c376a%2FScreenshot%202023-12-05%20110405.png?alt=media" alt=""><figcaption><p>Example triggering criteria to run on every page of the booking engine</p></figcaption></figure>

<figure><img src="https://3055809608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FceADss4ajJpRUvo8bFH1%2Fuploads%2Fgit-blob-8e674eff6f93840d60cf5c19675d60bf24e40939%2FScreenshot%202023-12-05%20111317.png?alt=media" alt=""><figcaption><p>Example trigger configuration for running on every page after booking engine configuration</p></figcaption></figure>

***

## Step 2: Add the Flip.to confirmation tag

* Click into **Tags** -> **New** to create a new tag
* Set the **Tag Name** to **Flip.to confirmation**
* Set the **Tag Configuration** as **Custom HTML**
* Copy and paste the snippet below into HTML field
* Replace **XX** with your **Flip.to** **companyCode** (be sure to keep the single quotes)
* Set the **Tag Firing Option** to **Once per page**
* Set the **Firing Triggers** to **Confirmation Page View Event** (fires on the engine's "content-view" event, only on the /confirmation page, after iHotelier configuration is available)

```javascript
<!-- Flip.to - Confirmation Page -->
<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: 'iHotelier',
    companyCode: 'XX',
    code: '{{ihHotelID}}'
});
</script>
<!-- Flip.to - End Confirmation Page -->
```

* After that's configured, it should look something like:

<figure><img src="https://3055809608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FceADss4ajJpRUvo8bFH1%2Fuploads%2Fgit-blob-e018610e51c23be16c7f534665ae734d6ae578a0%2FiHotelier%20Confirmation%20Integration.png?alt=media" alt=""><figcaption><p>Example confirmation page tag setup</p></figcaption></figure>

<figure><img src="https://3055809608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FceADss4ajJpRUvo8bFH1%2Fuploads%2Fgit-blob-c34807b9ead4dd4f44b8ff5f71930e1fa68a2042%2FScreenshot%202023-10-12%20at%2011.09.19%20AM.png?alt=media" alt=""><figcaption><p>Example triggering criteria to run on the confirmation page</p></figcaption></figure>

<figure><img src="https://3055809608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FceADss4ajJpRUvo8bFH1%2Fuploads%2Fgit-blob-6551f4a27cac005fc1d38b7109c703f6b3b86eb9%2FScreenshot%202023-12-05%20111230.png?alt=media" alt=""><figcaption><p>Example trigger configuration for running on the confirmation page after booking engine configuration</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flip.to/developers/integrations/booking-engines/vendors/ihotelier.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
