Analytics
Last updated Sep 27, 2026Open in dashboard

Analytics - Variables

Analytics has one message template: the Leaderboard Post a leaderboard sends to its post channel. Edit the default with Template on a leaderboard, or choose your own under Post Message Template (use Create template to make one in the Message Builder). Put {leaderboard_image} where the ranking image should go, and, on a leaderboard with a role, use {pings.new} to mention only the members who just got it.

TemplateSlugVariable groups
Leaderboard Post@analytics.leaderboard.postServer, Leaderboard, Metrics

Leaderboard

VariableDescription
{leaderboard.metric}Leaderboard metric label (e.g. Messages Sent)
{leaderboard.period}Leaderboard period label (e.g. Every Week)
{pings.all}Mentions all users on the leaderboard this run
{pings.new}Mentions only users who are new to the leaderboard this run (excludes previous role holders). Requires a leaderboard role to be configured - without one, behaves identically to {pings.all}.
{leaderboard_image}Leaderboard image (inserts a MediaGallery component with the chart)

Metrics

VariableDescription
{analytics.messages.1d}Total messages sent in the last 1 day
{analytics.messages.7d}Total messages sent in the last 7 days
{analytics.messages.30d}Total messages sent in the last 30 days
{analytics.voice.1d}Total voice session hours in the last 1 day
{analytics.voice.7d}Total voice session hours in the last 7 days
{analytics.voice.30d}Total voice session hours in the last 30 days
{analytics.reactions.7d}Total reactions added in the last 7 days
{analytics.commands.7d}Total commands used in the last 7 days
{analytics.invites.30d}Total successful invites in the last 30 days

The shared groups (Server) are listed with the common template variables. Every template also takes the Utility variables.

Stat channel names use their own variables, expressions and filters; they are listed on the Stat Channels page. The shared Server variables and the message filters are in the Message Builder guide.