elleracompany / craft-cookie-consent

GDPR-Compliant cookie consent banner for Craft CMS
Other
6 stars 5 forks source link

Continuous modal appearing on each page request for some users #99

Closed nicklanehq closed 1 year ago

nicklanehq commented 1 year ago

Hi,

We're running into an sporadic issue where the modal window is re-appearing with each page reload, regardless of if the user has clicked OK and accepted the consent (though it does remove the modal while on the page before navigating to their next page). This behavior seems to be hit or miss, as I am unable to replicate the issue, but it's consistently popping up on the client's PCs and mobile devices. A colleague of mine was able to replicate it when using the DuckDuckGo browser on their iPad, but Safari was without issue.

The implementation in question is very basic, with your provided hook added just after the opening BODY tag while using the plugins provided CSS, JS, and default template.

nicklanehq commented 1 year ago

Hi, just following up on this. I believe we can confirm the issue may be related to how cookie permissions are checked against. It would seem any browser that has disabled cookies tracking (such as DDK or Brave) is when we're seeing this issue. The modal simply appears after every page load, regardless of if the site visitor clicks "ok".

nicklanehq commented 1 year ago

This was corrected on our end. It ended up being a server issue where proper 301s for www vs non-www were not allowing cookies to be set. Re-applying the proper forwarding in apache resolved it.