Block Adsense Cookies #618
Oleyoytutambien
started this conversation in
General
Replies: 1 comment 1 reply
-
If you still want to try implementing it, this is how I would do it: <html>
<head>
<!-- head content-->
<!-- plugin css -->
</head>
<body>
<!-- body content -->
<!-- plugin script -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567890123456"
data-ad-slot="1234567890"
></ins>
<script
type="text/plain"
data-category="marketing"
data-service="Google Adsense"
>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script
type="text/plain"
data-category="marketing"
data-service="Google Adsense"
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234567890123456"
crossorigin="anonymous"
></script>
</body>
</html> The above code was adapted from the official snippet. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do i block Adsense cookies?. I 've tryed the same code than Analytics, but isn't working for Adsense.
I'm trying this:
But when i do this:
1.- Adsense ads are not showing, even if you accept everything, clean all cookies, reload several times...
2.- Even denied all the cookies, __gads and __gpi cookies are saved.
Please, any idea about how to fix it?.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions