Analytics
Unique visitors and page views for a registered domain.
How to use this capability
Ways to interact with this capability — pick a path to jump to the relevant section below.
SDK
Call actions from Node or React apps using the Ossy SDK — typed payloads and workspace context built in.
View section ↓
MCP
Connect Cursor to http://localhost:3006/mcp when MCP tools are available for analytics.
View section ↓
HTTP
Call actions over HTTP with Bearer token authentication — create a token in Profile for scripts and automation.
View section ↓
Background tasks
Event-driven and scheduled handlers run in the background — triggered by the platform, not invoked like actions.
View section ↓
Aggregates
Domain entities and bounded-context models exposed by this capability for reads and composition.
View section ↓
Actions
Invokable intents — call directly via SDK, POST /actions, or MCP tools. This is the agent-facing surface, not background jobs.
Create Page View
@ossy/analytics/actions/create-page-view
Invoke @ossy/analytics/actions/create-page-view
MCP: ossy_analytics_create_page_view
sdk.invoke('@ossy/analytics/actions/create-page-view', { … })POST /actions
{ "action": "@ossy/analytics/actions/create-page-view", "payload": { … } }Background tasks
Background and scheduled handlers — triggered by events or cron, not called via SDK, POST /actions, or MCP. Ids use the tasks/ path (distinct from actions/).
Create Page View
@ossy/analytics/tasks/create-page-view
Get Page View Stats
@ossy/analytics/tasks/get-page-view-stats
Get Workspace Kpis
@ossy/analytics/tasks/get-workspace-kpis
Aggregates
Domain aggregates and bounded-context entities.
Page View Location
analytics/data/page-view-location
Page View Stats
analytics/data/page-view-stats