Page views not counted corrected
-
@PitaJ said in Page views not counted corrected:
IIRC guests are not counted for topic views.
Seems like they should be, that means that the topic views are inaccurate by any measure. I understand wanting lean view numbers that don't include things like page refreshes.
But let's say you have a million users, constant traffic, but all of your readers are anonymous. Shows zero views is wrong in every way. Zero Registered User Views is a wholly different metric.
-
Especially as many communities rely on these metrics for advertisers, partners, or just understanding their own traffic. Having completely different metrics than what the name says creates some real issues potentially. If nothing else, it can make successful sites feel like they are failing.
-
I am sad that I could not get the page view numbers counted by IIRC guests. I have a website, I also have a mobile media (like twitter). I often twitter the link of my website by my mobile media. Usually page views should increase several thousands per day (from guests), and I want to see the effect. But now I cannot get the "corrected" page view numbers...
If nothing else, it can make successful sites feel like they are failing.
It is true. It looks my re-twitter does not work at all.
-
You can change https://github.com/NodeBB/NodeBB/blob/master/src/controllers/topics.js#L130 this line to
if (req.uid >= 0) {
then guests will increase view counts. Keep in mind every guest will get a session object as well so it will increase the size of the session store. -
@baris Thank you I will try that.
Keep in mind every guest will get a session object as well so it will increase the size of the session store.
I have no idea about this. If suddenly I have 3000 guests viewing my thread in 10 mins. Is it harmful to my site?
-
@sharonyue said in Page views not counted corrected:
@baris Thank you I will try that.
Keep in mind every guest will get a session object as well so it will increase the size of the session store.
I have no idea about this. If suddenly I have 3000 guests viewing my thread in 10 mins. Is it harmful to my site?
People viewing your website is not harmful to it. That's it's purpose, to be viewed... presumably as much as possible.
-
This post is deleted!
-
@sharonyue said in Page views not counted corrected:
@baris Thank you I will try that.
Keep in mind every guest will get a session object as well so it will increase the size of the session store.
I have no idea about this. If suddenly I have 3000 guests viewing my thread in 10 mins. Is it harmful to my site?
You would have that already. I've got 4000+ most days, and the site doesn't break a sweat. We could handle 10x that, no problem.
-
Thank you guys!!
@scottalanmiller Do you also change
if (req.uid >= 0) {
? -
@sharonyue said in Page views not counted corrected:
Thank you guys!!
@scottalanmiller Do you also change
if (req.uid >= 0) {
?I'm not sure why, but mine is already that. So it's been that way a long, long time. So yes.