I’ve started getting the same error on multiple sites as well.
Thread Starter
aljuk
(@aljuk)
These errors are being generated in their hundreds and slowing my sites right down…
Oh so, not only me that having this issue, and this issue raised more than a week ago. hm.
get_plugin_data()
is only available in the admin:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/includes/plugin.php#L38
The plugin calls it in Yoast_Tracking::tracking()
function:
http://plugins.trac.wordpress.org/browser/google-analytics-for-wordpress/tags/4.3.2/inc/class-tracking.php#L86
The function is scheduled to run daily. When it runs on front-end, it causes the fatal error.
The workaround is to disable “Allow tracking of anonymous data” option in the plugin settings.
Thread Starter
aljuk
(@aljuk)
Thanks for the info Sergey!
Thanks for that Sergey, will fix this now.
So just to confirm, the “Allow tracking of anonymous data” setting can be enabled without any performance loss (slower page loading)? We like to contribute to your plugin by providing this data for you, but not at the cost of performance.
We have noticed that despite async the http://www.google-analytics.com/ga.js file takes up a lot of time in our page load waterfall. Is there a way around this?