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

Question view counter keeps increasing when viewing self question with browser refresh #934

Open
prithvidasgupta opened this issue Apr 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@prithvidasgupta
Copy link
Contributor

Describe the bug

A user can keep revisiting their own question and the view counter keeps increasing.

It may lead to potential scenarios where an anxious user can keep revisiting their question and reach thousands of views (when in reality no one other than them has actually viewed the question).

To Reproduce

Steps to reproduce the behavior:

  1. Log in
  2. Ask a question
  3. Notice the view counter
  4. Keep refreshing the question detail page
  5. Notice view counter keeps increasing

Expected behavior

Ability to not count own views.

@prithvidasgupta prithvidasgupta added the bug Something isn't working label Apr 28, 2024
@LinkinStars
Copy link
Member

Yes, you're right. The function here is to count page views (PV) rather than unique visitors (UV). We could ask @fenbox whether it's necessary to track one's own visits to their questions.

@fenbox
Copy link
Member

fenbox commented May 28, 2024

I think pageviews should count the total number of visits, including those made by the author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants