LiteSpeed Cache Breaks Clicky Analytics Tracking
-
I recently switched from W3 Total Cache to LiteSpeed Cache in order to utilize the benefit of my hosting using Litespeed Web Server.
However it broke my analytics completely.
I’m using Clicky Analytics and it does not record any visits when the plugin is on.
I turned the plugin off for now until the issue is resolved, but why is this happening?
Clicky is a 3rd party Javascript embedded on the site, I thought it can’t be affected by caching on my end.
Here’s the code embedded on the site to track visitors:
<script src="//static.getclicky.com/js" type="text/javascript"></script> <script type="text/javascript">try{ clicky.init(100811958); }catch(e){}</script> <noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/100818217ns.gif" /></p></noscript>
Here’s the response header for static.getclicky.com when the plugin was activated:
HTTP/1.1 200 OK Date: Wed, 25 Oct 2017 23:57:55 GMT Content-Type: text/javascript; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding P3P: CP='NOI DSP COR CUR OUR NID NOR' X-Proxy-Cache: HIT Content-Encoding: gzip CF-Cache-Status: HIT Expires: Mon, 30 Oct 2017 23:57:55 GMT Cache-Control: public, max-age=432000 Server: cloudflare-nginx CF-RAY: 3b391ef89353590f-DFW
and here’s with the plugin deactivated:
HTTP/1.1 200 OK Date: Thu, 26 Oct 2017 13:00:55 GMT Content-Type: text/javascript; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding P3P: CP='NOI DSP COR CUR OUR NID NOR' X-Proxy-Cache: HIT Content-Encoding: gzip CF-Cache-Status: HIT Expires: Tue, 31 Oct 2017 13:00:55 GMT Cache-Control: public, max-age=432000 Server: cloudflare-nginx CF-RAY: 3b3d99ed04f3244a-IAD
As you can see they’re pretty much identical, so where is the problem?
- The topic ‘LiteSpeed Cache Breaks Clicky Analytics Tracking’ is closed to new replies.