Group Statistics

Get Started

Group Statistics

BuddyPress Stats Frontend Group Statistics Tab

Group Statistics displays analytics on BuddyPress group pages. This guide covers the frontend Statistics tab for groups.

Overview

When enabled, groups display a Statistics tab showing:

  • Group activity charts
  • Top contributors list
  • Member growth trends
  • Engagement metrics

Enabling Group Statistics

In Admin Settings

  1. Go to WB Plugins > Statistics > General Settings
  2. Enable “Show Group Stats”
  3. Configure visibility settings
  4. Save changes

Visibility Options

By Group Role: Group admins only, Group admins and mods, All group members

By Group Privacy: Public groups, Private groups, Hidden groups

Statistics Tab Content

Activity Chart

Line or bar chart showing group activity: Posts and comments over time, Toggleable time ranges (week, month, year), Activity type breakdown.

Member Statistics

Metric Description
Total Members Current member count
New This Month Members joined recently
Active Members Members with recent activity
Growth Rate Month-over-month change

Top Contributors

Ranked list of most active group members: Member avatar and name, Activity count, Contribution types (posts, comments), Link to member profile. Default: Shows top 10 contributors.

Engagement Metrics

Metric Description
Posts/Week Average posts per week
Comments/Post Average comments per post
Active Rate % of members who posted

Tab Position

Control where Statistics appears in group navigation using the bp_stats_group_statistics_tab_filter filter. Default position: 80.

Access Control

Show/Hide Tab

Use the bp_stats_show_group_stats_tab filter to control whether the tab appears based on group ID or other conditions.

Custom Permissions

Use the bp_stats_can_view_group_stats filter to limit who can view group stats (e.g., only group members).

Top Contributors Configuration

Change Number Shown: Use bp_stats_max_top_contributors filter. Default: 10.

Change Time Period: Use bp_stats_contributor_period filter to configure the ranking period. Default: 30 days.

Group Types

If using BuddyPress group types, configure stats visibility per type. Some group types may show stats while others hide them, controlled in General Settings.

Theming

CSS classes for styling:

  • .bp-stats-group-tab – Tab container
  • .bp-stats-group-chart – Activity chart
  • .bp-stats-top-contributors – Contributors list
  • .bp-stats-contributor-item – Individual contributor
  • .bp-stats-group-metrics – Metrics cards

Performance

Group statistics use optimized queries with indexed lookups for activities, batched member queries, and cached results. For groups with 10,000+ members, statistics calculate in background with cached results.

Troubleshooting

Tab not appearing – Verify “Show Group Stats” is enabled, Check user has permission to view, Verify group type allows stats.

Empty charts – Group may have no activity since plugin activation, Check activity logging is enabled, Allow time for data to accumulate.

Top contributors incorrect – Clear transient cache, Check date range settings, Verify activity types are tracked.

Last updated: January 28, 2026