about repository analytics on GitHub #194224
Replies: 2 comments
|
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. |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
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?
All reactions