From 4b0afb6c28a8dcb7512d2cb907f98b6ee5a617fe Mon Sep 17 00:00:00 2001 From: AngeloChecked Date: Thu, 10 Oct 2024 20:49:35 +0200 Subject: [PATCH] consent mode --- blog/components/Base.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/blog/components/Base.ts b/blog/components/Base.ts index b45512c..92ff780 100644 --- a/blog/components/Base.ts +++ b/blog/components/Base.ts @@ -91,6 +91,16 @@ function googleTagManagerScript() { window.dataLayer = window.dataLayer || []; window.dataLayer.push(["js", new Date()]); window.dataLayer.push(["config", "G-LE27PDG685"]); + window.dataLayer.push([ + "consent", + "default", + { + ad_storage: "denied", + analytics_storage: "denied", + //ad_user_data: "denied", + // ad_personalization: "denied", + }, + ]); `; }