16 Sep 2020

Monitoring Github Page Traffic via Google Analytics

Problem:

I want to know the traffic about my github page.

Solution:

It’s pretty straight forward since I used jekyll framework. So all you need to do is to add your google analitics trackid into _config.yml

# analytics
## google analytics
ga:  # if you wanna this feature, go to https://www.google.com/analytics/ to get your configuration; if not, comment following line.
  id: your_tracking_id







If you want to create a filter to exclude traffic from yourself, just create a filter in google analytics:


Tags:
0 comments



评论:(需要科学上网)