Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Integrating Google Survey Opt-in Module to checkout
Hello Everyone,
I am trying to integrate Google's survey opt-in module to the checkout. Unlike my trustpilot AFS Integration, this has to be implemented on the order confirmation page.
This is the default script that I was provided:
<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": "MERCHANT_ID",
"order_id": "ORDER_ID",
"email": "CUSTOMER_EMAIL",
"delivery_country": "COUNTRY_CODE",
"estimated_delivery_date": "YYYY-MM-DD",
// OPTIONAL FIELDS
"products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
});
});
}
</script>
Would the best approach be the use of
Tagged:
0