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

View File

@@ -28,6 +28,9 @@ export default function RootLayout({
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
/>
<Script id="ensure-datalayer">{`
window.datalayer = window.datalayer || {}
`}</Script>
<AdobeScript />
<VwoScript />
</head>

View File

@@ -64,10 +64,9 @@ export default function RootLayout({
src="/_static/dist/js/main-ng.js?336b801d6b38eff10884"
strategy="lazyOnload"
/> */}
<Script
strategy="beforeInteractive"
id="ensure-datalayer"
>{`window.datalayer = window.datalayer || {}`}</Script>
<Script id="ensure-datalayer">{`
window.datalayer = window.datalayer || {}
`}</Script>
<AdobeScript />
<VwoScript />
</head>