Display page views based on Google Analytics in Jekyll
Asked Answered
P

0

6

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, for example, google-api-client (to use it with the newest version of Ruby) 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.

I would appreciate any feedback.

Pragmaticism answered 30/5, 2018 at 20:12 Comment(5)
#19484509 might help. You'll have to use javascript to fetch the live data after page load.Scintillant
@Scintillant Thank you very much! I will check it out.Pragmaticism
@Pragmaticism I am facing the same problem, did you find any solution?Lanta
@JaiSinghal Unfortunately, no. We are looking into pusher.com, but haven't tried it yet.Pragmaticism
Please, if you're still interested in this, you can check my jekyll-ga-v2 version that implements everything in a more simple way: github.com/uta-org/jekyll-ga-v2Phylissphyll

© 2022 - 2024 — McMap. All rights reserved.