W3 Total Cache + Cookie Notice + Google Analytics
-
Hello,
I would like to use Google Analytics in combination with the plugin “Cookie Notice”. Whenever a user accepts the cookie, the Google Analytics code should be active, if the user does not accept, the Google Analytics code should (of course) not be active. Cookie Notice allows to just use a code when a user accepts the cookie, BUT in combination with W3 Total Cache and cached pages it does (of course) not work properly. Because whenever I purge caches and a user does accept the cookie, the Google Analytics code gets active. But whenever an other user visits this specific page after that, he gets asked about the cookie again (which is right), BUT because the page is already cached, the Google Analytics code is already active in the source code and stays there until I purge the page again.
So how could I use W3 Total Cache + Cookie Notice + Google Analytics all together? Because it is unfortunately necessary because of DSGVO.
I was not able to find a solution.
- The topic ‘W3 Total Cache + Cookie Notice + Google Analytics’ is closed to new replies.