I am trying to integrate shopper approved into our site and I do not know what to do and their team is being difficult. I am using Google Tag Manager.
I am trying to dynamically input the Customer Name, Customer Email, and Order ID. I am sure I have to replace the ORDER123, John Doe, and [email protected] with the correct variable but I just do not know what that is. Any help would greatly be appreciated.
Thank you.
I am trying to dynamically input the Customer Name, Customer Email, and Order ID. I am sure I have to replace the ORDER123, John Doe, and [email protected] with the correct variable but I just do not know what that is. Any help would greatly be appreciated.
JavaScript:
<script type="text/javascript"> var sa_values = { "site":XXXXX, "token":"XXXXX", 'orderid':'ORDER123', 'name':'John Doe', 'email':'[email protected]' }; function saLoadScript(src) { var js = window.document.createElement("script"); js.src = src; js.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1477399567000) saLoadScript("https://www.shopperapproved.com/thankyou/rate/29663.js?d=" + d.getTime()); else saLoadScript("//direct.shopperapproved.com/thankyou/rate/29663.js?d=" + d.getTime()); </script>
Thank you.