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.
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:
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.