fix: Google Tag Manager erst nach Einwilligung laden

GTM-Loader ist jetzt eine Funktion (ltLadeGtm), die consent.js nur bei
„Alle akzeptieren“ bzw. gespeicherter Zustimmung aufruft. noscript-iframe
entfernt, da er ohne Einwilligung Google kontaktiert hat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude Opus 5.5 committed 2026-09-22 23:47:20 +02:00
1 parent 2ed49b3d95
commit 6ae031b3cb
31 files changed
+92 -210

No files matched your search

+3 -7
View File
@@ -17,12 +17,12 @@
'wait_for_update': 500
});
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
<!-- Google Tag Manager: wird erst nach Einwilligung von custom/consent.js geladen -->
<script>window.ltLadeGtm=function(){if(window.ltGtmGeladen)return;window.ltGtmGeladen=true;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T6CVBLPR');</script>
})(window,document,'script','dataLayer','GTM-T6CVBLPR');};</script>
<!-- End Google Tag Manager -->
<!-- Inter: exakt dieselben Schriftdateien wie der Framer-Export -->
@@ -78,10 +78,6 @@
<!-- /STATIC-SEO -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T6CVBLPR"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- ==================== INTRO „FOKUS" ====================
Eine hohe Scroll-Strecke mit festgehefteter (sticky) Bühne. Das Held-