Analytics

get_analytics

Return aggregate site metrics summed from the site_stats rollup for one of today | 7d | 30d | all. Returns page_views, visitor_days, submissions_count, plan_completions, gate_passes, engaged_seconds, plus the resolved `range` and `day_from` (UTC calendar date, YYYY-MM-DD). Never scans the interactions table. Same numbers the site owner sees on the Analytics dashboard tab. Read-only.

Behaviour

Effect
Read only. Calling it never changes anything in the account.
Repeat calls
Idempotent. Repeating the same call produces the same result.
Plan
Available on every plan, including free.

Parameters

NameTypeRequiredDescription
site_iduuidYes
rangeenum
today | 7d | 30d | all
Yes

Returns

NameTypeDescription
page_viewsinteger
visitor_daysinteger
submissions_countinteger
plan_completionsinteger
gate_passesinteger
engaged_secondsinteger
rangeenum
today | 7d | 30d | all
day_fromstring

Using it

get_analytics is called by an AI assistant connected to Sentway over MCP, not by hand. Point the assistant at the Sentway MCP endpoint and complete the OAuth flow, and the tool becomes available in the same session as the other 38 Sentway tools. See connecting over MCP.