Live data from Hacker News

How to track and display profile views on GitHub

rushter.com

11–20 of 113 posts

Re: How to track and display profile views on GitHub

#11
post #2

Everything old is new again. I used this same technique on MySpace 15 years ago. I wonder if Github will try to filter that out the same way MySpace did back in the day.

I think I did this for emails sometime between 15 years ago and today

Re: How to track and display profile views on GitHub

#13
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)

That's literally discussed in depth in the article. They use headers for cache-busting just like README badges have done forever.

Re: How to track and display profile views on GitHub

#16
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)

That's literally discussed in depth in the article. They use headers for cache-busting just like README badges have done forever.

Ah gotcha, sorry, totally missed that!

Re: How to track and display profile views on GitHub

#17
post #2

Everything old is new again. I used this same technique on MySpace 15 years ago. I wonder if Github will try to filter that out the same way MySpace did back in the day.

> the same way MySpace did back in the day. For us that weren't around in MySpace era, how did they do that?

I can't remember much about images - but basically filtering out question-marks and equals symbols (i.e. ...thing.php?some=value) in a lot of places. I remember getting Facebook and when they first started their API it was a bit better thought out, so they loaded images on the user's behalf. Some great reading about 'hacking' myspace at the time: https://samy.pl/myspace/

Re: How to track and display profile views on GitHub

#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

Re: How to track and display profile views on GitHub

#20
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

Neat, thanks!
Post reply on HN