Does GitHub provide some (native) way to track visitors on some hosted page (pages at *.github.io/project)?

I know we can see traffic on GitHub repositories and I thought there would be some similar features for pages but couldn't find anything.

  • 5
    I would be interested to learn this as well. I'm pretty sure no one visits [mine](wogsland.github.io), but it's always nice to back that up with numbers.
    – wogsland
    Mar 1 '17 at 19:25


The only way to track analytics for a GitHub Pages page/site is via a third-party service such as Clicky, Google Analytics, Gauges, etc.

  • 1
    Not looking to shoot the messenger or anything, but... This sucks. I don't want to spend money on a Github Paes site, that's why I'm using Github Pages. And I don't want to hand the data over to Google, because why would I want to do that?
    – Daniel
    Dec 31 '20 at 23:36
  • Mixpanel has a free tier, and Matomo is a privacy-friendly alternative to GA
    – Nino Filiu
    Jul 29 at 21:18

GitHub has provided native "GitHub Traffic Analytics" since 2014.

Besides tracking visitors to your repository, it provides a 'content' panel where you can see the traffic to individual pages within that repository.

  1. Navigate to your desired repository
  2. Go to 'Insights' and select 'Traffic'.

This is what it looks like:

enter image description here

If your GitHub page doesn't have enough traffic, or it's new, you'll see this:

enter image description here

  • 62
    I'm not certain, but I believe this is a graph of visits to individual pages in your GitHub repo via github.com URLs. Not the hosted GitHub Pages URLs.
    – Nelson
    Jan 13 '18 at 16:57
  • 4
    This answer is for GitHub repo. Not GitHub pages. For GitHub pages, I think Google Analytics is fine.
    – alsotang
    Jan 18 '19 at 8:01
  • 2
    yeah, but at some point google analytics is becoming evil to my opinion. Too much tracking :-\
    – Juh_
    Feb 7 '20 at 14:29
  • 1
    In that case you might consider building your own Matomo (matomo.org) instance. Apr 1 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.