I have successfully implemented step 1 below. I am trying to work out what is required for step 2.

I tried implementing this on a page, in the hope that it would then make this view (homeView) visible to me in the Target VEC... but it didn't.
Am I overlooking something really simple here? Do I need to define the triggerView function somewhere? Thanks in advance.
<script>
window.addEventListener("load", (event) => {
adobe.target.triggerView("homeView");
});
</script>
With this, I am expecting to see the view appear in the modifications tab within Adobe Target using the VEC... But I dont..