cristianpb / analytics-google

Google analytics from cristianpb.github.io

Home Page:https://cristianpb.github.io/analytics-google/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customized dashboard which:

  • connect to the google analytics api to fetch your analytics data ;
  • make interactive charts using the popular javascript library d3.js and dc.js ;
  • deploy your dashboard automatically in github pages serveless architecture by using github actions.

More details are included in my article

google analytics dashboard

Installation

Most important commands are in Makefile. So in order to start a development environment you only need to type:

make up

Deploy

I create a static html page by using:

make build

This creates a dist folder that can be used as a static page. I use github pages to publish the html at this page and I use github actions to update the data.

Dependencies

  • python
  • You need to have enable google api credentials in order to obtain a token and fetch google analytics data instructions can be found in my article.
  • I name the credentials as token.json. If you want to name it different, you have to change the name in analytics.py file.

About

Google analytics from cristianpb.github.io

https://cristianpb.github.io/analytics-google/


Languages

Language:Svelte 61.3%Language:CSS 24.4%Language:JavaScript 9.1%Language:Python 3.9%Language:Makefile 0.7%Language:HTML 0.6%