Skip to main content

Set up RateParity

Copy the following script tag in your websites' HTML, preferably at the bottom of the <head> tag (just before the closing tag).
If you find that it better suits your needs to place it at the <body> of your HTML, that would be fine as well.

<script src="https: //code.rateparity.com/versions/installer.min.js" defer></script>

Set up the client API (optional)

Copy the following snippet at the beginning of the <head> tag, or at least before any client API command is used.
This will ensure any client API commands used before the main Rateparity script has loaded will not fail and will all be executed when it does.

<script>
window.rptCommandQueue = window.rptCommandQueue || [];
window.rpt = function(){window.rptCommandQueue.push(...arguments);}
</script>
caution

If this step is skipped, any client API command used before RateParity has finished loading will not work.

Webapp

Reviews

Under a web page, your-domain.com/reviews enter the following script:

<script type="text/javascript" src="https://code.rateparity.com/versions/installer.min.js" data-parent-id="your-div-id" data-widget="reviews" defer=""></script>
info
  • Specify 'your-div-id' as the identifier for the div element where you wish to enable the reviews widget.
  • The data-widget must be reviews.

Price Comparison

Under a web page, your-domain.com/booking enter the following script:

<script type="text/javascript" src="https://code.rateparity.com/versions/installer.min.js" data-parent-id="your-div-id" data-widget="ultra" defer=""></script>
info
  • Specify 'your-div-id' as the identifier for the div element where you wish to enable the Price Comparison widget.
  • The data-widget must be ultra.

Get a Quote

Under a web page, your-domain.com/quote enter the following script:

<script type="text/javascript" src="https://code.rateparity.com/versions/installer.min.js" data-parent-id="your-div-id" data-widget="quote" defer=""></script>
info
  • Specify 'your-div-id' as the identifier for the div element where you wish to enable the Get a Quote widget.
  • The data-widget must be quote.