All things Shopify and commerce
Good day,
I could really use some assistance with this please, as I am completely stumped.
I'm using the Debut theme.
About mid November 2022 my customers stopped getting the option to opt-in to my Google Customer Reviews at checkout. Since I have gone to my google merchant center and re-copied the following code and added it to the checkout additional scripts (edited the merchant ID to reflect).
It is still not offering opt-ins after checkout.
Has something changed? Is there more to do? Anything would be helpful.
Thank you!
<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": XXXXXXX,
"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>
The code example you shared, is a template, which requires modification to fit your specific information.
Without this info Google will not be able to to send info.
You can use the checkout objects to fill out the details: https://shopify.dev/api/liquid/objects/checkout
If you want a completed code, you can also follow: https://feedarmy.com/kb/install-google-customer-reviews-in-shopify/
Emmanuel,
Thank you for this. I tried your code as well and I'm still not getting the option to "Opt-In" to the Google Customer Reviews when checking out on the website.
Meaning when a customer is checked out, they are not prompted with "would you like to leave a google review once you receive your order?" This is the issue I'm having.
The only assumption would be if you already accepted it before. Google will not ask you again.
I am having this issue as well...did you find a resolution?
What did you do to test if its working?
How can I test it? I have tried checking out but same with others, it doesn't ask me for a review.
Perform a test purchase.
Then wait a few weeks.
Mine only displays after refreshing the thank you page... Any idea why?
Hey 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, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025