Support » Plugin: SEOPress » GDPR, analytics & caching

  • Resolved Milan

    (@milantopalov)


    Caching plugins (e.g. WP Super Cache) in general conflict with GDPR settings in SEOPress.

    Since entire HTML page is cached, analytics tracking script will run (or not) if it has been included in the latest cache (or not) – regardless of wether user accepted the terms (or not).

    Thus we get problematic situations such as these:

    • user did not accept the terms, but was served the page with analytics tracking code (because it was cached as such)
    • user did accept the terms, but was served the page with no analytics tracking code (because it was cached as such)

    To go around this problem, SEOPress plugin should load/run tracking codes using javascript, as opposed to including it server side (as it does now).

    • This topic was modified 4 months, 3 weeks ago by Milan.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    you have to exclude this JS file in your settings:
    /wp-content/plugins/wp-seopress/assets/js/seopress-cookies-ajax.js
    and this cookie seopress-user-consent-accept

    Tested with WP-Rocket, should work with other caching plugin.

    Tobo

    (@infonetzlichtcom)

    Hi Benjamin, hi Milan,

    I have the exact same problem and cannot get it running with WP Rocket OR Litespeed Cache.

    What do you mean with exclude “seopress-user-consent-accept” cookie? When I exclude the cookie from cache, the cache is not longer working when the cookie is set. Page isn’t cached because the cookie is preventing that.

    /wp-content/plugins/wp-seopress/assets/js/seopress-cookies-ajax.js exclude that file? From optimization? Minify?

    Do you found a solution Milan? Any other advice?

    Would be awesome!

    Tobo

    (@infonetzlichtcom)

    Dunno what was wrong. It is working out of the box without excluding anything with litespeed.

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