From 9ce183595a803084f0fe6bee7521144a6b53947b Mon Sep 17 00:00:00 2001 From: Darius Cepulis Date: Mon, 9 Mar 2026 19:18:45 -0500 Subject: [PATCH] fix(site): use Consent Mode v2 for cookieless Google Analytics (#795) Co-authored-by: Claude Opus 4.6 --- site/src/layouts/Base.astro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astro index 6c5ec89b..ac2561c6 100644 --- a/site/src/layouts/Base.astro +++ b/site/src/layouts/Base.astro @@ -56,8 +56,14 @@ const fullTitle = function gtag() { dataLayer.push(arguments); } + gtag("consent", "default", { + analytics_storage: "denied", + ad_storage: "denied", + ad_user_data: "denied", + ad_personalization: "denied", + }); gtag("js", new Date()); - gtag("config", "G-WTF4CZJSGP", { client_storage: "none" }); + gtag("config", "G-WTF4CZJSGP"); {/* Important stuff */}