# Topic view count is inaccurate in topic index

**URL:** https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764
**Category:** Bug
**Created:** [2017 年2 月 2 日 02:02 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764 "2017-02-02T02:02:04Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [2017 年2 月 2 日 02:02 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/1 "2017-02-02T02:02:04Z")

</div>

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](https://critcola.com/community/t/overbot-overwatch-statistics-discord-bot/941)

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [2017 年2 月 2 日 02:36 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/5 "2017-02-02T02:36:44Z")

</div>

> [@codinghorror](#):
>
> Actually I am not sure what you are referring to here after re-reading, can you screenshot?

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

![](https://global.discourse-cdn.com/meta/optimized/3X/6/4/6424def9338436eb3601f6287d3d736d519ec38e_2_690x50.png)

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

![](https://global.discourse-cdn.com/meta/original/3X/1/c/1c62dbdc770b62790ae2705a3cbe637eecf12fc7.png)

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [2017 年2 月 6 日 17:39 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/6 "2017-02-06T17:39:45Z")

</div>

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

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [2017 年2 月 21 日 08:40 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/7 "2017-02-21T08:40:26Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年2 月 21 日 13:03 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/8 "2017-02-21T13:03:10Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [2017 年2 月 23 日 22:55 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/9 "2017-02-23T22:55:17Z")

</div>

> [@codinghorror](#):
>
> So you are complaining that the referred topic “clicks” does not match topic view counts?

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年2 月 24 日 00:53 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/10 "2017-02-24T00:53:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Bhuvanesh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bhuvanesh/32/119699_2.png) [@Bhuvanesh](https://meta.discourse.org/u/Bhuvanesh)
#### Post date: [2020 年8 月 5 日 13:24 UTC](https://meta.discourse.org/t/topic-view-count-is-inaccurate-in-topic-index/56764/11 "2020-08-05T13:24:11Z")

</div>

我们遇到了同样的问题，并且也尝试将 Discourse 更新到最新版本。

帖子内部的查看次数与管理员面板中显示的“热门引用主题”计数中的点击数不匹配。这是一个最近出现的问题。我们暂时无法确定导致此问题的原因。
