Doesnt block Google Adsense
Opened this issue · 5 comments
We are trying to block the google adsense cookie _gcl_au
:
adsense: { category: "marketing", type: "dynamic-script", search: "adsense", cookies: [ {name: "_gcl_au", domain: `.${window.location.hostname}`} ], language: {locale: {es: {name: "Google Adsense"}}} },
Other Google cookies as _ga
are blocked correctly.
some issue. could you fix it please. thanks
u have to change the type to: script-tag
finally we have blocked the gtm script with script-tag type.
Hi all,
Using adsense: { category: "<category name>", type: "script-tag", cookies: [ {name: "_gcl_au", domain: '<domain name>'} ], language: {locale: {en: {name: "Google Adsense"}}} },
as one of the services I still see the cookie _gcl_au
popping up when it is supposed to be blocked.
The following scripts are used to generate this cookie:
<script id="googleTagManager2" async src="https://www.googletagmanager.com/gtag/js?id=<ID>">
</script>
<script id="googleTagManager">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<ID>);
</script>
Does anyone might have an idea what I am doing wrong?