Install Adroll Pixel Customer Events - checkout_started

Install Adroll Pixel Customer Events - checkout_started

Mike_F1
Visitor
1 0 0

Hello,

We're trying to fire the Adroll Javascript pixel during the "checkout_started" customer event.

Does anybody know of a tool to convert the javascript into text that I can paste into the customer events code box in shopify? 

Thanks,
Mike

<script type="text/javascript">
adroll_adv_id = "YOURADVERTISERID";
adroll_pix_id = "YOURPIXELID";

(function () {
var _onload = function(){
if (document.readyState && !/loaded|complete/.test(document.readyState)){setTimeout(_onload, 10);return}
if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return}
var scr = document.createElement("script");
var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
scr.setAttribute('async', 'true');
scr.type = "text/javascript";
scr.src=host + "/j/roundtrip.js";
((document.getElementsByTagName('head') || [null])[0] ||
document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
};
if (window.addEventListener) {window.addEventListener('load', _onload, false);}
else {window.attachEvent('onload', _onload)}
}());
</script>

Replies 0 (0)