I need your help adding this to the FOOTER of my clients site. The goal is to track website visits in their CRM/marketing system, Act-On. What we are doing is leaving a beacon in the code to track the website visitor information.
I’ve tried to follow the Wix code guidelines but it’s not working. This is easy to do in Joomla and Wordpress—just having problems in Wix.
HERE IS THE CODE… $w - identifies the footer, ignore the // before the code.
$w.onReady(function () {
//TODO: write your page related code here…
//(function(w,a,b,d,s){w[a]=w[a]||{};w[a][b]=w[a][b]||{q:[],track:function(r,e,t){this.q.push({r:r,e:e,t:t||+new Date});}};var e=d.createElement(s);var f=d.getElementsByTagName(s)[0];e.async=1;e.src=‘//marketing.journeyteam.com/cdnr/32/acton/bn/tracker/34509’;f.parentNode.insertBefore(e,f);})(window,‘ActOn’,‘Beacon’,document,'script’);ActOn.Beacon.track();
});