Personalized checkout and custom promotions with Shopify Scripts
Hi there,
In the Google Merchant Center (GMC), there still shows we miss the setting/set-up for the ''Google Store Reviews''.
We tried to add it via a HTML script and instruction and put in at the Shopify Settings, and then at the Check-out HTML field. However it is not working & the GMC is also not recognizing it. We asked Google Support about it and they mentioned it need to be put at the 'Order Confirmation Page', but they could us not help us furtherly with the Integration or tips & advise on it, and re-directed us to Shopify Support for this. It could be therefore we are at the wrong section. Perhaps it should be put somewhere else (theme code), we are using the wrong html code, or it is only possibile if you have Shopify Plus (since then you have acces to the confirmation page we heard sometime before).
The html code we have in the additional scripts at the Checkout, at Settings is as per below. Our Merchant Center ID we made XXXXXXXXX. Hope someone is there that can help/guide, to also have this integrated & we can send Customers these official Google Store Review requests. Many thanks!
Url link for Store reviews Google provided when we click at the Store Google Review section, where it mentions to SET-UP the Google Store review automation: https://support.google.com/merchants/answer/190657
Quote:
{% 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”: XXXXXXXXXXX,
“order_id”: “{{ order.name }}”,
“email”: “{{ order.email }}”,
“delivery_country”: “{{ shipping_address.country_code }}”,
“estimated_delivery_date”: “{{ order.created_at | date:'%s' | plus:604800 | date:'%F' }}”
});
});
}
window.___gcfg = {
lang: ‘{{ shop_locale.iso_code }}'
};
</script>
<!– END Google Customer Reviews –>
{% endif %}
<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": XXXXXXXXX,
"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>
Because Shopify has moved to pixels, you will not get this working, unless you are using an app, such as https://apps.shopify.com/easy-google-customer-reviews
If you don't want to use this, then I recommend using a different review platform, there are plenty of 3rd party review aggregators supported, here is a list: https://support.google.com/merchants/answer/14620160
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024