kayak-adv
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] right code for google analyticsadding your code doesn’t really work
i have Cookie is NOT accepted! even when i press okthe code is in the footer
</body> <?php if( function_exists( 'cn_cookies_accepted' ) && cn_cookies_accepted() ) { ?> <?php echo 'Cookie accepted!'; ?> <?php } else { ?> <?php echo 'Cookie is NOT accepted!'; ?> <?php } ?> </html>Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] right code for google analyticsthe problem is not solved
I am using ghostery to check the cookies loadednow my code is this, as suggested by leclisse:
<?php if( function_exists( 'cn_cookies_accepted' ) && cn_cookies_accepted() ): ?> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-xxxxx-1', 'auto'); ga('set', 'anonymizeIp', true); ga('send', 'pageview'); </script> <?php endif; ?>my website: http://www.kayak-adv.com
thank you
Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] right code for google analyticsis in the footer.php. should be in the function.php?
Viewing 3 replies - 1 through 3 (of 3 total)