Merged in feat/sentry-errors-fixes (pull request #1216)

Removed VWO and cookie-bot

* Removed VWO and cookie-bot

* Merged master into feat/sentry-errors-fixes


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2025-01-27 12:32:36 +00:00
parent 95e8c5ff6c
commit dc105992c5
7 changed files with 1 additions and 761 deletions

View File

@@ -9,9 +9,8 @@ export default function CookieBotConsent() {
const pathName = usePathname()
const isWebview = webviews.includes(pathName)
const CookiebotCallbackOnAccept = useCallback(() => {
const cookie = window._satellite.cookie.get("CookieConsent")
if (window.Cookiebot?.changed && window.adobe) {
const cookie = window._satellite?.cookie?.get("CookieConsent")
// For webviews we always set the consent to true since we don't have cookiebot.
if (isWebview) {
window.adobe.optIn.approve(window.adobe.OptInCategories.ANALYTICS, true)