1. The built-in traffic analytics (only for the last 2 weeks)
2. igrigorik/ga-beacon
- GitHub - igrigorik/ga-beacon: Google Analytics collector-as-a-service (using GA measurement protocol).
- Using a Beacon Image for GitHub, Website and Email Analytics — SitePoint
- How to add Google Analytics Tracking ID to GitHub Pages - Stack Overflow
3. nchah/github-traffic-stats
Get statistics on web traffic to your GitHub repositories.
GitHub Traffic API (only for the last 2 weeks)
- Repository traffic - GitHub Docs
- Traffic API is now official (2016-12-28): Traffic API is now official | GitHub Developer Guide
Discussions
- Track traffic to GitHub repo longer than 14 days: Track traffic to GitHub repo longer than 14 days? - Web Applications Stack Exchange
Can be done using the official github traffic json-api
webapps.stackexchange.com/a/103504