EventListener can't work in HTML / Web Comments. No event is dispatched.
<script>
document.getElementsByTagName('cookie-consent-banner')[0].addEventListener('analytics', () => {
// some fathom analytics tracking code or similar
})
// We also emit these events on `window`
window.addEventListener('consent:analytics', () => {
// some fathom analytics tracking code or similar
})
</script>
EventListener can't work in HTML / Web Comments. No event is dispatched.