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.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024