I was trying to integrate cookieyes GDPR solution to a WP website. Below is the code for GTM and coookieyes that are added in the website. But the cookies
( _ga , _gid and gat_gtag_UA_xxxxxxxxxxx_1)
are getting set even if the accept button is not clicked.
<?php wp_head(); ?>
</head>
<!-- Start cookieyes banner -->
<script id="cookieyes" type="text/javascript" src="https://app.cookieyes.com/client_data/714e8fa9e198d23xxxxxxxxxx.js"></script>
<!-- End cookieyes banner -->
<!-- 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');
</script>