fix: add checks to tracking consent

This commit is contained in:
Arvid Norlin
2024-03-04 08:08:22 +01:00
parent 0f5a972797
commit 527698544c
4 changed files with 50 additions and 9 deletions

10
types/window.d.ts vendored
View File

@@ -1,3 +1,13 @@
interface Window {
datalayer: { [key: string]: any }
_satellite: { cookie: { get: (s: string) => string } }
adobe: {
OptInCategories: { ANALYTICS: string }
optIn: {
approve: (s: string, b: boolean) => {}
deny: (s: string, b: boolean) => {}
complete: () => {}
}
}
Cookiebot: { changed: boolean; consented: boolean }
}