Cookie Banner Appears After Every Refresh
-
Hi There,
We Have Recently been experiencing the Complianz Cookie Banner appearing on every page refresh even after accepting cookies. I can confirm that my browsers are having the issues despite having the cookies for Complianz accepted and cahced.
The problem seems to disappear for a short amount of time if the users clear their website cookies but the issue begins again shortly if they come back on another session.
This is true for Firefox and Chromium-based browsers.
Thanks,
David BurnsThe page I need help with: [log in to see the link]
-
Hi David,
I have visited your site using several devices and browsers and did not manage to reproduce the issue yet.
Could you please make sure that you are not using any cookieblockers/adblockers or browser privacy settings that could cause this issue?
Kind regards,
LeonHi Leon Thanks for the quick response. I have all privacy tracking disabled on my website as well as my browser for our website and the issue persist.
We also use a staging website created with WP staging and complianz is active on both.
How much time does it take for the issue to come back? Like Leon I can’t see any issues at the moment when checking in Chrome. What steps do I need to do to reproduce the issue?
Hi Rogier
The issue will happen if you go to the home page and click home or our logo repeatedly
I just tried this, I didn’t encounter any issues. Are you sure it’s not caching? Do you experience the same issue when in incognito mode?
When I clear my cache the issue seems to resolve itself for a while but then returns, for instance, the issue is still happening on our staging site, and on a chrome browser where I haven’t refreshed the cache
Hi @davidburns2021,
I see the website is on a subfolder /wp/. Has this been changed recently?
As we can’t reproduce this issue, your current cookies might have been set on the root domain, not on the subfolder. Which might explain it.
regards Aert
Apparently the issue isn’t on the homepage: we discovered that the issue seems to be located on one or more subpages, for example this one:
/company/about-linx/When you look in the console, you see there’s a jquery error, coming from this file:
/wp/wp-content/uploads/custom-css-js/16919.jsThis error is probably preventing the consent cookie from being set.
It seems to be a custom javascript/css plugin.Can you try to remove your custom javascript, then try again?
@davidburns2021 Additionally: your site seems to be located in the /wp directory. As the plugin uses your site_url as basis for the cookie path, the cookies get placed in the /wp path. But on your subpages this /wp path is not used, so the cookies are not visible for these subpages.
As best practice, I would recommend to set your homepage without the /wp.
If this is for some reason not possible, you can use a filter to force the cookie path to be empty:
function my_cookie_path($path) { return ''; } add_filter( 'cmplz_cookie_path', 'my_cookie_path');You can add this as a mu-plugin:
https://complianz.io/adding-filters-with-mu-plugins-quick-easy/
Let me know if this helps!
Hi @davidburns2021,
Did the above suggestions resolve your Cookie Banner issue?
Please let us know if you need further assistance or if we can mark this thread as resolved.
Kind regards,
JarnoHello,
I am now having this issue as well. If you go to incognito mode, the issue disappears, and it is also not present on mobile. Basically, the caching doesn’t seem to register that it has been accepted. Our website is rocketloop.de/enThank you,
AllieAs I found there is an issue with the cookie key “complianz_policy_id”. After today’s update, I had two with values 12 and 13. After removing entry with value 12 it works as it should. With both entries “complianz_consent_status”, “cmplz_stats”, “cmplz_marketing” are not persistent.
As I saw also there was a difference for both entries in PATH. complianz_policy_id with value 12 had a path /pl (polish locale) and the second one with value 13 had a path /
-
This reply was modified 5 years, 2 months ago by
smecnarowski.
-
This reply was modified 5 years, 2 months ago by
smecnarowski.
What helped me. Pay attention to path/
jQuery(document).ready(function($){ var ca = document.cookie.split(';'); if (ca.indexOf(' complianz_policy_id=12') !== -1 || ca.indexOf('complianz_policy_id=12') !== -1 ) { document.cookie = 'complianz_policy_id=; Path=/pl/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } });Hi @alliehutns,
I can not reproduce this whilst visiting your website in both Incognito and Normal modes.
This should be solved by clearing the cache of your browser. In Google Chrome, the cache can be cleared from Settings > “Privacy and Security” Tab > Check the boxes next to “Cookies and other site data” and “Cached images and files” > Clear data.
Hope this helps,
JarnoHi @smecnarowski,
The value in the Policy ID Cookie is compared to the current version of the Cookie Policy. If the policy was updated because new changes to the Wizard have been made, the ID will be raised by 1, and users will be asked for consent again.
The exact reason as to why there were 2 cookies in your browser is unclear, and I cannot seem to reproduce this behavior either. I imagine that a possible cause for this could be that WordPress was previously installed to a different subdomain/folder than the current domain.
Was your problem solved after clearing your browser cache?
Hope this clarifies,
Jarno -
This reply was modified 5 years, 2 months ago by
The topic ‘Cookie Banner Appears After Every Refresh’ is closed to new replies.