Hi there,
I'm building a web app and need to implement "how many times the item is being viewed". What is the term of "being viewed"? is it every time someone goes to that page or being counted once for the same session? please help
Hi there,
I'm building a web app and need to implement "how many times the item is being viewed". What is the term of "being viewed"? is it every time someone goes to that page or being counted once for the same session? please help
Everytime someone goes to that page.
Assuming you have a database for items, or whatever, you'll need to have a column that represents the view. On every page load you will increment that counter.
It means the number of times a page has been viewed. It is not tied to a user session. It is more related to the application scope.
That depends on whether you want to track Page Views or Number of Visitors..
Though StackOverflow seems to use "Views" per visitor, not actual Page Views.
There are basically two types of definitions for the term 'page view'.
From a technical point of view, it can represent the times the page has been requested by a web browser. This can be interesting information if you have to optimize your application's code, but it has little to no value for the visitors of your site.
The thing that visitors are more likely to be interested in, is the number of people that have viewed the page. Although you cannot exactly measure this, you can get a good approximation by treating multiple requests within a session as a single view. If your application allows visitors to log in, you can even treat all requests by a single user as one page view, regardless of when the requests were made.
Since you will be presenting the number of views on the page, you'll probably want the number of people that have viewed the page, rather than the number of requests.