BEACON - in footer of Wix Code so it ties into CRM tracking

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();

});

Hello Dave,

Although Wix Code is based on Javascript, it does not allow direct interaction with your site backend files.

As a workaround you can check out the HTML component app (which is unrelated to Wix Code) to see if it fits your requirements .
The HTML component allows you to import third party code, you can find more information here .
For more information regarding guidelines and limitations of working with the HTML component please see here .

it is a pity that the HTML app is not related to the wix code after all I do not want the html code on it to always appear the same on all pages.