I’m trying to install an ActiveCampaign tracking code to all on my website. I’ve been told that the code needs to go within the body tags, near the bottom of the page. The tracking code is listed below. Can you please help me understand how to install?
<!-- ActiveCampaign Tracking Code START -->
<script>
var trackcmp_email = '';
var trackcmp = document.createElement("script");
trackcmp.async = true;
trackcmp.type = 'text/javascript';
trackcmp.src = '//trackcmp.net/visit?actid=123456789&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href);
var trackcmp_s = document.getElementsByTagName("script");
if (trackcmp_s.length) {
trackcmp_s[0].parentNode.appendChild(trackcmp);
} else {
var trackcmp_h = document.getElementsByTagName("head");
trackcmp_h.length && trackcmp_h[0].appendChild(trackcmp);
}
</script>
<!-- ActiveCampaign Tracking Code END -->
Thanks!
Blake