We got the below script for adding Google Customer Reviews to our website. It needs to added to order confirmation page.
But there are two options in SCA:
1. order_wizard_confirmation_module.tpl in order confirmation module
2. SCA Web Set Up - Analytics sub tab - Order Confirmation Page
<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": ID,
"order_id": "<%=getCurrentAttribute('confirmation','ordernumber')%>",
"email": "<%=getCurrentAttribute('customer','email')%>",
"delivery_country": "<%=getCurrentAttribute('confirmation','shiptocountry')%>",
"estimated_delivery_date": "YY-MM-DD"
});
});
}
</script>
The other question is "how to get the estimated delivery date value in order confirmatino attribute?
https://netsuite.custhelp.com/app/answers/detail/a_id/27814/kw/order%20confirmation%20attribute
There is no such attribute in NS suiteanswer.