Developer Information – Hoursmap

FOR DEVELOPERS

 

How do I embed my reviews on my own website?

  1. Edit your page, and insert the following code wherever you would like your reviews to appear, and
  2. wherever EXAMPLE_ID appears in the code, replace it with your numeric listing id:

 

<div id="hoursmap_reviews_embed"></div>
<script>
/**
* Hoursmap Reviews
*
* LEARN MORE AT:
* https://www.hoursmap.com/biz/developers
*/

(function() { // REQUIRED CONFIGURATION VARIABLE: EDIT EXAMPLE_ID BELOW
var d = document, s = d.createElement('script');

// IMPORTANT: Replace EXAMPLE_ID with your listing id!
s.src = 'https://www.hoursmap.com/js/get-reviews.js?id=EXAMPLE_ID';

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>
Please enable JavaScript to view 
<a href="https://hoursmap.com/gopost.php?ref_noscript=yes&id=EXAMPLE_ID" rel="nofollow">
Recommendations powered by Hoursmap.
</a>
</noscript>

 

What are the configuration options for the embedded reviews?

You must replace the string EXAMPLE_ID with the numeric value for your listing.

Where can I find my listing id number?

In your page source, search for the meta tag with id=”hmhours-meta”. This tag will have a data-lpid attribute that contains your numeric id. There may be other attributes in the tag.  For example, the following code has a listing id of 9876543.

<meta id="hmhours-meta" data-lpid="9876543">