Phani Kumar

Phani Kumar

  • NA
  • 162
  • 25.3k

Cookie Conset displaying after page refreshes

Aug 31 2020 3:04 AM
Hi,
 
I have implemented Cookiebot banner in my web application login page, after implementing I have observed that whenever login page is refreshed after accepting cookie policy, I am able to see the cookie banner again
 
Please find the code I have implemented to show cookie banner
 
<script id="CookieDeclaration" src="https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js" type="text/javascript" async></script>

<script type="text/plain" data-cookieconsent="statistics">
    (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-00000000-0', 'auto');
    ga('send', 'pageview');
</script>
 
Can anyone helpme to get rid of displaying banner after page refreshed once the cookie policy is accepted
 
Thanks i advance.
 
Regards
Phani Kumar

Answers (2)