Topic view count is inaccurate in topic index

AI-generated summary

Users are experiencing issues with inaccurate view counts in the topic index page. DanielMarquard reported a discrepancy between the view count on the topic index page and the one reported under “Top Referred Topics” in the admin panel, with the latter being more accurate and matching Google Analytics and Piwik reports. The issue persists even after several days. codinghorror suggested that the discrepancy might be due to topic view counts being reset every 8 hours per IP for anonymous visitors. However, DanielMarquard is still unsure why the view counts are lower than the unique visitors reported by Piwik. Another user, Bhuvanesh, is experiencing the same issue despite updating to the latest Discourse version.

We got a decent bit of traffic today on a new topic that was shared on Reddit. The view count reported for this topic under “Top Referred Topics” in /admin is more or less in line with what Google Analytics and Piwik report, but a much lower number (off by ~90%) is displayed on the topic index page for the topic’s category.

Is this normal? Are view counts on the front-end cached?

https://critcola.com/community/t/overbot-overwatch-statistics-discord-bot/941

Here’s the topic index for the topic’s category (with an inaccurate view count).

Here’s the topic under “Top Referred Topics”. This count is more realistic, although Piwik is reporting 871 page views (782 unique).

3 „Gefällt mir“

A few days later, and these totals continue to move up, but are still inaccurate. :confused:

We’ve had a notable uptick in traffic over the past week, but still have disparity among view count statistics in different areas of Discourse. Is there any information I could provide to help identify the bug? I might use CSS to hide view counts since they’re just not accurate.

So you are complaining that the referred topic “clicks” does not match topic view counts?

Note that topic view counts are reset once per 8 hours per IP (for anons). So if you had a lot of anon visitors coming from the same IP that won’t show up in view counts.

3 „Gefällt mir“

I guess I’m just confused with why the view counts are much lower than what Piwik reports are unique visitors, even in periods longer than eight hours.

@sam do you have any comment on this, I believe you are the last person to work on view counters for topics?

2 „Gefällt mir“

Wir haben dasselbe Problem und haben versucht, Discourse ebenfalls auf die neueste Version zu aktualisieren.

Die Aufrufzahl innerhalb des Beitrags stimmt nicht mit der Anzahl der Klicks überein, die in der Statistik „Top Referierte Themen