about repository analytics on GitHub #194224
Replies: 1 comment
-
|
Yes, GitHub has this built in. Go to your repo > Insights > Traffic. You'll see views, unique visitors, top 10 referring sites, top 10 paths under "Popular content", and clones (unique cloners + total clones), all for the last 14 days. Two things to know: It's only the last 14 days. No long-term history built in. If you want more, hit the Traffic REST API on a cron and store it yourself. The endpoints are Your own views don't count while you're logged in, so browsing your own repo won't inflate the stats. Caveats: the Traffic page is only visible to people with push access, and paths/referrers are top 10 only, not a full breakdown. For deeper per-file analytics you'd need an external tool. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
Body
I have a question about repository analytics on GitHub.
Is there a way to track how many people have accessed my repository and how many times specific files have been viewed? I’m especially interested in understanding whether there’s any built-in feature or tool that provides this level of detail.
Also, when I open my own repository or view files, does that count toward the total number of views, or are my own visits excluded from the statistics?
Beta Was this translation helpful? Give feedback.
All reactions