Handling Cookie Consent Depending on the Provider
In our frontend architecture, we handle cookie consent through a centralized utility aka handleCookiesConsent.js. This file abstracts the logic for emitting a cookies:consentGiven event based on the user’s interaction with the consent banner, whether we’re using Cookiebot or CookieYes.