controller_admin_analytics
Serve the Site Analytics dashboard and its separate recording configuration page. Responses disable caching and search-engine indexing.
The admin_analytics dispatch renders admin_analytics.tpl, requires use mod_analytics,
and shows all non-paused recordings in saved order. The query argument period selects the reporting
window; its default day means six hours. Other supported values are hour, 24hours,
week, month, year and years; unknown values also use six hours.
The dispatch option {is_config, true} instead requires use mod_admin_config and renders
admin_analytics_config.tpl. Configuration is independent of permission to view reports.
The selected model result is passed to the template as analytics.
{admin_analytics_config, ["admin", "analytics", "config"],
controller_admin_analytics, [{is_config, true}]}
Recording mutations are handled by mod_analytics events and the m_analytics APIs,
which check permissions separately. This controller only renders the pages.