PLA ads reviews programme

Opt-in Integration

Important: Opt-in integration is a required step for Google Customer Reviews. The program won’t work on your site and surveys will not be offered unless this step has been completed. The opt-in integration lets Google display the Google Customer Reviews opt-in on your site and offer surveys to customers who have opted in to the program.

Before getting started, verify that you’ve completed the integration requirements for the opt-in. Your shopping cart and check out pages must be hosted on the same domain, the confirmation page must be hosted on your own domain, and <!DOCTYPE HTML> must be added to the top of every webpage. Once verified, add the code snippet below to your order confirmation page and customize the variables as needed. The snippet integration will allow Google to display the Google Customer Reviews opt-in on your website. Learn more

<script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script>

<script>
  window.renderOptIn = function() {
    window.gapi.load('surveyoptin', function() {
      window.gapi.surveyoptin.render(
        {
          "merchant_id": 117592737,
          "order_id": "ORDER_ID",
          "email": "CUSTOMER_EMAIL",
          "delivery_country": "COUNTRY_CODE",
          "estimated_delivery_date": "YYYY-MM-DD"
        });
    });
  }
</script>
    

Badge Integration

Optional: Use the badge to display your participation in the Google Customer Reviews program as well as show your seller rating on your site.

To get started, add the code snippet below to any page on your site and customize the variables as needed. After the code snippet has been added, verify the badge and attached text appear as expected on your site. Note: If there aren’t any seller ratings available, the message "no rating available" will appear. Learn more

<script src="https://apis.google.com/js/platform.js?onload=renderBadge" async defer></script>

<script>
  window.renderBadge = function() {
    var ratingBadgeContainer = document.createElement("div");
    document.body.appendChild(ratingBadgeContainer);
    window.gapi.load('ratingbadge', function() {
      window.gapi.ratingbadge.render(ratingBadgeContainer, {"merchant_id": 117592737});
    });
  }
</script>