• Resolved aruberto

    (@aruberto)


    The [user_consent_state] doesn’t display the latest consent state when users change/manage their cookie settings. It seems to just display the first settings they chose, it doesn’t update when they change the settings. I’ve tried refreshing the screen.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @aruberto,

    Greetings from Webtoffee!

    When caching is done on the site this may happen. You can use the code given here to make [user_consent_state] shortcode compatible with caching.

    Thread Starter aruberto

    (@aruberto)

    Hi @webtoffee – Happy New Year.

    Thanks for the code, unfortunately, It’s not clear exactly where I find the function.php file/where the code should be inserted. Can you advise?

    Plugin Author WebToffee

    (@webtoffee)

    Hi @aruberto,

    In your WordPress dashboard kindly go to Appearance > Theme editor. Towards the right-side panel, you will find Theme functions (functions.php) as in this screenshot. Copy the code to the bottom and click update file. That’s all.

    Thread Starter aruberto

    (@aruberto)

    Thank you. I found the file and made the update but got the following error “Your PHP code changes were rolled back due to an error on line 2336 of file wp-content/themes/panoramic/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘<‘, expecting end of file”

    2336 is the first line where I inserted the code you provided “<?php”.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @aruberto ,

    Kindly avoid adding “<?php” in the beginning of the code. Since this will already be there in the functions.php file, again adding will lead to syntax errors.

    Thread Starter aruberto

    (@aruberto)

    Great thanks.

    Thread Starter aruberto

    (@aruberto)

    It didn’t work, while it accepted the code it’s the same problem as before – the user consent state doesn’t reflect the new settings.

    Thread Starter aruberto

    (@aruberto)

    Just checking, when it says “Consent accepted.” is that only tracking the acceptance of necessary cookies for the site such as the GDPR cookie or all the cookies which are not necessary? If it’s only the necessary cookies, that can’t be changed with the current plugin.

    • This reply was modified 4 years, 5 months ago by aruberto.
    Plugin Author WebToffee

    (@webtoffee)

    Hi @aruberto,

    You have “Accept all” button enabled in the plugin whereas there is no reject button. Using the shortcode [cookie_reject] in GDPR cookie settings > settings > customize cookie bar > cookie message a reject button can be added to the banner. After setting the reject button please try to give a reject consent and then check for any change in consent status.
    Necessary cookies are always enabled irrespective of the consent.The consent status doesn’t depend on only necessary cookies.

    Thread Starter aruberto

    (@aruberto)

    If that’s the case then,irrespective of if a reject button exists or not, if they disable some of the cookies in the cookie settings but not all would the user consent state still be “consent accepted” or something else?

    Thread Starter aruberto

    (@aruberto)

    I’ve added the code for the reject button as follows but it doesn’t show the reject button on the cookie bar. I appreciate the help on this.
    ADDED NOTE: Appears to be only on the home page and the cookie policy page that the reject button doesn’t appear, its on the other pages. I’ve tried clearing browser history but this hasn’t made any difference.

    <div class="cli-bar-container cli-style-v2"><div class="cli-bar-message">We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent. </br>[cookie_link]
    </div><div class="cli-bar-btn_container">[cookie_settings margin="0px 5px 0px 0px"] [cookie_reject] [cookie_accept_all]</div></div>
    Plugin Author WebToffee

    (@webtoffee)

    Hi @aruberto,

    We have checked your site and found that the “Reject all” button is now active and the user consent status is recorded correctly. The consent state shortcode displays the status based on the button click given by the user, which is either Accept or Reject. Please see this screen recording for your reference.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[user_consent_state] not working’ is closed to new replies.