Skip to main content
Source snapshot: 13 October 2026. These pages describe the current implementation, including unfinished controls. See coverage and review notes.

Website analytics

Host: admin.<ROOT_DOMAIN> · Route: /[tenant]/website/analytics

Purpose and access

Inspect the website analytics presentation.You need an account session and a resolved membership context in the selected Mahallu (including the API’s current platform elevation path). The API independently checks the requested operation’s permissions and feature availability.

Screen layout

The screen contains Traffic trend, Top Pages, Referrers, Countries, Devices, and Browsers panels plus Refresh.

Fields and displayed information

This screen has no editable fields or filters in its rendered components.

Actions

Interaction sequence

Open the screen → inspect its empty analytics panels → Refresh briefly animates the control.

States and rules

The component begins with hasData=false and does not fetch analytics. Refresh is timer-based; these panels are not live traffic measurements.

Implementation references

Paths below are relative to the application repository. This is source-reviewed behavior, not a recorded browser test.
  • apps/web/src/app/sites/admin/[tenant]/website/analytics/page.tsx
  • apps/web/src/features/website/website-analytics.tsx
Data and access helpers: apps/web/src/lib/session.ts, apps/web/src/lib/server-api.ts, apps/web/src/lib/tenants.ts