Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesnt block Google Adsense #62

Open
jalmansa-hib opened this issue Jun 14, 2021 · 5 comments
Open

Doesnt block Google Adsense #62

jalmansa-hib opened this issue Jun 14, 2021 · 5 comments

Comments

@jalmansa-hib
Copy link

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.

@tdrzewosz
Copy link

some issue. could you fix it please. thanks

@tdrzewosz
Copy link

u have to change the type to: script-tag

@jalmansa-hib
Copy link
Author

finally we have blocked the gtm script with script-tag type.

@mado-opus
Copy link

mado-opus commented Jul 6, 2022

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?

@mado-opus
Copy link

I created a new issue: #94.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants