How to ignore own profile views? #1

Closed
opened 2025-11-20 04:14:47 -05:00 by saavagebueno · 7 comments
Owner

Originally created by @ranamahmud on GitHub (Jul 21, 2020).

Currently, the GitHub profile view counter increases counter by one when a user reloads his GitHub profile page. For more accurate counter it should exclude profile views by the owner of the GitHub repository.

Originally created by @ranamahmud on GitHub (Jul 21, 2020). Currently, the GitHub profile view counter increases counter by one when a user reloads his GitHub profile page. For more accurate counter it should exclude profile views by the owner of the GitHub repository.
saavagebueno added the question label 2025-11-20 04:14:47 -05:00
Author
Owner

@antonkomarev commented on GitHub (Jul 21, 2020):

Hi @ranamahmud!

In short: it is impossible.

GitHub passes all images URLs through their GitHub Camo proxy service. This means that only GitHub can track personal information, such as visitors User Agent or IP address. Third party cloud service stores only views timestamps and total count of views.

@antonkomarev commented on GitHub (Jul 21, 2020): Hi @ranamahmud! In short: it is impossible. GitHub passes all images URLs through their [GitHub Camo proxy service](https://github.blog/2010-11-13-sidejack-prevention-phase-3-ssl-proxied-assets/). This means that only GitHub can track personal information, such as visitors User Agent or IP address. Third party cloud service stores only views timestamps and total count of views.
Author
Owner

@ranamahmud commented on GitHub (Jul 21, 2020):

We can try adding a JavaScript script in the rmd file that'll check the current username in the browser's address bar and if that matches the repo owner's name then it'll exclude the view count.

@ranamahmud commented on GitHub (Jul 21, 2020): We can try adding a JavaScript script in the rmd file that'll check the current username in the browser's address bar and if that matches the repo owner's name then it'll exclude the view count.
Author
Owner

@antonkomarev commented on GitHub (Jul 21, 2020):

We can't add JS, it's a markdown in GitHub. GitHub protects users from such things. Otherwise it will be security issue and people will be able to place tracking cookies. GitHub doing it right.

@antonkomarev commented on GitHub (Jul 21, 2020): We can't add JS, it's a markdown in GitHub. GitHub protects users from such things. Otherwise it will be security issue and people will be able to place tracking cookies. GitHub doing it right.
Author
Owner

@antonkomarev commented on GitHub (Jul 21, 2020):

Screenshot_2020-07-22 antonkomarev antonkomarev

<script> tag is encoded.

@antonkomarev commented on GitHub (Jul 21, 2020): ![Screenshot_2020-07-22 antonkomarev antonkomarev](https://user-images.githubusercontent.com/1849174/88124209-4091f000-cbd5-11ea-8c90-6237f6ad0c60.png) `<script>` tag is encoded.
Author
Owner

@ranamahmud commented on GitHub (Jul 21, 2020):

Got it.

@ranamahmud commented on GitHub (Jul 21, 2020): Got it.
Author
Owner

@ksdkamesh99 commented on GitHub (Sep 25, 2020):

Hi @ranamahmud I too got the same idea but now it is cleared . Thanks for clarifying @antonkomarev .

@ksdkamesh99 commented on GitHub (Sep 25, 2020): Hi @ranamahmud I too got the same idea but now it is cleared . Thanks for clarifying @antonkomarev .
Author
Owner

@vishalcseiitg commented on GitHub (Oct 2, 2022):

Thanks for sharing

@vishalcseiitg commented on GitHub (Oct 2, 2022): Thanks for sharing
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#1