Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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?
Solved! Go to the solution
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)
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)
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.
It should be order status.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025