Can't get Custom Event to work on rule
Hi,
I'm trying to get a rule to load via firing a custom event on the rule. We have the following event set up for it:

However when we run this code:
document.body.dispatchEvent(new CustomEvent('ConsentGiven'));
Nothing happens.
The odd thing is when we attach the Adobe Experience Cloud Debugger, and have it replace the Launch Embed code with one in dev, then it works. But otherwise, it doesn't.
We're currently loading the code in via JavaScript by injecting an async script tag into the header.
Can anyone let us know what needs to be done to get this custom event to work with the rule?