Personalized checkout and custom promotions with Shopify Scripts
Hi community,
I have been collection Google Shopping reviews for long time and this went all well until a few weeks ago, where my customer kept on accepting to receive the Google Survey but the survey was not send.
If you are not familiar with this system: in the additional checkout scripts, there is a script added that shows up a pop-up with request for a survey at the confirmation page of the customer after the order is place.
I am using the following script:
{% if first_time_accessed %}
<!-- BEGIN Google Customer Reviews -->
<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(
{
"merchant_id": [MY MERCHANT ID],
"order_id": "{{ order.name }}",
"email": "{{ order.email }}",
"delivery_country": "{{ shipping_address.country_code }}",
"estimated_delivery_date": "{{ order.created_at | date:'%s' | plus:432000 | date:'%F' }}"
});
});
}
window.___gcfg = {
lang: '{{ shop_locale.iso_code }}'
};
</script>
<!-- END Google Customer Reviews -->
{% endif %}
What could be the reason that Google is not able to send the survey to my customer, what seems to be happening.
Could this be dependent on the following line of code: "email": "{{ order.email }}",
Any suggestions are more than welcome 🙂
Kind regards,
Wouter van der Meer
I believe emails are sent out after x amount of time, I thought it was 2 weeks, so you should see a gap where no emails are sent, due to waiting till the correct time has reached.
I have actually never looked at this, as most my clients use other review platforms.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025