skip to Main Content

Google Merchant Customer Review Optin window not opening on order success page – Magento

I have integrated following code in my website order success page via GTM : <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": 87654376, "order_id": "{{dl.order.id}}", "email": "{{dl.order.customerEmail}}", "delivery_country": "{{dl.order.deliveryCountry}}", "estimated_delivery_date": "{{dl.order.estDeliveryDate}}" }); });…

VIEW QUESTION

Google Tag Manager: Using Javascript variables defined on page html in GTM Merchant code? – Magento

I am trying to integrate Google Merchant Code via GTM on a product checkout/thankyou page. The Google Merchant code is : <script> window.renderOptIn = function() { window.gapi.load('surveyoptin', function() { window.gapi.surveyoptin.render( { "merchant_id": 12345678, "order_id": "ORDER_ID", "email": "CUSTOMER_EMAIL", "delivery_country": "COUNTRY_CODE", "estimated_delivery_date":…

VIEW QUESTION
Back To Top
Search