Skip to content

Analytics

Overview

StarkOne integrates GoAccess for real-time web access log analytics. Analytics provides a visual breakdown of traffic, top pages, countries, browsers, and response codes.

Access

Global Analytics

GET /api/analytics
Authorization: Bearer <token>   # superuser required

Returns an HTML response rendered by GoAccess from the server's access logs.

Per-Website Analytics

GET /api/webapps/:id/analytics
Authorization: Bearer <token>   # requires websites_management

Returns GoAccess analytics scoped to that website's access log.

Info

Analytics data is generated on-the-fly from nginx/apache access logs. Historical data is only available for as long as logs are retained. Use LogVault for longer-term log storage and search.