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.
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityNo.
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.
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.
This is what it looks like:
If your GitHub page doesn't have enough traffic, or it's new, you'll see this:
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.