• Resolved Smoker2

    (@smoker2)


    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?

    • This topic was modified 7 years, 1 month ago by Smoker2. Reason: Grammar mistake
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Cold Egg

    (@eric780217)

    Hi Smoker2,

    Usually response header will looks like this:
    https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:installation#testing

    This is mine response header with ClouFlare not CloudFront.

    cf-h2-pushed:</wordpress/min/bb538.css>,</wordpress/min/3ee91.js>,</wordpress/min/css_async.js>
    cf-ray:3b3e4fc1c93a2204-EWR
    content-encoding:gzip
    content-type:text/html; charset=UTF-8
    date:Thu, 26 Oct 2017 15:05:03 GMT
    server:cloudflare-nginx
    status:200
    vary:Accept-Encoding
    x-litespeed-cache:hit
    x-powered-by:PHP/5.6.31
    x-turbo-charged-by:LiteSpeed

    Could you try fix “LSCache not working” part first by following the wiki?
    If still not working, can you send a ticket to LiteSpeed?

    Thread Starter Smoker2

    (@smoker2)

    I went through the wiki, but there’s nothing about 3rd party tracking codes.
    The responses I posted are not for the page requested, but for the JS tracking code itself.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi Smoker2.

    Can you provide some additional details? Do you have any of the optimization features enabled? Can you share the URL so we can take a look? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘LiteSpeed Cache Breaks Clicky Analytics Tracking’ is closed to new replies.