Docs
Visit Flip.toManage your platform
  • About Flip.to Docs
  • Get Started
    • Quickstart
  • Platform
    • Discovery
      • Launchpad
      • Day-to-day
      • Experiences
        • Libraries and Management
        • Flip.to 🤝 OccasionGenius
      • Planner audiences
    • Advocacy
      • First campaign
      • Curation
        • Getting the most out of Curation
      • Stories
      • Promoting a campaign
      • Top storytellers
    • Collaboratives
      • Collaborative Insights
      • Campaign Tracking
      • Brand Resources
    • Mission Control
      • Branding
      • Point person
      • Seasonal photos
      • Booking engine URL
      • Custom domains
      • Languages
      • Team
  • Integrations
    • Websites
      • Set up your website
      • Cross-domain tracking
      • Member tracking
      • Website markup
      • Feature previews
    • Booking Engines
      • Set up your booking engine
      • Vendors
        • SynXis
        • iHotelier
        • RevRaise by AZDS
        • RezTrip
        • SiteMinder
        • Newbook
        • Cloudbeds
        • Campspot
    • Analytics
      • Signals & subscriptions
      • Consent management
    • CRMs
      • Zapier
        • Using Zapier with Mailchimp
      • Revinate
      • Salesforce
      • SFTP
    • Email
      • Confirmation email
      • Pre-arrival email
      • Post-stay email
      • Cancellation email
    • Marketing
      • Google Ads
      • Microsoft Advertising
      • Meta Ads
      • TikTok Ads
  • API
    • Introduction
    • Reference
      • Platform API
      • Collaborative API
  • Support
    • Customer Success
    • Policies
Powered by GitBook
On this page
  • Step 1: Booking engine snippet
  • Step 2: Confirmation page snippet
  1. Integrations
  2. Booking Engines
  3. Vendors

RezTrip

PreviousRevRaise by AZDSNextSiteMinder

Last updated 2 months ago

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

Before you begin: you'll need your Flip.to companyCode, which you should have received by email. If not, ask our .


Step 1: Booking engine snippet

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

  • Copy and paste the snippet below into <head> tag of the booking engine

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

  • Replace YY with your RezTrip property code (be sure to keep the single quotes)

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


Step 2: Confirmation page snippet

This snippet should be added only to your RezTrip confirmation page.

Please note, the confirmation page will include both the booking engine snippet and the confirmation page snippet, and the order is unimportant.

  • Copy and paste the snippet below into <head> tag of the confirmation page

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

  • Replace YY with your RezTrip property code (be sure to keep the single quotes)

<!-- Flip.to - Confirmation Page -->
<script>
var guestDetails = document.querySelectorAll('[headers=summary_reservation_guest_details]');
var fullNameAndEmail = guestDetails[0].innerText.split("\n");
!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: 'RezTrip',
companyCode: 'XX',
code: 'YY',
confirmation: quoteList[0].confcode,
first: fullNameAndEmail[0].trim().split(" ")[0],
last: fullNameAndEmail[0].trim().split(" ")[1],
email: fullNameAndEmail[1].trim(),
startDate: quoteList[0].sd,
endDate: quoteList[0].ed,
type: quoteList[0]['rt'],
rateCode: quoteList[0]['rc'],
language: 'en',
currency: quoteList[0].cc,
amount: rtTOTALCOST,
addonAmount: rtADDONVALUE_0
});
</script>
<!-- Flip.to - End Confirmation Page -->
Customer Success team