I have implemented the triggerView functionality on my organization's SPA. I can add CSS, basic HTML, and other changes to a particular view in the VEC. However, I have not been able to successfully add Custom Code (specifically a JS script); the script simply does not execute. I have tried multiple combinations: adding to head/not adding to head, various scripts including simple console.logs, etc. To be clear, I am very familiar with adding custom JS to "normal" (not using triggerView()) Experiences to through the VEC, even to the same SPA that is not working with the triggerViews.
Is this a known issue? Specifically, is it even possible to add custom JS to a particular view via the VEC? If not, any suggestions as to what may be going wrong?