Skip to content

PLUGIN REGISTRY REQUEST: Analytics Plugin - #3440

Open
JordanP244656 wants to merge 4 commits into
modmail-dev:developmentfrom
JordanP244656:development
Open

JordanP244656 wants to merge 4 commits into
modmail-dev:developmentfrom
JordanP244656:development

Conversation

@JordanP244656

Copy link
Copy Markdown

Modmail Analytics Plugin

Simple analytics plugin for Modmail that tracks ticket activity and
gives a quick overview of how things are going.


Features

  • Tracks how many tickets are opened
  • Tracks how many tickets are closed
  • Calculates average time a ticket stays open
  • Weekly and monthly reports
  • CSV export (works with Excel / Google Sheets)
  • No setup required

Installation

?plugin add JordanP244656/ModmailAnalyticsPlugin/analytics@main

Commands

.analytics
Shows usage.

.analytics weekly
Shows stats from the last 7 days.

.analytics monthly
Shows stats from the last 30 days.

.analytics export
Exports the last 7 days as a CSV file.


How it works

The plugin listens for ticket events.

  • When a ticket opens, it stores the timestamp
  • When a ticket closes, it calculates how long it was open

Everything is grouped by category automatically.


Example

Discord output:

Support Opened: 42 Closed: 38 Avg Time: 12m 32s

CSV output:

Category,Opened,Closed,Average Time Support,42,38,12m 32s
Moderation,27,25,8m 10s

image image

Plans

  • Automatic weekly reports
  • Configurable report channel
  • Add more compatibility so you can set your own timestamps!
  • Saves on CSV with Accurate Period of Data & Exportation Time & Date
  • Outputs with the Accurate Period of Data (meaning shows you what date)
  • Get this on the registry!
  • Create more plugins!

Added analytics plugin information to registry.

Signed-off-by: JordanP244656 <162927099+JordanP244656@users.noreply.github.com>
Signed-off-by: JordanP244656 <162927099+JordanP244656@users.noreply.github.com>
Signed-off-by: JordanP244656 <162927099+JordanP244656@users.noreply.github.com>
@martinbndr martinbndr added the plugin registry Request to be added into the plugin registry label Mar 24, 2026
@martinbndr

Copy link
Copy Markdown
Contributor

@JordanP244656 You need to fix the problem mentioned in the review, else we cannot continue. The repository must be valid for the registry command.

@JordanP244656

Copy link
Copy Markdown
Author

@JordanP244656 You need to fix the problem mentioned in the review, else we cannot continue. The repository must be valid for the registry command.

I don't see a problem mentioned?