Mai Analytics
View tracking for posts, terms, and authors. Supports self-hosted tracking, Google Analytics (via Site Kit), Matomo, and Jetpack Stats.
by BizBudding · github.com/maithemewp/mai-analytics · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/maithemewp/mai-analytics/archive/refs/heads/develop.zipFrom the readme
Mai Analytics
View tracking for WordPress posts, terms, and authors. Supports self-hosted tracking, Google Analytics (via Site Kit), Matomo, and Jetpack Stats.
Features
- First-party view tracking via JS beacon (navigator.sendBeacon)
- Tracks all public post types, taxonomy archives, and author archives automatically
- Web + app source split (maiviewsweb, maiviewsapp)
- Trending views with configurable window (default 7 days)
- External provider support: Google Analytics 4 (via Site Kit), Matomo, Jetpack Stats
- Admin dashboard with summary cards, chart, and filterable tables
- Mai Post Grid / Mai Term Grid integration (order by views or filter by trending)
- Bot filtering via user-agent patterns
- WP-CLI commands for migration, sync, stats, seeding, and diagnostics
- Works standalone or as a Composer dependency inside Mai Publisher
- Backward compatible with Mai Publisher's maiviews / maitrending meta keys
Installation
Standalone plugin
Download and activate in wp-content/plugins/mai-analytics/.
Via Composer (inside Mai Publisher)
When both the standalone plugin and Mai Publisher's bundled copy are active, the standalone always wins. Mai Publisher defers loading its bundled