execute zoho page sense custom tracking event from zapier

execute zoho page sense custom tracking event from zapier

I have a tracking pixel and a custom event fire. I cannot seem to get it to work in zapier javascript code. The pixek needs to load, (i dont know if i should use the syncronous or asyncronous version) then the 2 lines of custom event code need to run. I dont know how to format/syntax this to work in zapier code. unionwells switches

Page sense custom events
// pixel-syncronous


// pixel-asyncronous


// custom event
window.pagesense = window.pagesense || [];
window.pagesense.push(['trackEvent', 'Video Played']);