GitHub Analytics – How to See Traffic Sources to a Project

analyticsgithub

A lot of people just starred one of my GitHub projects overnight (yay!).

Is there any way for me to figure out where this influx of traffic came from?

Does GitHub provide any kind of analytics?

Best Answer

It's now a baked in feature under the GitHub Traffic section.

You can now see detailed analytics data for repositories that you're an owner of or that you can push to. Just load up the graphs page for your particular repository and you'll see a new link to the traffic page.

The old method used to be some hack like adding an image or similar web bug to your README file.

When someone comes across your repo, provided your README has an extension that GitHub will automatically render, then it should also load the image. And that should, depending on how the web bug is set up, give you some detail or clue as to the source of traffic.

Or you could appeal via contact to the GitHub Supportocats and see if they're willing to give you a heads up on the incoming source of the sauce.