Skip to content

Commit 08382e1

Browse files
committed
testing adroll
1 parent a8f5baf commit 08382e1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

app/views/application/_mixpanel.html.erb

+23
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,27 @@
4747
});
4848
</script><!-- end Mixpanel -->
4949

50+
51+
<script type="text/javascript">
52+
adroll_adv_id = "KGZQACVKNRCUTCCXGWXOW7";
53+
adroll_pix_id = "F3IHUZYRFFHCHE7ZMGC7TX";
54+
/* OPTIONAL: provide email to improve user identification */
55+
/* adroll_email = "[email protected]"; */
56+
(function () {
57+
var _onload = function(){
58+
if (document.readyState && !/loaded|complete/.test(document.readyState)){setTimeout(_onload, 10);return}
59+
if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return}
60+
var scr = document.createElement("script");
61+
var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
62+
scr.setAttribute('async', 'true');
63+
scr.type = "text/javascript";
64+
scr.src = host + "/j/roundtrip.js";
65+
((document.getElementsByTagName('head') || [null])[0] ||
66+
document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
67+
};
68+
if (window.addEventListener) {window.addEventListener('load', _onload, false);}
69+
else {window.attachEvent('onload', _onload)}
70+
}());
71+
</script>
72+
5073
<% end %>

0 commit comments

Comments
 (0)