Selfbook

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

This is a Google Tag Manager integration. While putting code directly on the page is more reliable, this is the publicly documented way of integrating with Selfbook: Selfbook GTM Data Layer Documentation


Step 1: Booking engine snippet

This is the first of two snippets to add to your RevRaise booking engine.

  • Create a new tag in your Google Tag Manager that runs on the booking engine and set the trigger to:

Selfbook - Opened
  • Copy and paste the snippet below into your new tag

  • Replace XX with your Flip.to companyCode (be sure to keep the single quotes)

<!-- Flip.to - Booking Engine Integration -->
<script>
!function(w,d,s,l,i,f,n){
(w[l]=w[l]||[]).push({flipto:i});
f=d.getElementsByTagName(s)[0];
n=d.createElement(s);n.async=!0;n.src=
'https://components.flip.to/discovery/engine/'+i.companyCode+'-'+i.code;
f.parentNode.insertBefore(n,f);
}(window,document,'script','fliptoDataLayer',{
	bookingEngine: 'Selfbook',
	companyCode: 'XX',
	code: '{{Selfbook - DLV - Hotel ID}}'
});
</script>
<script async src='https://integration.flip.to/K2X4KDP'></script>
<!-- Flip.to - End Booking Engine Integration -->


Step 2: Confirmation page snippet

This snippet should only fire only on the confirmation page.

  • In the same Google Tag Manager container as Step 1, create a new tag and set the trigger to either:

  • Copy and paste the snippet below into your new tag

  • Replace XX with your Flip.to companyCode (be sure to keep the single quotes)

Last updated