Admin Statistics Report

AI-generated summary

The discussion revolves around the Admin Statistics Report plugin, which sends monthly email digests with site analytics like user activity, top contributors, and popular topics. The plugin, hosted on GitHub, is described as useful by users saiqulhaq and tobias eigen, with suggestions for improvements such as excluding categories/users, customizing emails, and fixing compatibility with EmberJS. The plugin has faced issues with recent Discourse updates, including a bug where it ignores the global ‘disable emails’ setting and a JavaScript error due to EmberJS incompatibility. saiqulhaq has updated the plugin to fix these issues and confirmed it works with the latest Discourse version. However, saiqulhaq has since stepped back due to lack of time and EmberJS knowledge, and the plugin has been marked as unsupported. The Discourse team, via erlend_sh, confirmed that a V2 version is in development by a community member, but it has not been released yet. Users have asked about its status, but the team clarified they are not directly involved in its development. jomaxro confirmed no release yet, and pablote inquired about alternatives.

Based on the Admin Statistics Digest spec.

Source on GitHub: GitHub - saiqulhaq/discourse-admin-statistics-digest · GitHub

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