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

Open
opened 2025-11-20 04:15:48 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @HariSekhon on GitHub (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.

Originally created by @HariSekhon on GitHub (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](https://github.com/HariSekhon/Knowledge-Base/blob/main/git.md#multi-origin-remotes)). 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.
Author
Owner

@antonkomarev commented on GitHub (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 commented on GitHub (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.
Author
Owner

@antonkomarev commented on GitHub (Aug 16, 2024):

YHYPE tracking pixel works absolutely the same as GHPVC pixel.

@antonkomarev commented on GitHub (Aug 16, 2024): YHYPE tracking pixel works absolutely the same as GHPVC pixel.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/github-profile-views-counter#67