Hi there,
Thanks for getting in touch. I’m sorry to hear about this error.
It looks like it may be a compatibility issue with the Autoptimize plugin. Can you check if you have this option enabled and disable it if so: https://d.pr/i/UCPr8i
alternatively you could add relevant string in the JS optimzation exclusion settings to ensure the specific piece inline JS is not deferred, maybe simply independent-analytics?
I did not have the “aggregate js” option enabled, but did have the “Also defer inline JS?” option enabled, so I disabled it. I also added “independent-analytics” to the exclusion list underneath it.
https://postimg.cc/wyXk4grK
I will let you know if any traffic from today shows up on the stats tomorrow.
-
This reply was modified 5 months, 2 weeks ago by
officezen.
Other sites with the same plugin is already collecting data for today. Since this site is still not collecting the traffic for today, the settings are still not working.
Disabled another HTML minifier plugin I had running and it seems to do the trick.
@officezen I’m glad to hear you found a solution. Thanks for letting me know!
Could you tell me the name of the HTML minifier plugin you were using? I will see if we can add a compatibility fix. The minification option in Autoptimize is already compatible with our plugin, so you can use that instead.