-
Notifications
You must be signed in to change notification settings - Fork 129
Track traffic to GitHub repo longer than 14 days #399
Comments
Ivan replied it is not currently possible. |
This comment has been minimized.
This comment has been minimized.
5 similar comments
+1 |
👍 |
+1 |
+1 |
+1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
+1 there are many people in my team who dearly want this data. Currently we manually parse the data into a csv and power our charts on a fortnightly basis. Would really appreciate api/ json data, even if its for 14 days. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3 similar comments
+1 |
+1 |
+1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
This would be incredibly helpful especially for those maintaining open source libraries. |
@burnash Thank you for the answer and clarifying this. That's pretty odd of github to ask for this. Maybe at one point there will be a solution. Thanks |
@burnash Actually, I want to track what is the real usage of my repo. And, clones/Fork data are got indicators.
@burnash Sure. Would love to contribute. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi all, I made another open-source web app to record repo traffic, clones, referrers and more. Welcome to try it out
|
@timqian Same problem as with the other tooling... It's a shame that GitHub doesn't change that... |
@timgrossmann Yeah, unfortunately, this is required 😂 Only thing I can do is to take care of your token. Also when you don't need this service, you can delete the token from your setting anytime |
it really is a shame that github has to make users create solutions just to know the extended history and analytics of their repositories :( .. I would prefer not to give anyone write access to my profile and repositories just to know extended analytics. Github, hope you're listening :) |
Prefer a solution that does NOT give someone else write access to your repositories I created a third script that parses the GitHub traffic and creates two markdown tables (clone, views) like this clone table. 2019 GitHub clones
Total clones: 93 It solves my challenge. It may help you. You can find the scripts: https://github.com/BradleyA/Linux-admin/tree/master/github-repository-traffic#github-repository-traffic |
Great and useful idea, I am sure that it should be implemented. |
this is seriously frustrating, in this age of cheap storage, GitHub would not even have a totals counter if not the entire history graph. At least give us Total Hits, Hits in last 1 year and hits in last 1 month. I'm sure having running counters would not add much to you load. For the love of god GitHub, please listen ! |
This comment has been minimized.
This comment has been minimized.
For anyone still looking for a solution for this, I made a GitHub action that you might find useful: https://github.com/marketplace/actions/repository-traffic With a GitHub action, the access token that is needed for accessing the GitHub API stays in your control. |
AWESOME! |
I wrote an automated solution for this also that uses Azure tech - https://github.com/matthansen0/logicapp-githubstats |
After my frustrations, I also wrote a solution for myself (and others) who do not wish to share any info with anyone else. No access token, no nothing. I basically trick github and found an easy way to maintain a running counter. |
This comment has been minimized.
This comment has been minimized.
I've made a pet project Ÿ HŸPE which helps me to collect and display GitHub traffic data longer than 14 days and even more. Just login and pick what repositories you want to track. |
does it work retroactively? or only from that point forward? |
It can only start collecting data after installation -14 days. GitHub doesn't provide data from the past periods... 😭 |
@antonkomarev @timqian do you know any way (paid or otherwise) that allows for more comprehensive github analytics over extended timespans (more similar to google analytics)? One major limitation I see with accumulating the short 14 day numbers is that it's impossible to determine the number of unique visitors over an extended time period. For example if a repo has 1000 unique visitors over 2 weeks, this does not mean that there will be 2000 unique visitors over 4 weeks, or 4000 unique visitors over 8 weeks, etc, as many visitors over the following time period will be repeat visitors. Does my question make sense? |
@glenn-jocher in https://yhype.me we summarize daily counters of unique visitors and if there was 3 unique visitors in January and 2 in March we tend to think that it was 5 different users. GitHub says that it is unique visitors, but there is no 100% proof that if someone will be counted as unique visitor in January will not be treated as unique visitor in March one more time. |
I did have a rather close look at all existing solutions to 'work around this', for custom aggregation. I've built https://github.com/marketplace/actions/github-repo-stats / https://github.com/jgehrcke/github-repo-stats and you might want to have a look! Every day, it generates a nice HTML and PDF report and from my point of view the most important part is that the data stays in GitHub. You don't need a cloud service to integrate this with. No S3 or so. The time series data is simply stored in a "data repository" (where you run this action in), with transparent evolution of history. The HTML report can be exposed via GitHub Pages. Example (demo): https://jgehrcke.github.io/ghrs-test/jgehrcke/covid-19-germany-gae/latest-report/report.html Would appreciate feedback! Thanks! And: storing this actually in GitHub is a funny way to reply to @UbhiTS:
|
To add something to this discussion, GitHub does store the access data for repositories for longer than the 14 day period. I recently filed a DMCA takedown on an infringing repository, and they were able to provide page views and clones going back a few months for the repo on request. I'm not sure why the data is not made easily available. |
Possible? If not, +1 from me.
Sample reference URL: https://github.com/cirosantilli/test/graphs/traffic
On SE: http://webapps.stackexchange.com/questions/60915
The text was updated successfully, but these errors were encountered: