Help with Code to get Variables for Third Party Platforms
Posted: Sat Jan 06, 2018 12:21 pm
I have been trying to get variables such as customer email and name to populate for third part platforms such as Shopping Reviews and Remarketing. So far I've got things like Product Id and Order Number, but I still need the email and Name.
I am currently needing this on the Receipt.aspx page.
For example; here is the code required for ShopperApproved:
It is needing the 'orderid', 'name' and 'email'.
Adroll Remarketing also also needs the email in their code.
Any help with this would be appreciated. Thanks,
Scott
I am currently needing this on the Receipt.aspx page.
For example; here is the code required for ShopperApproved:
Code: Select all
<script type="text/javascript"> var sa_values = { "site":XXX, "token":"XXX", 'orderid':'ORDER123', 'name':'John Doe', 'email':'john.doe@gmail.com' }; 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("//www.shopperapproved.com/thankyou/rate/26879.js"); else saLoadScript("//direct.shopperapproved.com/thankyou/rate/26879.js?d=" + d.getTime()); </script>
Adroll Remarketing also also needs the email in their code.
Any help with this would be appreciated. Thanks,
Scott