Yoast_Google_WPCache not found

Fatal error: Class ‘Yoast_Google_WPCache’ not found in /home/username/public_html/wp-content/plugins/google-analytics-for-wordpress/vendor/yoast/api-libs/google/Google_Client.php on line 90

Chances are you just need to uninstall and reinstall the plugin. Don’t know what makes it fail, but I’ve seen this a few times and reinstalling the wordpress plugin itself seems to work.