Personalized checkout and custom promotions with Shopify Scripts
We have this Order status page additional scripts to collect Google Reviews
How do we change it to the new customer event?
<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": 12345678910,
"order_id": "{{ checkout.order.id }}",
"email": "{{ checkout.order.email }}",
"delivery_country": "{{ checkout.order.shipping_address.country_code }}",
"estimated_delivery_date": "{{ checkout.order.created_at | date:'%s' | plus:604800 | date:'%F' }}",
});
});
};
</script>
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025