Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #1318367

    Hey Rose_Porta,

    Could you post a link to where we can see the problem you are having please?

    Best regards,
    Rikard

    #1318425

    Link in the private description.

    #1319055

    Hi,

    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,
    Ismael

    #1319172

    Thy. 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, 3 months ago by Rose_Porta.
    #1319563

    Hi,

    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,
    Ismael

    #1320018

    Hi 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

    #1320176

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.