• Resolved mfghost

    (@mfghost)


    I ran my website through Page Speed Insights and it’s showing the error

    ReferenceError: SlimStatParams is not defined at https://cdn.jsdelivr.net/wp/wp-slimstat/tags/5.1.5/wp-slimstat.min.js:1:7974

    Is there a fix for this? It says “browsers errors were logged to the console”. I’m not exactly sure what this means.

    Can anyone help me out?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hello,

    I noticed that wp_localize_script isn’t outputting the SlimStatParams in your page source with CDATA. This might be due to a caching plugin or perhaps you’ve disabled this wp_enqueue_script via another plugin—I’m not entirely sure.

    However, I would suggest checking relevant plugins or reviewing the PHP error logs to further investigate this issue.

    Alternatively, you could consider setting the Tracking Mode to ‘Server‘ in the settings page.

    Best

    Thread Starter mfghost

    (@mfghost)

    @mostafas1990 is there any difference in the admin if I switch tracking mode to “server”? And how would I enable the wp_enqueue_script? Is there a link to how to do it? I’m using LightSpeed Cache.

    And thanks.

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Could you try disabling LightSpeed and see if the issue persists?

    If that resolves the problem, you might need to whitelist the SlimStat assets to prevent them from being cached

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting ReferenceError from SlimStats’ is closed to new replies.