Google Customer Reviews Stopped Working in March 2022

brookwoodmed
Tourist
12 0 2

I just noticed that Google Customer Reviews Opt In stopped working in March, did the code change or something change on Shopify? I copied the information from Google Merchant Center and put it in the checkout settings. When I search the source page of an order confirmation page, there is no code. I put the following code in the checkout settings.

 

<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": 0000000,
          "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>

 

Replies 2 (2)

Josh_Uebergang
Shopify Expert
1012 43 269

What makes you say it stopped working? If that's the code you're using, it won't work as the fields won't fill in correctly. You can follow this tutorial I've created to setup Google customer reviews in Shopify.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping

pandacuadsseo
New Member
4 0 0

Use the Google Reviews plugin in the Shopify app store instead