85

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.

0

2 Answers 2

33

No.

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.

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

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

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

Your Answer

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

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