# Admin Statistics Report

**URL:** https://meta.discourse.org/t/admin-statistics-report/50943
**Category:** Plugin
**Created:** [October 1, 2016, 5:43am UTC](https://meta.discourse.org/t/admin-statistics-report/50943 "2016-10-01T05:43:05Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [October 1, 2016, 5:43am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/1 "2016-10-01T05:43:05Z")

</div>

Based on the [Admin Statistics Digest spec](https://meta.discourse.org/t/plugin-admin-statistics-digest/44270).

**Source on GitHub:** [GitHub - saiqulhaq/discourse-admin-statistics-digest · GitHub](https://github.com/discourse/discourse-admin-statistics-digest)

This plugin sends statistic report like:

- These users joined some time in the past 60-30 days
- These are your top non-staff users of the month
- These formerly very active users are not so active any more
- The 5 most active responders in the #Support category were: …
- Most popular topics & posts this month

### Preview:

- Email report sample:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/f/ff99ff6a16cb63d8769b06a9c1a19b91445af612.jpg)

- plugin dashboard:  
 ![](https://global.discourse-cdn.com/meta/original/3X/2/b/2b32a1aa9ad3041c9c7890288b35065788b371e6.png)

### Installation

Add `git clone https://github.com/discourse/discourse-admin-statistics-digest.git` to the container file

```
hooks:
  after_code:
    - exec:
      cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-admin-statistics-digest.git

```

or follow the instruction on [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-a-plugin/19157)

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [October 21, 2016, 4:35pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/2 "2016-10-21T16:35:39Z")

</div>

Looks like a very useful plugin.

To avoid the awkward English here:

![](https://global.discourse-cdn.com/meta/original/3X/6/9/69c522cb54251bfc58044a86dabcb7810c1d7dbd.png)

You can recast this sentence to read: “On day [drop down menu] of each month”

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [October 23, 2016, 4:40am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/3 "2016-10-23T04:40:29Z")

</div>

Thanks for the suggestion  
I just updated the description

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [October 23, 2016, 5:49am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/4 "2016-10-23T05:49:02Z")

</div>

I like it! I just installed the plugin to try it out, and it’s pretty neat. Very helpful to have this regular update recorded in an email. Many thanks for contributing it! 🌻

Some nice to haves to recommend based on my community’s needs:

- ability to exclude categories completely from the report
- ability to exclude usernames completely from the report
- ability to specify staff by username or group
- ability to specify email address(es) to send from/to
- howto for customizing the email that is sent out
- include the stats from the about page in the email

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [October 23, 2016, 6:15am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/5 "2016-10-23T06:15:54Z")

</div>

I just noticed a small bug with the plugin - when I leave the admin page for the plugin the URL doesn’t change in my browser. I seem to recall something about this back in the day, not sure what the answer is but probably something you need to do to prevent it from keeping the URL. Maybe @sam can recall?

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [October 26, 2016, 4:37pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/6 "2016-10-26T16:37:51Z")

</div>

wow thanks for your feedback  
unfortunately I am not actively adding any enhancements to the plugin at this time, but I will post here if there are any updates, and let you know if one of your community’s need has been added to feature list

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [November 4, 2016, 3:21am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/7 "2016-11-04T03:21:36Z")

</div>

That’s a pity ☹

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 25, 2016, 7:33pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/8 "2016-11-25T19:33:57Z")

</div>

fyi this plugin does not allow a rebuild to the latest version of discourse

```
ExecJS::ProgramError: Error: Assertion Failed: Using `{{view}}` or any path based on it ('javascripts/admin-statistics-digest-setting' @ L10:C13) has been removed in Ember 2.0

```

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [November 25, 2016, 11:26pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/9 "2016-11-25T23:26:53Z")

</div>

Thanks for the report  
I will update the plugin soon to compatible with newest EmberJS (2.4.6) used by Discourse

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [December 3, 2016, 3:33am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/10 "2016-12-03T03:33:06Z")

</div>

I just updated the plugin  
it works with latest Discourse version

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [September 11, 2017, 9:53pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/11 "2017-09-11T21:53:57Z")

</div>

Is this plugin still working fine on the latest version of discourse?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 25, 2017, 6:17am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/12 "2017-09-25T06:17:49Z")

</div>

Only one way to find out 😏 can you test and report back if it has any issues?

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [September 30, 2017, 12:29pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/13 "2017-09-30T12:29:13Z")

</div>

I have tested it locally, sending email report feature is works  
and testing spec has been passed using latest Discourse code

---

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [October 12, 2017, 2:00pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/14 "2017-10-12T14:00:27Z")

</div>

Seems that this plugin overrides global setting ‘disable emails = true’ because Admin Statistics Digest is sent to staff members anyway…

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [December 17, 2017, 5:04pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/18 "2017-12-17T17:04:50Z")

</div>

Hi

I just updated the plugin, it wouldn’t sending email anymore if disable emails global setting equals true

btw I just realised that there is pull request from @simon  
please let us know how the email design/template?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [December 19, 2017, 10:41am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/19 "2017-12-19T10:41:47Z")

</div>

You must have brioken something in with that update:

> [@Failed bootstrap: rake aborted (wrong number of arguments)](https://meta.discourse.org/t/failed-bootstrap-rake-aborted-wrong-number-of-arguments/76410/2):
>
> Okay, I gave it another try after uninstalling discourse-admin-statistics-digest and now it works. So there seems to be a bug in [that plugin](https://meta.discourse.org/t/admin-statistics-report/50943).

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [December 19, 2017, 11:37am UTC](https://meta.discourse.org/t/admin-statistics-report/50943/20 "2017-12-19T11:37:58Z")

</div>

Sorry for regression

I just updated the plugin

---

<div class="post-metadata">

### Author: ![8BIT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/8bit/32/76872_2.png) [@8BIT](https://meta.discourse.org/u/8BIT)
#### Post date: [December 26, 2017, 4:02pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/21 "2017-12-26T16:02:49Z")

</div>

taking a look! thanks for this!

---

<div class="post-metadata">

### Author: ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)
#### Post date: [January 22, 2018, 3:57pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/22 "2018-01-22T15:57:13Z")

</div>

Hi guys

are you still using this plugin?

I’m just trying to refactor the code to be more customizable, but the Javascript code seems broken, because incompatibility issue with EmberJS version on current Discourse  
unfortunately I forget everything about EmberJS because I am using another JS framework in day to day 😅

please let me know if you think this plugin still useful, so I can try to learn about Ember JS again

---

<div class="post-metadata">

### Author: ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)
#### Post date: [January 22, 2018, 4:02pm UTC](https://meta.discourse.org/t/admin-statistics-report/50943/23 "2018-01-22T16:02:45Z")

</div>

Heh - I was just about to install it and see how it works and if it gives us a lot of what we want for reporting/stats

[Next page](https://meta.discourse.org/t/admin-statistics-report/50943.md?page=2)
