If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Admin Tools / Google Reviews Integration

Google Reviews Integration

Started by helenewallis on 24 Aug 2023, 4:33 PM · Views: 1,278

Results 1 to 1 of 1
24 Aug 2023, 4:33 PM
#1
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Google Reviews Integration

Strictly speaking, this is a marketing add-in rather than an admin add-in. But there didn't appear to be a separate category for those so I'm asking here. Google is promoting their customer review program, which provides a snippet of code to add to one's order confirmation page. This allows the customer to opt-in to place a review on your website listing on Google. Has anyone implemented this and can explain how to do it? I am up to my ears, as usual, with other demands and do not have time to figure it out.

Here is the Google code:

<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(
        {
          // REQUIRED FIELDS
          "merchant_id": 552139101,
          "order_id": "ORDER_ID",
          "email": "CUSTOMER_EMAIL",
          "delivery_country": "COUNTRY_CODE",
          "estimated_delivery_date": "YYYY-MM-DD",

          // OPTIONAL FIELDS
          "products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
        });
    });
  }
</script>

There are links on this page for more information on integrating this:

https://support.google.com/merchants/answer/7106244

Many thanks to anyone who can steer me in the right direction.