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

Google AdSense _glc_au cookie not blocked #94

Closed
mado-opus opened this issue Jul 6, 2022 · 3 comments
Closed

Google AdSense _glc_au cookie not blocked #94

mado-opus opened this issue Jul 6, 2022 · 3 comments

Comments

@mado-opus
Copy link

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
Author

I had to add the script tag type="text/plain" :-).

@Scippy
Copy link

Scippy commented Oct 21, 2022

I had to add the script tag type="text/plain" :-).

Where you've added type="text/plain"?
I'm no able to delete any local browser cookie!

@mado-opus
Copy link
Author

It's a javascript tag that you can add above the script you're trying to block:
<script type="text/plain"> // script </script>

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

2 participants