Tagged: cookies
-
AuthorPosts
-
August 24, 2021 at 12:17 pm #1318114
Hallo,
we are currently using the Cookie Behaviour “Essential cookies are accepted on first page load, user must opt in”. Works fine so far, but when a user declines the cookies, the cookie Banner appears on every refresh from the site. This somewhat decrease the user experience on the side. The other cookie options save the selected option. Is this possible for this behaviour? If yes how.Best regards
August 26, 2021 at 5:06 am #1318367Hey Rose_Porta,
Could you post a link to where we can see the problem you are having please?
Best regards,
RikardAugust 26, 2021 at 10:53 am #1318425Link in the private description.
August 31, 2021 at 3:55 am #1319055Hi,
Thank you for the inquiry.
The theme only hides the notification for the current session, so when the user continue browsing and moved to a different page, the session will end, and so the message bar will display again.
We could set it so that the message bar is always hidden when the value of the aviaCookieConsent cookie is the same, but we might get unexpected results. If you want to continue, try to edit the enfold/js/avia-snippet-cookieconsent.js file, look for this code around line 111..
if( ! ( oldCookieContents || aviaCookieRefused ) || msgbar_changed ) { aviaCookieConsentBar.removeClass('cookiebar-hidden'); set_cookie_consent_aria_attr( 'show' ); }
.., and replace it with:
if( ! ( oldCookieContents ) || msgbar_changed ) { aviaCookieConsentBar.removeClass('cookiebar-hidden'); set_cookie_consent_aria_attr( 'show' ); }
You may have to toggle or temporarily disable the Enfold > Performance > File Compression settings after the modification.
Best regards,
IsmaelAugust 31, 2021 at 3:37 pm #1319172Thy. But that not a really clean solution.
I am still wondering why the behaviour from the option “Essential cookies are accepted on first page load, user must opt in” differs from the other ones? When I select any other option, the decline cookie is saved for the hole browser session. Not one site.- This reply was modified 3 years, 2 months ago by Rose_Porta.
September 3, 2021 at 3:35 am #1319563Hi,
But that not a really clean solution.
What do you mean? As we have said above, the option differs because it only maintains the cookie in the current session. This cookie prevents the message bar from popping up. The cookie is removed once you navigate to a different page or when the current session ends. The modification above should hide the cookie message bar as long as the oldCookieContents exists.
Best regards,
IsmaelSeptember 7, 2021 at 7:30 pm #1320018Hi Ismael,
what I mean by “not a clean solution” is that we need to check with every update if something changes in this js file.
But what I really don’t understand is why for example on the other option “User must accept and must opt in, only essential cookies selected”, the cookie is saved for the hole session not one site. So the banner does not pop up again. And this cookie option is even stricter since only when you opt in you accept the essential cookies.
If I understand the other cookie behaviours right, this new option “Essential cookies are accepted on first page load, user must opt in” should also save the cookie for the pop-up for the hole session.Hope that helps to explain my point.
Best regards
September 9, 2021 at 4:37 am #1320176Hi,
Thank you for the info.
The message bar remains hidden when the Default Cookie Behavior is set to the third option because when the user dismiss the notification, the PHPSESSID remains unchanged. The last option does not mean that it is supposed to be more “strict” with how it handles the cookies. You might be confused with the wording “essential cookies selected” and “Essential cookies are accepted on page load”. “Selected” and “accepted” in both options actually mean the same thing. The last option was only added because some of the users requested it. Originally, there are only three options. You can find more info about why this was added in the documentation.
// https://kriesi.at/documentation/enfold/privacy-cookies/#default-cookie-and-services-option-settings -> 4th toggle
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.