Stats are strange | WordPress.org

[ad_1]

Hi @johannesdb,

This issue is most likely due to caching. There is an error in the console: “Uncaught ReferenceError: wp is not defined”. It seems to me that the issue might be caused by a caching plugin combining JS files. To resolve this issue, please follow the steps below:

  1. Identify the caching plugin on your site and access its settings.
  2. Locate the option to exclude specific JS files from being combined or minified.
  3. Add these lines to the exclude list:
  • /wp-includes/js/dist/api-fetch.min.js(.)
  • /wp-content/plugins/burst-statistics/assets/js/build/(.)
  • /wp-content/plugins/burst-statistics/helpers/timeme/(.*)
  • Save changes, clear the cache, and check your site for the error.
  • If the issue persists, please let us know, and we’ll be happy to help further.

    Kind regards,
    Hessel

Thanks! That seems to do the trick. For some reason Litespeed cache did indeed minify js files.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer