From 1d9fdf2de3ce0be060841e7e2977b19dd1388cad 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..4941593 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: "granted", + ad_user_data: "denied", + ad_personalization: "denied", + }, + ]); `; }