Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
How to add Google Customer Reviews "opt-in" script in SCA site
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>