How to add Google Analytics to Github respository

I like to add google analytics on my github respository. So i can keep track of user visit.

  • How to add Google Analytics Tracking ID to GitHub Pages
  • Google can't find Analytics snippet on Github Pages
  • svn commit to trigger google analytics annotation?
  • One Solution collect form web for “How to add Google Analytics to Github respository”

    Unfortunately, you cannot use Google Analytics to monitor your GitHub repository page because you simply do not own the page. GitHub offers their own traffic analytics platform.

    I have not verified this myself, but you if you have a GitHub Pages site at <your GitHub username>.github.io (or a specific project page using GitHub Pages), you could add Google Analytics to that site. It won’t necessarily capture visits to the specific repository page, but it could help, especially if you have a particularly active GitHub Pages website.

    See this related post for more info: How to add Google Analytics Tracking ID to GitHub Pages

    Git Baby is a git and github fan, let's start git clone.