incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

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

Open prithvidasgupta opened this issue 1 year ago • 2 comments

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 avatar Apr 28 '24 15:04 prithvidasgupta

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.

LinkinStars avatar Apr 29 '24 02:04 LinkinStars

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

fenbox avatar May 28 '24 08:05 fenbox

Still open? I can look into this.

timwehrle avatar Oct 11 '24 10:10 timwehrle