ERR_BLOCKED_BY_CLIENT
-
Hi,
I’ve just activated Google Analytics on my site and I’m getting an error.WP 5.5 + WP Optimize (for page caching) + Autoptimize (Minification & JS management).
GDPR Cookie Compliance latest version.I’ve added the 3rd part script (head tab)
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-XXXXXXXXX-1’, { ‘anonymize_ip’: true });
</script>Starting from that, even if the user does not accept the 3rd party cookie (the banner is displayed), I have 3 console errors:
ERROR 1
GET https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXXXXXX-1 net::ERR_BLOCKED_BY_CLIENTERROR 2
Uncaught Error: remote script failed https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-1
at error (lity.js:1)
at i (lity.js:1)
at HTMLScriptElement.onerror (lity.js:1)ERROR 3
Uncaught Error: Uncaught Error: remote script failed https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXXXXXXX-1 – https://www.XXXXXXXXXXXXXXXXXX.com/wp-content/plugins/gdpr-cookie-compliance/dist/scripts/lity.js: 1
at Object.error (lity.js:1)
at y.win.onerror (lity.js:1)Any help on this?
It appears also that the Plugin is setting the google code even if the user has not yet accepted the cookie.Thanks
The topic ‘ERR_BLOCKED_BY_CLIENT’ is closed to new replies.