Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get GitHub Clone stats?

There used to be a "Clones" sub-tab in the "Stats & Graphs" tab of GitHub (for example https://github.com/TeamMentor/TeamMentor-Documentation/graphs/impact) but that is gone.

Is there another way to get these stats?

It would be great if we could get Gauges to show up Git clone, pushes, pulls, GitHub page views, etc.

like image 699
Dinis Cruz Avatar asked Apr 07 '12 17:04

Dinis Cruz


People also ask

Does GitHub keep track of clones?

Conclusion: Yes, the owner of a repository will see when someone makes a fork on GitHub, but no, they will not see it when someone makes a clone somewhere else.

Does Git clone get all history?

Cloning an entire repo is standard operating procedure using Git. Each clone usually includes everything in a repository. That means when you clone, you get not only the files, but every revision of every file ever committed, plus the history of each commit.

What counts as a clone GitHub?

git clone [url] : Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits.

How do I see my views on GitHub?

If your project is hosted on GitHub, you can view how many people land on your project and where they come from. From your project's page, click “Insights”, then “Traffic”. On this page, you can see: Total page views: Tells you how many times your project was viewed.


3 Answers

At least regarding clone, you now (August, 12th 2014) have a dedicated graph.
(In 2019: Insights / Traffic)

See "Clone Graphs"

Our traffic graphs tab shows you a lot of information about who's visiting your repository on the web.
We've added a new graph to this tab, showing git clone activity.

https://cloud.githubusercontent.com/assets/395621/3867646/2c340b8a-2009-11e4-8823-9ddda44b51e0.png_git clones traffic graph

You can use it to find out:

  • how many times your repository's source code is actually cloned in a given day, as well as
  • how many unique GitHub users (or anonymous IP addresses) did the cloning.

For more information on traffic graphs, check out the documentation.

Note you also see the Referring sites and Unique visitors


Update Jan. 2021: Dr. Jan-Philip Gehrcke reports in the comments:

For periodically collecting traffic/access data (such as clones, views), I've built a GitHub Action: jgehrcke/github-repo-stats:
it automatically:

  • persists the data snapshots in a git repository,
  • aggregates them, and
  • generates a report with charts that then can span the entire data collection period!

Demo report in the README.

like image 124
VonC Avatar answered Oct 22 '22 08:10

VonC


Quick update on this:
Google now offers a direct API call which can be used inside the README file on github to gather statistics directly to Google analytics. If you have an existing Google Analytics account, you need to upgrade it to a universal account. This is a quick button press on your admin page. Without upgrading the new api will not work - we spent a while figuring this one out. More info here: https://developers.google.com/analytics/devguides/collection/upgrade/?hl=en_US

Here is our new call to the google universal stats API:

[![analytics](http://www.google-analytics.com/collect?v=1&t=pageview&_s=1&dl=https%3A%2F%2Fgithub.com%2Fproject-imas%2Fapp-password&_u=MAC~&cid=1757014354.1393964045&tid=UA-XTZ530-2)]()

Githalytics.com is no longer needed and explains why the site is up but no longer functioning. We found this out the hard way as Githalytics went down the end of January and we did not notice until late Feb, so we lost about a months worth of site visits stats.

like image 13
gp-coder Avatar answered Oct 22 '22 07:10

gp-coder


At the moment (oct 2012) the answer is, No it's not possible.

like image 4
Dinis Cruz Avatar answered Oct 22 '22 08:10

Dinis Cruz