Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab.com Download Counter

I uploaded a GIT repository at GitLab.com, everything seems to work fine.

But I cannot find download statistics. For me this is an essential feature, and GitLab.com hosting would be insufficient without it.

Did I miss something? Can anybody tell me how to get a counter for the number of downloads on GitLab.com?

Thanks in advance.

like image 645
TJF Avatar asked Mar 17 '15 13:03

TJF


2 Answers

FWIW, as of today you can get the last 30 days' http fetch statistics using the REST API as detailed here: https://docs.gitlab.com/ee/api/project_statistics.html with

GET /projects/:id/statistics

where :id is the URL-encoded path of the project.

For instance

curl -X GET 'https://gitlab.com/api/v4/projects/username%2Fmy-repo/statistics' -H "PRIVATE-TOKEN: XYZ"
like image 118
doppler Avatar answered Oct 11 '22 21:10

doppler


A similar question was asked in the Gitlab support tracker. The answer was, in March 2015:

I'm sorry, but we don't provide download statistics for files uploaded to GitLab.com

You would need to run your own instance of Gitlab CE and setup your own statistics if you would like to track usage like this. Gitlab EE switched from Google Analytics to Matamo for tracking users, but they just don't expose that information to end-users on Gitlab.com, probably for privacy reasons.

A feature request for this was created on the Gitlab CE issue tracker in September 2016, was noted as "a reasonable request" by the GitLab product VP and added to the "Backlog" in January 2018, and was marked "Accepting Merge Requests" in April 2018.

like image 31
anarcat Avatar answered Oct 11 '22 21:10

anarcat