From 6ae031b3cb4097cb42cf668ef791ed043e164038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Tue, 22 Sep 2026 23:47:20 +0200 Subject: [PATCH] fix: Google Tag Manager erst nach Einwilligung laden MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- public/404.html | 10 +++------- public/blog.html | 10 +++------- public/custom/consent.js | 2 ++ public/datenschutz.html | 10 +++------- public/eventfotografie.html | 10 +++------- public/impressum.html | 10 +++------- public/index.html | 10 +++------- public/kontakt.html | 10 +++------- public/leistungen.html | 10 +++------- public/nutzungsbedingungen.html | 10 +++------- public/portfolio-abiball.html | 10 +++------- public/portfolio-aufstiegsfeier.html | 10 +++------- public/portfolio-beach-soccer-cup.html | 10 +++------- public/portfolio-deutschland-u21.html | 10 +++------- public/portfolio-fc-st-pauli.html | 10 +++------- public/portfolio-frauen-bundesliga.html | 10 +++------- public/portfolio-hamburger-sv.html | 10 +++------- public/portfolio-hannover-96.html | 10 +++------- public/portfolio-nfv-pokalfinale-2026.html | 10 +++------- public/portfolio-omr-yes-wecancer.html | 10 +++------- public/portfolio-rhine-ruhr-3x3.html | 10 +++------- public/portfolio-rhine-ruhr-basketball.html | 10 +++------- public/portfolio-rhine-ruhr-beachvolleyball.html | 10 +++------- public/portfolio-rhine-ruhr-sport.html | 10 +++------- public/portfolio-sv-meppen.html | 10 +++------- public/portfolio-svg-lueneburg.html | 10 +++------- public/portfolio-yes-con-2026.html | 10 +++------- public/portfolio.html | 10 +++------- public/saison-rueckblick.html | 10 +++------- public/sportfotografie.html | 10 +++------- public/über-mich.html | 10 +++------- 31 files changed, 92 insertions(+), 210 deletions(-) diff --git a/public/404.html b/public/404.html index 819a071..ff66096 100644 --- a/public/404.html +++ b/public/404.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -63,10 +63,6 @@ - - -
diff --git a/public/blog.html b/public/blog.html index 899a61c..8edb98d 100644 --- a/public/blog.html +++ b/public/blog.html @@ -15,12 +15,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; Blog | Leon Tonhäuser @@ -70,10 +70,6 @@ - - -

Blog

Hier schreibe ich bald über Shootings, Hintergründe und alles, was neben der Kamera passiert.

