New Shopify Certification now available: Liquid Storefronts for Theme Developers

Google Merchant Center Customer reviews

Solved
x264
Tourist
10 2 1

Hello,

i have set up the customer reviews in the merchant center.

 

i inserted the script in the checkout but there is one problem:

 

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

 

I know there are dynamic tags that i can insert  in the script like email, currency etc. and i already did that but how can i set the estimated delivery date to 10 days from the order date?

 

What is the dynamic tag to set estimated delivery 10 days in the future from the order date?

 

Accepted Solution (1)
EmmanuelFlossie
Shopify Partner
2718 197 656

This is an accepted solution.

Here is a working code for you: https://feedarmy.com/kb/install-google-customer-reviews-in-shopify/

 

Basically what you do is add the days to the current date (now)

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.

View solution in original post

Replies 3 (3)
EmmanuelFlossie
Shopify Partner
2718 197 656

This is an accepted solution.

Here is a working code for you: https://feedarmy.com/kb/install-google-customer-reviews-in-shopify/

 

Basically what you do is add the days to the current date (now)

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.
MichaelB645
Visitor
1 0 0

We have used your code, but only a few customers have received the survey offers in our google merchant center dashboard. Less than 1% of customers have been offered? Your instructions don't state whether to put the code in the post purchase page additional scripts or the order status page additional scripts as those are now separated in Shopify. Assistance would be appreciated.

EmmanuelFlossie
Shopify Partner
2718 197 656

It should be order status.

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.