Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi All,
I would like to set up google customer reviews at the order confirmation stage but it looks like I need to add a redirect due to the URL ?
Could anyone help me with this as I have no idea how to add this to the site?
I understand how to add the code below but I have tested it with no service review pop up (I have also changed the relevant merchant ID etc.. )
<!-- BEGIN GCR Opt-in Module Code -->
<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
"merchant_id": "MERCHANT_ID",
"order_id": "ORDER_ID",
"email": "CUSTOMER_EMAIL",
"delivery_country": "COUNTRY_CODE",
"estimated_delivery_date": "YYYY-MM-DD",
// OPTIONAL
"products":[{"gtin":"GTIN1"}, {"gtin":"GTIN2">}],
"opt_in_style": "OPT_IN_STYLE"
});
});
}
</script>
<!-- END GCR Opt-in Module Code -->
Place the code just before the closing </BODY>
Any help would be greatly appreciated. it's probably something really simple but I am not 100% on it.
Best Regards
I have a step by step guide on how to correctly install the code: https://feedarmy.com/kb/install-google-customer-reviews-in-shopify/
My code is more extensive so it will look different, it just has more features included.