Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile Hits Counter doesn't count hits on GitLab, Azure DevOps or Bitbucket #96

Open
HariSekhon opened this issue Aug 15, 2024 · 2 comments

Comments

@HariSekhon
Copy link

HariSekhon commented Aug 15, 2024

The profile hits counter doesn't include hits from the same README mirrored to GitLab, Azure DevOps or Bitbucket when you refresh those pages.

I replicate all of my repos to all 4 platforms to test features and also for resilience if GitHub is ever down or hacked I have backup copies of my repos on the other hosting platforms (my doc on how to push to all 4 automatically on every simple git push is in my Knowledge-Base).

Example:

refresh this page - it increments the profile views counter:

https://github.com/HariSekhon

but if you refresh the GitLab page it doesn't:

https://gitlab.com/HariSekhon

and same with the Azure DevOps repo README directly since they don't use this homepage:

https://dev.azure.com/harisekhon/GitHub/_git/HariSekhon

and same for Bitbucket README:

https://bitbucket.org/harisekhon/harisekhon/src/main/

yet even a direct refresh of the GitHub README does increment the counter:

https://github.com/HariSekhon/HariSekhon/blob/main/README.md

I suspect you have some kind of referer filter for github.com which should be extended to include gitlab.com, dev.azure.com and bitbucket.org?

This appears to also be the case on YHype - which btw is awkward to test because https://yhype.me/github/profile-views is really slow to load in between each refresh to test it and can be confounded by other profile views on GitHub in that time.

@antonkomarev
Copy link
Owner

antonkomarev commented Aug 16, 2024

@HariSekhon it is intended, this project is named GitHub Profile Views Counter.

Views from other services are not working right now because we are checking the source of the request. GitHub passes all the images through their proxy service Camo, so all of the requests are coming from its IP addresses and fixed User Agent. This helps us to avoid spam attacks (not all, but some of them).

You may add a PR, to add GitLab support, I'll try to dive in for the review. IMHO, other services like Bitbucket are pretty dead as public sources hosting. I've never met any of the popular open source projects on Azure or Bitbucket. They are mostly for the enterprise solutions, for the companies who are not sharing their code with the community and they don't need to track views count.

@antonkomarev
Copy link
Owner

YHYPE tracking pixel works absolutely the same as GHPVC pixel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants