PaulieScanlon / gatsby-theme-gatstats

A Gatsby theme and dashboard for your tech blog... or a dashblog if you prefer 🤷‍♂️
https://gatsby-theme-gatstats.netlify.com/
36 stars 3 forks source link

More metrics in dashboard #22

Open maxscience opened 4 years ago

maxscience commented 4 years ago

Would be nice to add some more metrics/viz like:

PaulieScanlon commented 4 years ago

Hey @maxscience this sounds like a good idea. I have thought about this but counting post views or votes/likes would require some kind of back end service. What would you suggest for a lightweight service to handle this kind of thing?

maxscience commented 4 years ago

Sure, you could use

PaulieScanlon commented 4 years ago

@maxscience to be honest, it would probably be good to integrate google analytics anyway. I'll add it to the list and investigate

perhaps in gatsby-config i could add an optional googleAnalyticsId to the config which can be used to ping off page views etc.

With regard to pulling the data back into the Dashboard i guess i'd need to look at making api calls on page load so the data stays up to date. Not something i've investigated in Gatsby before.

maxscience commented 4 years ago

https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics