Admin Statistics Report

Based on the Admin Statistics Digest spec.

Source on GitHub: GitHub - saiqulhaq/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:

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

36 Likes

Looks like a very useful plugin.

To avoid the awkward English here:

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

4 Likes

Thanks for the suggestion
I just updated the description

1 Like

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! :sunflower:

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
1 Like

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?

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

2 Likes

That’s a pity :frowning:

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
1 Like

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

6 Likes

I just updated the plugin
it works with latest Discourse version

5 Likes

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

1 Like

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

4 Likes

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

3 Likes

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

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?

1 Like

You must have brioken something in with that update:

Sorry for regression

I just updated the plugin

2 Likes

taking a look! thanks for this!

1 Like

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 :sweat_smile:

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

2 Likes

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

1 Like