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.


3 Answers 3



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

  • 4
    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
    Commented Dec 31, 2020 at 23:36
  • Mixpanel has a free tier, and Matomo is a privacy-friendly alternative to GA
    – Nino Filiu
    Commented Jul 29, 2021 at 21:18
  • I went with Plausible, it's open source.
    – user174058
    Commented Aug 7, 2022 at 6:45

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

  • 81
    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
    Commented Jan 13, 2018 at 16:57
  • 9
    This answer is for GitHub repo. Not GitHub pages. For GitHub pages, I think Google Analytics is fine.
    – alsotang
    Commented Jan 18, 2019 at 8:01
  • 5
    yeah, but at some point google analytics is becoming evil to my opinion. Too much tracking :-\
    – Juh_
    Commented Feb 7, 2020 at 14:29
  • 3
    In that case you might consider building your own Matomo (matomo.org) instance. Commented Apr 1, 2021 at 13:06

Such a feature does not exist yet natively in GitHub. If it does, it is not mentioned in the documentation either at Viewing traffic to a repository, or at About GitHub Pages.

They do collect data though, as per the Data Collection section at About GitHub Pages:

When a GitHub Pages site is visited, the visitor's IP address is logged and stored for security purposes, regardless of whether the visitor has signed into GitHub or not. For more information about GitHub's security practices, see GitHub Privacy Statement.

There are currently at least two GitHub Community discussion entries for this topic, marked as product feedback. Consider voting them up to increase the chance that this feature will be eventually implemented:

Note that the Traffic feature is not available on GitHub Enterprise (GHE). If you are interested in this feature, plus Analytics for GH Pages for GHE, I suggest raising this to the team in your organization that is responsible for your GHE account.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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