The review content should never appear directly in the source code of the loaded page, be it in HTML or Javascript. A violation of this policy can lead to a termination of the licensing agreement and we reserve the right to conduct periodic and spontaneous audits of how our reviews were integrated on your site.

✅ Correct Implementation

The review content must be loaded via an external javascript call that is blocked in robots.txt so that Google can not crawl the review text.

Implement reviews by blocking the specific ajax call that retrieves the reviews.

<html>
  <head>
    <script>
      var review_content = $.ajax(“https://api.abc.com/getReviewContentForHotel/123/”);
                                  $(“review”).html(review_content);
    </script>
  </head>
 <body>
   <div id=”review”></div>
  </body>
</html>

Robots.txt in the root directory for https://api.abc.com

User-Agent: *

Disallow: /getReviewContentForHotel

Implement reviews by blocking all the javascript related to loading the reviews.

<html>
  <head>
    <script src="/everything_to_do_with_loading_reviews/load_reviews.js"></script>
  </head>
  <body>
    <div id=”review”></div>
  </body>
</html>

Robots.txt in the root directory for https://www.abc.com

User-Agent: *

Disallow: /everything_to_do_with_loading_reviews

❌ Invalid implementation

Review text placed directly in body section of the HTML code

<html>
  <head>
  </head>
  <body>
    <div>”I had a great time at this hotel”</div>
  </body>
</html>

Javascript directly in the page source

<html>
  <head>
    <script>
      var review_content = ”I had a great time at this hotel”;
      $(“review”).html(review_content);
    </script>
  </head>
  <body>
    <div id=”review”></div>
  </body>
</html>