Hello @aecnews,
Please share a link to your site so I can see the issue in action.
Most likely, you are using some kind of aggressive caching plugin that is serving an outdated version of the tracking script from our plugin. You will need to clear your cache for this other plugin (WP Rocket / Autoptimize / Something else…). But it is impossible for me to tell without taking a look at your site, since the issue is specific to your site and not affecting everyone.
Hi,
I wouldn’t call LSC and Cloudflare “aggressive caching”.
photo-journ.com
aseannewstoday.com
Thanks,
John
Hi John,
Your site is not serving the JavaScript file from Koko Analytics directly but instead using a generated file from the /wp-content/litespeed directory. The issue is that the file that it’s serving no longer matches the current version of our tracking script.
If you somehow instruct Litespeed to rebuild this generated file then things should start working again. This functionality is usually called something like “clear cache”.
I hope that helps. If not, let us know please.
Best,
Danny
Thanks Danny,
The database for each site is optimised twice a day, while the LSC cache is also cleared twice a day. Additionally, all caches for all plugins on each site were cleared several times over the weekend prior to submitting a ticket.
The only thing that hasn’t been cleaned is the Cloudflare cache.
Best
John
Hi John,
Are you sure? Because this is the file it serves for Koko Analytics:
https://photo-journ.com/wp-content/litespeed/js/5852a8c4650d618c721e070e9b078d0d.js?ver=78d0d
But this is the file (contents) it should serve:
https://photo-journ.com/wp-content/plugins/koko-analytics/assets/dist/js/script.js?ver=1.8.2
It’s definitely an older version. The stat collection is failing right now because it is generating an invalid HTTP request to the PHP endpoint, which expects slightly different data.
If you could exclude the file from Litespeed somehow then that would fix/prevent the issue from ever happening again.
Hi Danny,
Absolutely. Every day twice a day after our RSS feed pages publish and are duplicated for their next publishing time.
Because I was working an issue with Buffer the cache for all web apps and plugins was also flushed a couple of times. I have done it again prior to reverting.
I’ll go and annoy LSC and see if they can offer any advice.
Thank you,
John
Thanks @aecnews. It sounds like LSC is having a bit of an issue then, since their file is definitely serving an older version of our script. Hopefully they can offer some guidance and/or a fix!
Alternatively, it may be possible to exclude the Koko Analytics script from LSC somehow? The file to exclude is:
/wp-content/plugins/koko-analytics/assets/dist/js/script.js
Hi Danny,
Thanks for that. I applied your update and everything is working fine. Coincidentally LSC released an update the same day.
Thank you,
john