Replies: 1 comment
-
No, the only way to disable a script is by adding an invalid javascript mime type, such as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm implementing CookieConsent 3.0.1. and use the following tag-manager code.
<script defer> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXXX'); </script>I have not yet added following attributes (according to https://cookieconsent.orestbida.com/advanced/manage-scripts.html):
type="text/plain"
data-category="analytics">
The following requests are fired:
The following cookies are set:
After accepting cookies for statistics, some further request are fired:
Only now after accepting cookies for statistics the cookies for Google Analytics are set:
Does the script blocks www.googletagmanager.com/gtm.js?i... although the category is not specified? A script without any data-category should not be blocked right?
Beta Was this translation helpful? Give feedback.
All reactions