• Resolved stefanoste

    (@stefanoste)


    Hi,

    On my site I’m experiencing an issue, the cookie consent banner keeps popping up about one time every three pages even when I press accept all cookies.
    If you open the site https://recensioni-migliori.com/
    and keep clicking on navigation links on the yellow bar, you will easily reproduce the issue

    thanks

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @stefanoste,

    Could you try clearing/purging the cache of WP Optimize, and checking if the issue persists afterwards? Also, please check whether it does work if you disable some features in WP Optimize (such as Javascript Minification/deferring).

    If the above didn’t solve the issue, can you try uploading the PHP file from the link below to the folder /wp-content/mu-plugins? This will force the Cookies set by Complianz to the root directory, which I expect should fix this.

    https://raw.githubusercontent.com/Really-Simple-Plugins/complianz-integrations/master/force-cookies-on-root.php

    Kind regards,
    Jarno

    Thread Starter stefanoste

    (@stefanoste)

    Hi Jarno,
    thank you to pointing me in the right direction, I have now added this configuration to WP OPtimize and it seems to work:

    Defer JavaScript
    Defer selected JavaScript files

    /complianz-gdpr/

    regards

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @stefanoste,

    I don’t think that is the solution yet. Because in the current configuration where you defer Complianz with WP-Optimize, the banner isn’t appearing at all because of a “complianz is not defined” error in the console.

    Can you disable WP Optimize temporarily, and check whether the problem (banner reappearing) remains present?

    It it still happens, try uploading the PHP script I mentioned in my first post. I assume that it will do the trick in your case.

    Kind regards,
    Jarno

    Thread Starter stefanoste

    (@stefanoste)

    Hi Jarno,
    I have now completely disabled WPOptimize and the issue with the banner is fixed (it appears once).
    I’m now looking for a way to exclude complianz code from being optimized

    thank you!

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @stefanoste,

    WP Optimize > Minify > JavaScript > In the text field under “Exclude JavaScript from processing” add:

    /wp-content/plugins/complianz-gdpr/

    Hope it helps!
    Kind regards,
    Jarno

    Thread Starter stefanoste

    (@stefanoste)

    Jarno, the solution you posted works nicely
    thank you for the support!

    Plugin Contributor jarnovos

    (@jarnovos)

    @stefanoste

    No problem at all, glad to hear that worked for you.

    I’ll mark the thread as resolved, but feel free to create a new one if you have any further questions about the plugin.

    Kind regards,
    Jarno

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Consent banner keeps popping up’ is closed to new replies.