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

How to ignore own profile views? #11

Closed
ranamahmud opened this issue Jul 21, 2020 · 7 comments
Closed

How to ignore own profile views? #11

ranamahmud opened this issue Jul 21, 2020 · 7 comments
Labels
question Further information is requested

Comments

@ranamahmud
Copy link

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.

@antonkomarev
Copy link
Owner

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 antonkomarev added the question Further information is requested label Jul 21, 2020
@ranamahmud
Copy link
Author

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.

@antonkomarev
Copy link
Owner

antonkomarev commented Jul 22, 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
Copy link
Owner

Screenshot_2020-07-22 antonkomarev antonkomarev

<script> tag is encoded.

@ranamahmud
Copy link
Author

Got it.

@ksdkamesh99
Copy link

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

@antonkomarev antonkomarev pinned this issue Feb 22, 2022
@antonkomarev antonkomarev changed the title Count's users own profile view How to ignore own profile views? Feb 22, 2022
@vishalcseiitg
Copy link

Thanks for sharing

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

No branches or pull requests

4 participants