Jump to content

Recommended Posts

Posted

Hi everyone,

I've built a module that integrates Plausible Analytics directly into the admin — with a full dashboard, charts, and a per-page stats widget on the edit screen.

GitHub: https://github.com/mxmsmnv/PlausibleAnalytics

What it does:

  • Dashboard under Setup → Analytics with summary cards (Visitors, Pageviews, Bounce Rate, Visit Duration)
  • Traffic trends chart + Top Pages bar chart + Traffic Sources donut chart
  • Tabbed breakdown: Geography, Devices, Browsers
  • Per-page widget on the page-edit screen — shows last 30 days stats inline
  • Period selector: Today / 7d / 30d / 6m / 12m
  • API response caching via LazyCron (configurable interval)
  • Self-hosted Plausible support via custom base URL
  • Chart.js vendored locally — no external CDN dependency
  • Role-based access via plausible-view permission

Screenshot:

plausible.thumb.png.d83c88c9f777244f1d6c52d7891a0b6d.png

Built on Stats API v2 (POST /api/v2/query). The module handles all v2 quirks internally — event vs session metrics split, correct date_range values, visit:entry_page filter for per-page session stats.

Happy to answer questions. Bug reports and PRs welcome!

  • Like 6

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...