Installation Guide hotelrsv.js

Installation Guide hotelrsv.js

Notes
hotelRSV is a 100% web application created with HTML, JS, CSS that can be installed quickly on any page without programming knowledge. You can install it on any CMS (Drupal, Joomla, Wordpress, Wix, SquareSpace), or on any PHP, HTML, Ruby infrastructure. The Wordpress plugin is also available.
This manual is written for the Web Master: the person or agency that designs, manages, administers or is in charge of the hotel's Web site.
Info
If you are in charge of integrating or programming the hotelRSV engine on the website, we suggest you familiarize yourself with all the features offered by hotelRSV in our Quick Start Guide.

Quick Start



IdeaNotes
Using WordPress? Go directly to WordPress Installation - Plugin
Idea
Do you use Wix? Go directly to Install on Wix

General Description


Novohit's hotelrsv.js library for hotelRSV Reservations facilitates installation and integration of all hotelRSV products on the site.
hotelRSV is activated through the following channels or action items:
Booking buttons or links (Action Items).
Automatic Mobile Redirector (Automatic redirection to Web App Mobile).
Integration with TripConnect from Tripadvisor
Integration with One-Click Launcher for site links from Google, Bing and Yahoo!

Installation


Necessary Requirements

Requirements
Status
Description
DOCTYPE
Required
HTML, XML, XHTML files must have a type declaration, this declaration must be the first line of our document and is necessary to tell the browser which version of HTML is used in the page (see documentation).
Idea
This is standard on all modern Web pages.

Installation or Updating a hotel Web Site Pages


Idea
Using WordPress? Go directly to WordPress Installation - Plugin
Idea
Do you use Wix? Go directly to Install on Wix
For the integration of the booking library on any page where you want to allow your customers to make reservations, for example the Home Page, the following code must be included before the closing </head> or closing </footer> tag:

COLOCAR_CODIGO_DE_LICENCIA_AQUI
It is an alphanumeric identifier, the Novohit Support staff will provide you with this value per-ticket.
  1. <script> var hotelrsv_id_h = 101; </script>
DOMINIO_DE_SU_PAGINA_SIN_HTTPS_NI_WWW_NI_DIRECTORIOS
The main domain of your Web site, without protocol (without https://) and without subdomains (without www. or other subdomains) and without directories (without /home or /hotel).
Important, you must leave *.hotelrsv.com

  1. _paq.push(["setDomains", ["*.hotelesacme.com","*.hotelrsv.com"]]);
CODIGO_UNICO_DE_SU_SITIO
Numeric identifier of the website for analytics. Novohit Support staff will provide this value per-ticket.
  1. _paq.push(["setSiteId", 96]);
y
  1. <noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="http://analytics.novohit.com/piwik/matomo.php?idsite=96&amp;rec=1" style="border:0;" alt="" /></p></noscript>

Code hotelrsv.js

  1. <head> <!-- no copiar esta linea, es sólo de referencia -->
  2. <!-- otro código en el <head> -->
  3. <!-- HOTELRSV code - place before end of head or end of footer - copiar a partir de aqui y substituir los valores correspondientes -->
  4. <script> var hotelrsv_id_h = COLOCAR_CODIGO_DE_LICENCIA_AQUI; </script>
  5. <script type="text/javascript" src="https://app.hotelrsv.com/app/ibe/plugin/js/hotelrsv.min.js"></script>
  6. <script type="text/javascript">
  7.   var _paq = _paq || [];
  8.   var crossDomainQueryParam;
  9.   _paq.push(["setSecureCookie", true]);
  10.   _paq.push(["setDomains", ["*.DOMINIO_DE_SU_PAGINA_SIN_HTTPS_NI_WWW_NI_DIRECTORIOS","*.hotelrsv.com"]]);
  11.   _paq.push(["enableCrossDomainLinking"]);
  12.   _paq.push(["setCookieSameSite", "None"]);
  13.   _paq.push([ function() { crossDomainQueryParam = this.getCrossDomainLinkingUrlParameter(); }]);
  14.   _paq.push(["setCampaignNameKey", ["lead_src", "promo_code", "pk_cpn", "pk_campaign", "mtm_campaign", "piwik_campaign", "matomo_campaign", "utm_campaign", "utm_source", "utm_medium"]]);
  15.   _paq.push(["setCampaignKeywordKey", ["promo_code", "pk_kwd", "mtm_kwd", "piwik_kwd", "matomo_kwd", "utm_term"]]);
  16.   _paq.push(["trackPageView"]);
  17.   _paq.push(["enableLinkTracking"]);
  18.   (function() {
  19.   var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.novohit.com/piwik/";
  20.   _paq.push(["setTrackerUrl", u+"matomo.php"]);
  21.   _paq.push(["setSiteId", CODIGO_UNICO_DE_SU_SITIO]);
  22.   var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
  23.   g.defer=true; g.async=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s);
  24.   var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
  25.   })();
  26. </script>
  27. <noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="http://analytics.novohit.com/piwik/matomo.php?idsite=CODIGO_UNICO_DE_SU_SITIO&amp;rec=1" style="border:0;" alt="" /></p></noscript>
  28. <!-- END HOTELRSV code -->
  29. </head><!-- no copiar esta linea, es sólo de referencia -->
Notes
First put the license code and page identifier, then the hotelrsv.min.js script.
NotesUpon activation of your License Agreement, our team will communicate your License Code and Page ID to you.
Notes
With our Analytics platform you will have access to metrics and statistics of your visitors and how they behave within the booking page. This data is important in the short term because it helps you to accurately determine the behavior of your customers and potential guests and you can only get it with analytics.novohit.com. Our analytics platform is similar to Google Analytics, and in fact both can coexist WITHOUT CONFLICT, but with ours you will have access to more data because it is 100% integrated with hotelRSV. Request via ticket your access to our analytics platform.

Configuring Action Items or "Book Now" Buttons


Configure the "Reserve" Buttons or Action Items. To do this, review the following guide for Reserve Buttons - Action Calls.

Booking Links


You can set up Booking Links which you can use in digital marketing campaigns. See: CTA: URLs, Direct Booking Links - Booking Link Generator

Language Selection


hotelRSV allows you to configure the language of the application, please review the following documentation on Language Selection and Determination.

Technical Details






    • Related Articles

    • Joomla Installation

      To perform the installation on Joomla 1.5, it is necessary to make small modifications to the .PHP file of the template in order to dynamically inject the JavaScript library and the environment variable. We have prepared a brief guide, however for ...
    • Wix Installation

      hotelrsv.min.js Library To implement the hotelrsv.min.js library in Wix, follow these steps: In the Dashboard → Settings → Custom Code → Head option (official Wix guide), place the installation code in the Head, but you must separate the essential ...
    • Quick Start Guide

      If you are a Partner Company or Tourism Agency and wish to make reservations for the hotel with an agreement, please visit Partner Company, Agencies. Before you start using hotelRSV on your website, it is recommended that you read this quick start ...
    • Installation in WordPress – Plugin

      The new hotelRSV plugin for WordPress allows you to install with a single click the hotelrsv.js libraries and perform basic configurations such as application language. Avoid Errors! Avoid duplicate libraries or installation. If you use the WordPress ...
    • List of Supported Platforms and Browsers for HotelRSV

      See: https://help.novohit.com/portal/en/kb/articles/devices-and-browsers-compatible-with-hotelrsv