Liquid, JavaScript, themes, sales channels
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.
User | RANK |
---|---|
37 | |
24 | |
13 | |
13 | |
9 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023