# 在参与度指标中过滤 Discobot

**URL:** https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800
**Category:** Feature
**Created:** [2018年七月20日 12:44 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800 "2018-07-20T12:44:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [2018年七月20日 12:44 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800/1 "2018-07-20T12:44:20Z")

</div>

The new dashboard (which is nice!) contains a metric of user-to-user messages. These seem to include the messages that Discobot sends and that makes it fairly useless as a metric (since in small communities, new signups will dwarf PMs sent).

We launched in April, as you can see:

 ![52](https://global.discourse-cdn.com/meta/original/3X/1/5/15c6fd7d3a7569bd9524ce0905fb3adc659c0ac0.png)

Feels like this metric should not include messages sent by or (solely) to users with negative ids (e.g. system and Discobot).

---

<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: [2018年七月20日 19:54 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800/2 "2018-07-20T19:54:16Z")

</div>

Hmm @j.jaffeux we usually exclude posts by users with an ID of 0 or lower (system users). There’s a constant for this in the Ruby code too.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2018年七月20日 20:37 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800/3 "2018-07-20T20:37:07Z")

</div>

Yes I know we have « real » users concept in code, this is an old report. Will check the code and apply this.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2018年七月23日 14:33 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800/5 "2018-07-23T14:33:38Z")

</div>

Should be done as of:

[https://github.com/discourse/discourse/commit/32062864d359b9e842eb3f5f1bbf9c7014a1d857](https://github.com/discourse/discourse/commit/32062864d359b9e842eb3f5f1bbf9c7014a1d857)

Thanks.

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [2018年七月24日 09:27 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800/6 "2018-07-24T09:27:57Z")

</div>

Nice, thank you Discourse team and @j.jaffeux in particular 🙂

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2018年七月24日 22:00 UTC](https://meta.discourse.org/t/filter-out-discobot-in-engagement-metrics/92800/7 "2018-07-24T22:00:04Z")

</div>

This topic was automatically closed after 31 hours. New replies are no longer allowed.
