Live data from Hacker News

How to track and display profile views on GitHub

rushter.com

21–30 of 113 posts

Re: How to track and display profile views on GitHub

#21
Which exact headers are being leaked by GitHub? Depending on what they leak, this could be something only useful for counting hits (if all they leak is the implicit time of the request), or for fully tracking users (if they leak Etags, original IPs, etc).

It's too bad the author removed the badge from their Github profile. It would be interesting to see the effect of this post on profile views.

Re: How to track and display profile views on GitHub

#22
Oops, looks like the author got too many load from the server and removed the badge from his Readme.md?

This is the commit which removed it: https://github.com/rushter/rushter/commit/00d0d552e262218dae...

I guess one shouldn't do this if your profile becomes popular enough...

Re: How to track and display profile views on GitHub

#23
post #18
post #12

This is interesting because this didn't used to be possible from a repository's readme, I believe, because linked images would be cached and served from GitHub's CDN. I wonder what's changed (if it indeed has)

You can check it here https://github.com/dwyl/hits Also https://twitter.com/holman/status/427937383376379904

Oh wow I wish I knew this sooner. They should bring back Bitdeli.

Re: How to track and display profile views on GitHub

#24
post #3

Can we please not normalize this? Vanity tracking at its worst. You don't need to know.

Seconding this. I don't know if it's a fair comparison but Instagram is removing publically-visible like counts because of their associated consequences, and embeddable banner services for tracking GitHub profile views seems inevitable.

Re: How to track and display profile views on GitHub

#25
post #3

Can we please not normalize this? Vanity tracking at its worst. You don't need to know.

Bad practice to assume your ethos is the only one at play.

I'd hardly call taking a look at _where_ people are coming from to view your Github profile a "vanity" thing. A view of referrers could be extremely useful in tuning one's developer presence and visibility. That could come in handy when job-seeking, or trying to spread the word about your services and/or company. Both of which Github is widely used for.

Re: How to track and display profile views on GitHub

#26
> Of course, there will be some extra requests from bots, but having such statistics is better than nothing.

I think this is a bit understated. A simple number coming off the image requests is going to be very unreliable. On average, you will not be able to discern bots and real users.

A plotting of the hits over time may be more usable.

Re: How to track and display profile views on GitHub

#27
post #7
post #3

Can we please not normalize this? Vanity tracking at its worst. You don't need to know.

I agree, but I think such information should be available to all people. Some people will be doing this anyway, and they can hide this by using a transparent pixel.

What benefits do you feel you get from this over the view counting Github already does for you?

Re: How to track and display profile views on GitHub

#28
Unrelated badge ideas:

1. Write a watcher that periodically reports whether you’re actively using a coding-related app (Terminal, VS Code, etc.) to a server you control, and serve a “coding”/“not coding” badge on your profile page; (could even detect which project you’re working on, and display that;)

2. Write an Apple Watch app that periodically reports whether you’re asleep, and serve a “sleeping”/“awake”/“unknown” badge on your profile page.

Re: How to track and display profile views on GitHub

#29

Oops, looks like the author got too many load from the server and removed the badge from his Readme.md? This is the commit which removed it: https://github.com/rushter/rushter/commit/00d0d552e262218dae... I guess one shouldn't do this if your profile becomes popular enough...

I've removed it because it does not display relevant information anymore (someone fetches ten times a second via wget).

I also don't have plans to use it in the future. I wanted to demonstrate the concept.

Re: How to track and display profile views on GitHub

#30

Oops, looks like the author got too many load from the server and removed the badge from his Readme.md? This is the commit which removed it: https://github.com/rushter/rushter/commit/00d0d552e262218dae... I guess one shouldn't do this if your profile becomes popular enough...

Or just use something more performant than Python/Flask - if the author was using the library he linked to [0]

[0] https://github.com/brentvollebregt/hit-counter

Post reply on HN