BarakoCMS.Analytics.Umami v0.1.0 #4
arnelirobles
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Umami web analytics, right in the barakoCMS admin. A new module —
BarakoCMS.Analytics.Umami— puts visitor stats (visitors, pageviews, top pages, referrers, countries) on an Analytics page under System in the admin. It's a server-side proxy over a self-hosted Umami instance, so Umami credentials never reach the browser. You can also register a new tracked site from the admin and it hands back the paste-in snippet.Set it up
BarakoCMS.Suite/ thebarako-cmsimage):Umami). Ships disabled until you set these:Umami__EnabledtrueUmami__BaseUrlhttp://umami:3000/analyticsUmami__UsernamebarakocmsUmami__Password•••••Umami__PublicUrlhttps://your.site/analyticsBaseUrl)Until configured it's inert —
GET /api/analytics/websitesreturns{ configured: false }and the admin shows a "connect Umami" hint instead of an error.Endpoints (Admin / SuperAdmin only)
/api/analytics/websites/api/analytics/websites/api/analytics/{id}/summary?range=7d/api/analytics/{id}/series?range=7d/api/analytics/{id}/metric?type=path&range=7dpath,referrer,country,browser,os,device)rangeis24h,7d(default),30d, or90d. Verified against Umami v3 (3.2.0). The module persists nothing — every read is live from Umami.Ships in the barakoCMS suite (
barako-cmsimage) now; publishes to NuGet + GitHub Packages asBarakoCMS.Analytics.Umamiwith the next suite release.All reactions