Display page views based on Google Analytics

Hello.

Is there any way to display page views based on Google Analytics on a Jekyll site? We’ve been using jekyll-ga plugin, but it hasn’t been updated in a very long time. So updating google-api-client raises a lot of errors.

It would be great to get page views from Google Analytics in real time (and not only at the time of build). But for now we are looking for any solution which can replace jekyll-ga plugin.