• Is it impossible to use wp super cache if you want to be GDPR compliant and have an explicit consent (opt-in or opt-out) option to load cookies, for example google analytics?
    I am currently using dFactory’s Cookie Notice plugin, which works perfectly, until wp super cache is turned on. I can understand that the cached pages are either cached with the analytics code or not, and so the visitor is then being served a cached page regardless of their cookie preference.
    I have searched for a solution, but the code, or writing super cache plugins to get this to work are beyond my understanding.
    For now wp super cache is disabled as I can’t see a way around it. Anyone found a solution?

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you install this country caching extension plugin (even if you are not using geolocation) it should fix the issue with Cookie Notice. You may need to clear cache after installing for it to take effect.

    I am having a similar issue.

    All tracking code is included via dFactory’s Cookie Notice plugin assuming the user accepts the terms.

    Once WP Super Cache is installed, some pages show/dont’t show the tracking code.

    I tested this by:
    1. Deleting cache via super cache
    2. Clearing browser cache in Google Chrome.

    Once the user accepts, the plugin should inject the tracking code and super cache should display it!

    Is there a setting in WPSC I’m missing?
    Did installing country caching extension plugin work for anyone else?

    Thanks in advance.

    Whatever cookie banner plugin you use should use Javascript to decide if cookie generating Javascript should be executed.

    On Automattic sites that’s what we’ve done, so it doesn’t matter if the site is cached or not. It’s not PHP that sets the cookie, it’s Javascript.

    There isn’t anything WP Super Cache can do here. You should probably use the support forum of the cookie banner plugin.

    Hey Donncha,

    Sound, thank you for the clarification.
    Big fan of WP Super Cache, thank you for your contribution ??

    Since there was another thread about cookie banners I decided to write a blog post about it. There’s actually a second option, use PHP, but it’s not easy unfortunately.

    https://odd.blog/2018/07/20/wp-super-cache-and-cookie-banners/

    Thank you for taking the time to write the post.

    I’m pretty sure dFactory’s cookie plugin is using php to check for the cookie, so that’s the problem as you have outlined.

    I will attempt to modify WP Super Cache so it knows about the cookie, can this be done in the WP Super Cache settings via WP Admin?

    • This reply was modified 6 years, 4 months ago by webniche.

    You’ll need to write code. Unfortunately it’s not simple.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cookie notice – load or not google analytics’ is closed to new replies.