makeyourhome Posted October 7 Posted October 7 306 / 5.000 Hi, I have a problem that I can't solve. I connected my website to Google Analytics 4, I activated the cookie banner and injected the code indicated by google <script> // Define dataLayer and the gtag function. window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} // Set default consent for specific regions according to your requirements gtag('consent', 'default', { 'ad_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'analytics_storage': 'denied', 'regions':[<list of ISO 3166-2 region codes>] }); // Set default consent for all other regions according to your requirements gtag('consent', 'default', { 'ad_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'analytics_storage': 'denied' }); </script> <!--Banner script here!--> but despite this it results in undetected consent indicators. Can anyone tell me where the error is. I attach a link where you can see the problem. Thanks https://www.awesomescreenshot.com/video/31464252?key=7393705f5d5be9c1c4cfba0defbb07e0
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment