• Resolved fredsjo

    (@fredsjo)


    Hi
    I have tried many apps for getting down my load time, and Autoptimize is the first that does the job for me without any bugs. I thought…. :I

    When I tested Google Analytics I see that I can’t see any of my customers. Its not recording anything. So I have tried to add this to the JS Excludes: js/ganalytics.js, analytic.js

    What can I do?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I had a look at the HTML source code and the analytics JS is properly excluded. I do however see a “jQuery is not defined” error on the browser console and I guess that is blocking execution of other inline JavaScript, so try (re-)adding js/jquery/jquery.js to the comma-separated JS optimization exclusion list maybe?

    hope this helps,
    frank

    Thread Starter fredsjo

    (@fredsjo)

    Thank you so much for the quick response.

    I added js/jquery/jquery.js again, and yeah. That fixed it. But the the mobile speed drops 9p at Pagespeed. That was the reason I removed js/jquery/jquery.js from excluded.

    Is there any workaround?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Is there any workaround?

    yeah; removing/ replacing all plugins that require jQuery to be available early 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Analytics stops working when Optimize JavaScript Code’ is closed to new replies.