fix: Only load GTM when consent is given & use reactivity instead of reloading the site

This commit is contained in:
oSumAtrIX
2024-11-29 23:24:39 +01:00
parent 582d51e394
commit 504a670e4e
2 changed files with 38 additions and 30 deletions

View File

@@ -23,14 +23,4 @@
<body>
<div>%sveltekit.body%</div>
</body>
<!-- Google Tag Manager (noscript) -->
<!-- TODO: Is this allowed to be present, even when consent to collect data is not given? -->
<noscript>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-MQ6K849"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe>
</noscript>
</html>