# Stats Discrepancies

**URL:** https://meta.discourse.org/t/stats-discrepancies/161397
**Category:** Support
**Created:** [August 19, 2020, 5:52pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397 "2020-08-19T17:52:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Konrad\_Sopala](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/konrad_sopala/32/167014_2.png) [@Konrad\_Sopala](https://meta.discourse.org/u/Konrad_Sopala)
#### Post date: [August 19, 2020, 5:52pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397/1 "2020-08-19T17:52:26Z")

</div>

Hey there!

I’m accessing certain user profile and the likes received number there is totally different to what is shown when I go to admin’s view of that profile and scroll down to the stats section.

Here are the numbers:

![Screenshot 2020-08-19 at 18.16.55](https://global.discourse-cdn.com/meta/original/3X/9/8/9847043077cef592da3c6deffd5da2bc10127ea9.png) ![Screenshot 2020-08-19 at 18.17.11](https://global.discourse-cdn.com/meta/original/3X/0/5/05a79a6c27848f8485608fe9cd2511ea4b3f2680.png)

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [August 19, 2020, 5:54pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397/2 "2020-08-19T17:54:08Z")

</div>

One of them is within a moving time window.

---

<div class="post-metadata">

### Author: ![Konrad\_Sopala](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/konrad_sopala/32/167014_2.png) [@Konrad\_Sopala](https://meta.discourse.org/u/Konrad_Sopala)
#### Post date: [August 20, 2020, 1:05pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397/3 "2020-08-20T13:05:27Z")

</div>

It’s not. Both of them are all-time stats at least that’s what the UI communicates

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [August 20, 2020, 1:47pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397/4 "2020-08-20T13:47:39Z")

</div>

Yep, in doing some more checking I am also finding other odditeties.

I checked a newer user on a site I have admin rights.  
The user joined 30 days ago.

On their public profile - https://\<site\>/u/\<user\>/summary - it shows ![image](https://global.discourse-cdn.com/meta/original/3X/f/b/fbf885ba40f8e5a233aca84fa523562008afe0e0.png)

On the admin page - https://\<site\>/admin/users/\<user id\>/\<user\> - it shows  
 ![image](https://global.discourse-cdn.com/meta/original/3X/6/e/6ed75d12d219e533bd4e3926987dd4ce04b7379c.png)

Since the user has only been active on one topic and has several post I checked all of the post. They have not given a like or received a like.

I did not look at any personal messages.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 20, 2020, 1:50pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397/5 "2020-08-20T13:50:14Z")

</div>

Isn’t this because public profile is just public topics and admin counts likes in PMs ?

---

<div class="post-metadata">

### Author: ![Konrad\_Sopala](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/konrad_sopala/32/167014_2.png) [@Konrad\_Sopala](https://meta.discourse.org/u/Konrad_Sopala)
#### Post date: [August 21, 2020, 10:06am UTC](https://meta.discourse.org/t/stats-discrepancies/161397/6 "2020-08-21T10:06:32Z")

</div>

I guess that’s not a question to mee as I haven’t developed that feature 😃 Maybe. But it’s another time we experience data discrepancies because of either some lack of proper UX and communication from the UI or something else.

It would be great @Falco if you can confirm that for sure so we can be 100% set on that. Thanks!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [August 21, 2020, 11:48pm UTC](https://meta.discourse.org/t/stats-discrepancies/161397/7 "2020-08-21T23:48:37Z")

</div>

The stats that you see on the user’s summary page are taken from the `user_stats` table. The `likes_given`, `likes_received`, `post_count` and `topic_count` fields in that table all refer to activity that happens in regular topics - activity from PMs is excluded from the results. For reference, see [discourse/app/models/user\_action.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/app/models/user_action.rb#L265).

The stats that you see on a user’s admin page include counts from PMs, so you can expect the results for `likes_given`, `likes_received`, `post_count` and `topic_count` to be different in the two places.

> [@EricGT](#):
>
> I checked a newer user on a site I have admin rights.  
> The user joined 30 days ago.

If the user completed the New User Tutorial, they will have given and received 1 like in a PM. Those likes will show up on the user’s admin page, but they will not be displayed on the user’s Summary page because they occured in a PM. You can also expect the Posts Created count to be higher on a user’s admin page than they are on their Summary page if the user has responded to the tutorial.
