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.
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"
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With