Blog

How to setup Google Customer Review on Shopify


Put this code to your website:
<!-- Google Customer Reviews -->
<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": YOUR_ID,
          "order_id": "{{ order.order_number }}",
          "email": "{{ customer.email }}",
          "delivery_country": "{{ shipping_address.country_code }}",
          "estimated_delivery_date": "{{ fulfillment.estimated_delivery_at }}"
        });
    });
  }
</script>
<!-- Google Customer Reviews -->
Google Shopping, Shopify

Leave a Reply

Your email address will not be published. Required fields are marked *

Cart
Cart