fix: moved ensure-datalayer Script element to layout since that turns out to be a requirement to use strategy=beforeInteractive

This commit is contained in:
Arvid Norlin
2024-02-22 19:28:54 +01:00
parent c19f235e5f
commit 4ea00a5e2c
2 changed files with 5 additions and 9 deletions

View File

@@ -63,6 +63,10 @@ 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>
<AdobeScript />
</head>
<body>