Siteground Dynamic Cache
-
Hello.
I have the feeling that this plugin does not work perfectly in a certain casuistry. I understand that it may not be your problem but I ask if, from the plugin, there is a solution.
I have my website hosted on Siteground.
Siteground has a dynamic caching system that avoids the PHP request if you have the page cached on your system: https://www.siteground.com/kb/siteground-dynamic-caching-configuration/This does not seem to be affected if trackings, for example Google Analytics, are put in the GDPR Cookie Compliance section > Settings > Analytics cookies (head) (third party).
My problem is that I use the Hotjar script only in certain URLs as I asked here: https://ww.wp.xz.cn/support/topic/can-cookies-be-added-to-specific-pages/
It seems that the code in functions.php works “sometimes”.
I can’t get it to run every time and I imagine it has to do with this Dynamic Cache option that always serves “the first hit it has from the requested page and this first HIT, unfortunately, it does not have the cookies activated”.
I don’t know why, if I put the javascript code in the plugin section so that it is painted on all the pages “it does work”, but if I do it through functions.php it doesn’t.
I imagine that, through your plugin, there is some ajax or javascript type code that writes the code entered in the “analytics” section.
Can you help me do some research on this?
Thanks!
The topic ‘Siteground Dynamic Cache’ is closed to new replies.