diff --git a/public/custom/consent.js b/public/custom/consent.js index 843ea81..2990434 100644 --- a/public/custom/consent.js +++ b/public/custom/consent.js @@ -7,6 +7,8 @@ var KEY = 'lt_consent_v1'; function update(granted) { + // GTM erst nach Einwilligung laden – vorher keine Verbindung zu Google. + if (granted && typeof window.ltLadeGtm === 'function') window.ltLadeGtm(); if (typeof gtag !== 'function') return; var v = granted ? 'granted' : 'denied'; gtag('consent', 'update', { diff --git a/public/datenschutz.html b/public/datenschutz.html index d070525..b4284d0 100644 --- a/public/datenschutz.html +++ b/public/datenschutz.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -76,10 +76,6 @@ - - -
diff --git a/public/eventfotografie.html b/public/eventfotografie.html index 409ae66..9736dd3 100644 --- a/public/eventfotografie.html +++ b/public/eventfotografie.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -79,10 +79,6 @@ - - -
diff --git a/public/impressum.html b/public/impressum.html index 85b885e..1eb052a 100644 --- a/public/impressum.html +++ b/public/impressum.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -76,10 +76,6 @@ - - -
diff --git a/public/index.html b/public/index.html index d192faa..307ea3c 100644 --- a/public/index.html +++ b/public/index.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -78,10 +78,6 @@ - - - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/leistungen.html b/public/leistungen.html index e8407ab..81b4168 100644 --- a/public/leistungen.html +++ b/public/leistungen.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -78,10 +78,6 @@ - - -
diff --git a/public/nutzungsbedingungen.html b/public/nutzungsbedingungen.html index 7896831..469f834 100644 --- a/public/nutzungsbedingungen.html +++ b/public/nutzungsbedingungen.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -46,10 +46,6 @@ - - -
diff --git a/public/portfolio-abiball.html b/public/portfolio-abiball.html index 1282aa5..8415e0d 100644 --- a/public/portfolio-abiball.html +++ b/public/portfolio-abiball.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-aufstiegsfeier.html b/public/portfolio-aufstiegsfeier.html index f1fea54..4fadedf 100644 --- a/public/portfolio-aufstiegsfeier.html +++ b/public/portfolio-aufstiegsfeier.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-beach-soccer-cup.html b/public/portfolio-beach-soccer-cup.html index 8342653..f916747 100644 --- a/public/portfolio-beach-soccer-cup.html +++ b/public/portfolio-beach-soccer-cup.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-deutschland-u21.html b/public/portfolio-deutschland-u21.html index db15709..8bf3b58 100644 --- a/public/portfolio-deutschland-u21.html +++ b/public/portfolio-deutschland-u21.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-fc-st-pauli.html b/public/portfolio-fc-st-pauli.html index 24ed07f..d8a7d1f 100644 --- a/public/portfolio-fc-st-pauli.html +++ b/public/portfolio-fc-st-pauli.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-frauen-bundesliga.html b/public/portfolio-frauen-bundesliga.html index 4df9761..a27b2e0 100644 --- a/public/portfolio-frauen-bundesliga.html +++ b/public/portfolio-frauen-bundesliga.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-hamburger-sv.html b/public/portfolio-hamburger-sv.html index c9ffff8..abf4792 100644 --- a/public/portfolio-hamburger-sv.html +++ b/public/portfolio-hamburger-sv.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-hannover-96.html b/public/portfolio-hannover-96.html index 9f6c83b..2be910c 100644 --- a/public/portfolio-hannover-96.html +++ b/public/portfolio-hannover-96.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-nfv-pokalfinale-2026.html b/public/portfolio-nfv-pokalfinale-2026.html index 7bcd3a9..65d65d1 100644 --- a/public/portfolio-nfv-pokalfinale-2026.html +++ b/public/portfolio-nfv-pokalfinale-2026.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-omr-yes-wecancer.html b/public/portfolio-omr-yes-wecancer.html index dc13b04..93e19c6 100644 --- a/public/portfolio-omr-yes-wecancer.html +++ b/public/portfolio-omr-yes-wecancer.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-rhine-ruhr-3x3.html b/public/portfolio-rhine-ruhr-3x3.html index d57fc4e..e1c5959 100644 --- a/public/portfolio-rhine-ruhr-3x3.html +++ b/public/portfolio-rhine-ruhr-3x3.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-rhine-ruhr-basketball.html b/public/portfolio-rhine-ruhr-basketball.html index 7bf4d97..9ebafa7 100644 --- a/public/portfolio-rhine-ruhr-basketball.html +++ b/public/portfolio-rhine-ruhr-basketball.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-rhine-ruhr-beachvolleyball.html b/public/portfolio-rhine-ruhr-beachvolleyball.html index ae7deeb..98067c3 100644 --- a/public/portfolio-rhine-ruhr-beachvolleyball.html +++ b/public/portfolio-rhine-ruhr-beachvolleyball.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-rhine-ruhr-sport.html b/public/portfolio-rhine-ruhr-sport.html index 8e25805..f31c0e5 100644 --- a/public/portfolio-rhine-ruhr-sport.html +++ b/public/portfolio-rhine-ruhr-sport.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-sv-meppen.html b/public/portfolio-sv-meppen.html index 26d6b41..de66d65 100644 --- a/public/portfolio-sv-meppen.html +++ b/public/portfolio-sv-meppen.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-svg-lueneburg.html b/public/portfolio-svg-lueneburg.html index d3b58ca..7333ae9 100644 --- a/public/portfolio-svg-lueneburg.html +++ b/public/portfolio-svg-lueneburg.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio-yes-con-2026.html b/public/portfolio-yes-con-2026.html index 93ed231..cb26034 100644 --- a/public/portfolio-yes-con-2026.html +++ b/public/portfolio-yes-con-2026.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -
diff --git a/public/portfolio.html b/public/portfolio.html index d9c1799..01a7dde 100644 --- a/public/portfolio.html +++ b/public/portfolio.html @@ -18,12 +18,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -78,10 +78,6 @@ - - -
diff --git a/public/saison-rueckblick.html b/public/saison-rueckblick.html index e592a1a..a30acd0 100644 --- a/public/saison-rueckblick.html +++ b/public/saison-rueckblick.html @@ -18,12 +18,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -79,10 +79,6 @@ - - -
diff --git a/public/sportfotografie.html b/public/sportfotografie.html index 1923544..fb3b9d2 100644 --- a/public/sportfotografie.html +++ b/public/sportfotografie.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -79,10 +79,6 @@ - - -
diff --git a/public/über-mich.html b/public/über-mich.html index e8c5385..a1afb44 100644 --- a/public/über-mich.html +++ b/public/über-mich.html @@ -17,12 +17,12 @@ 'wait_for_update': 500 }); - - + })(window,document,'script','dataLayer','GTM-T6CVBLPR');}; @@ -77,10 +77,6 @@ - - -