Personalized checkout and custom promotions with Shopify Scripts
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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024