From 86a5e9c0dafd61ca02383a84281b7e4efeb65db7 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 24 Mar 2024 12:11:43 +0800 Subject: [PATCH] add google analytics setting --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d9ab0919..3c1c9f94 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,14 @@ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - + // Set default consent to 'denied' as a placeholder + // Determine actual values based on your own requirements + gtag('consent', 'default', { + 'ad_storage': 'denied', + 'ad_user_data': 'denied', + 'ad_personalization': 'denied', + 'analytics_storage': 'denied' + }); gtag('config', 'G-SSBKVF3GMX');