Supercharge your attendance by showing accommodations near your venue. Revolugo's Hotel Map technology lets your event attendees browse for accommodations directly from your website. No redirection. High conversion. More revenue. Help your attendees find the best deal during your event. Embed our high converting Hotel Map technology on your event's accommodation page, sit down and relax.
In order to display our widget on your web page, you just need to copy/paste the following script tag anywhere in your html code where you want the hotels map to be displayed :
The values between brackets must be replaced by unique identifiers provided by our team operational. The [TRACKING_ID] and the [WIDGET_ID] attributes represent respectively a tracking token related to your organization, and the identifier of your event.
Please note that you can also use other attributes to the script tag when integrating the widget. The new attributes will take precedence over the information related to the widget ID. The exhaustive list of attributes is described below.
You can generate a widget dynamically and customize its settings giving additional information to the script tag, such as the longitude and latitude of your event or the dates, for instance. Options are specified through attributes of the html script tag.
Ideally, you'll inject context data (check in/check out date, location, etc) and other script tag's data attributes from your backend's template renderer (e.g: using <%= latitude %> with Ruby on Rails or using <?php $latitude ?> with PHP)
Here is a snippet exposing the exhaustive list of attributes that are customizable:
Be careful, query string must be url encoded
data-latitude | data-longitude
In order to make the hotels map point directly to your event's venue, you need to provide the latitude and longitude of the event. If only one of those two attributes is missing, it will be ignored.
Be careful, query string must be url encoded
data-address
This is the address of your event's venur that will be displayed in the event information window on the map (when venue marker is hovered). It has no effect over the initial position of the Hotel Map's venue marker.
Be careful, query string must be url encoded
data-check-in-date | data-check-out-date
Provide the initial check in and check out dates of the widget that will be used to poll hotel availabilities.
Allowed format: 'YYYY-MM-DD'
Default values (when not provided):
Be careful, query string must be url encoded
data-name
The name of your widget. It will be displayed in the widget information window on the Hotel Map (when the widget center marker is hovered).
Be careful, query string must be url encoded
data-description
The description of your event. It will be displayed in the widget information window on the map (when widget center marker is hovered). It should be a short sentence describing your event.
Be careful, query string must be url encoded
data-marker
You can show the logo of your event as the marker on the map that corresponds to the event location. Only give the url link to your event’s logo. The image should be 70 x 70 px for best result. This simplifies the user experience as it makes clearly visible the event on the map, but it doesn’t hide content either.
Be careful, query string must be url encoded
data-logo
You can show the logo of your event as the marker on the map that corresponds to the event location. Only give the url link to your event’s logo. The image should be 70 x 70 px for best result. This simplifies the user experience as it makes clearly visible the event on the map, but it doesn’t hide content either.
Be careful, query string must be url encoded
data-color-widget-main-1
This attribute controls the main colors of the widget (Default to "007FFF").
Be careful, query string must be url encoded
data-color-widget-main-2
This attribute controls the main colors of the widget (Default to "45DCA4").
Be careful, query string must be url encoded
data-color-venue-marker
This attribute controls the color of central venue marker on the map (Default to "007FFF").
Be careful, query string must be url encoded
data-color-hotel-marker
This attribute controls the color of hotel markers on the map (Default to "007FFF").
Be careful, query string must be url encoded
data-tid
Reach out to us by mail or by chat to obtain your tracking token. This is where the tracking token we provided to you needs to be Your organization tracking token ID assigned to you to track your earnings.
This tracking token is unique and is related to your organization.
It allows us to track every booking made through a Revolugo widget you integrated on a website.
Be careful, query string must be url encoded
data-lang
This attribute controls the default language of the widget content. If not provided, default language is set to user's browser language.
Currently, we only support following languages :
There is no "lang" query string. Instead, insert the desired locale code in the URL as first parameter after Revolugo.com's domain URL.
data-currency
This attribute controls the default currency displayed for prices. If not provided, default currency is set to current user's IP address country currency.
We support following currencies :
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SVC, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW
Be careful, query string must be url encoded
data-height
This attribute controls the height the widget will take in your event's website page.
We highly recommend to integrate our widget in a location on your web page with a wide available window width, so that its display is more user friendly. The widget will take the whole available window width. You are free to change the size of the widget using the height attribute. It can be expressed in px, vh, em.
data-display-map
At initial load, on mobile/responsive screen, the widget displays the hotel list view by default. If you wish to display the hotel map first, you need to set this attribute to true.
Be careful, query string must be url encoded
data-wid
The widget ID is the unique identifier of your event in our system. It is associated with pre-defined settings for the widget that will be automatically applied. Other attributes (that are described here) will override default settings encapsulated with your widget ID. If the widget ID is not recognized or not given, it will be ignored.
Be careful, query string must be url encoded
You may have access to your customer personal information before displaying our widget on your website. You can make their experience even better by activating the quick checkout feature of our widget booking experience by providing your customer's personal information as attributes to the script tag.
This way, your customer will be able to book a hotel room in the blink of an eye.
data-c-firstname | data-c-lastname | data-c-salutation | data-c-email | data-c-phone
The required attributes to activate the quick checkout are the followings:
Be careful, query string must be url encoded
data-o-name | data-o-vat | data-o-address | data-o-city | data-o-state | data-o-zip | data-o-country
Following attributes can also be passed along with customer information in order for the widget to generate invoices for your customer's reservation.
Be careful, query string must be url encoded
data-custom-xxxxx
You may want to be able to reconcile booking made through the widget with your own customer.
You can easily do that by passing custom attributes to the script tag like the id in your system of the customer who booked a hotel room with our widget, for instance.
Those custom data attributes will be merged into one JSON object that we will store along with the customer booking data in order for you to be able to retrieve it (see Webhook section above).
Be careful, query string must be url encoded
When someone makes a booking through our widget with a tracking ID belonging to you, we are able to trigger instantly an HTTP POST request to a webhook in your system (based on the secure URL of a remote HTTP endpoint that you need to provide to us) in order for you to get and reconcile booking information with your system.
Contact our support team in order to configure this setup to fit your needs
Generating a Revolugo hotel map widget on your event's pages is as easy as doing some copy/pastes of the previous snippets of code that you've found through this documentation.
Ideally, you'll inject context data (check in/check out date, location, etc) and other script tag's data attributes from your backend's template renderer (e.g: using {% c-line %}<%= latitude="" %=""></%=>{% c-line-end %} with Ruby on Rails or using {% c-line %}<?= $latitude ?>{% c-line-end %} with PHP)
However, in certain situation, you may find it easier to generate the widget injecting a particular context directly from browser available data (e.g: from URL query string).
The following snippet of code is a ready-to-use snippet of code to do so: