CallRail Integration is Broken - Manual Workaround?

The CallRail integration in marketing tools is broken. The dynamic number insertion (DNI) works as the page loads but then the numbers are replaced by their original values. Also DNI does not seem to fire at all on visting pages after the landing page.

CallRail support have said to use a coding solution by calling callTrk.swap() method, a workaround which manually fires the swap. "Your developer can trigger this after the swap target is loaded into the DOM by binding it to a callback function that occurs when the content is loaded into the DOM. You can find the documentation for this here https://apidocs.callrail.com/#swap-js "

Before I waste any further time on this, please can someone tell me whether or not this is going to be feasible in WixCode (didn’t think we could access the DOM)

thanks,

Simon

p.s. be gently I’m not a developer.