I need help with Google Analytics and showing posts on the homepage

I wanted to show the most popular posts across my network on a page. I found this ( https://artiss.blog/2011/07/using-google-analytics-data-to-show-popular-posts/ ) article where the Google Analytics plugin has been used to accomplish the job. I just wanted to check if that'd be possible in any way with the Google Analytics plugin from WPMU DEV.

One more request, the homepage in my site shows the latest posts using a custom plugin. Now, I want to show the excerpt of the posts under the titles but I just cannot make it work. I've tried using the_excerpt() and post_excerpt() but with them, the page doesn't load. The plugin's PHP files are attached in the chat transcript.

Any help is gladly appreciated.