Swetrix Web Analytics
Unified web analytics capability combining Swetrix Events, Statistics, and Admin APIs. Enables product teams and developers to track user behavior, analyze traffic patterns, manage analytics projects, and monitor errors in a privacy-first, cookieless analytics environment.
What You Can Do
MCP Tools
record-pageview
Record a pageview event to Swetrix analytics
record-custom-event
Record a custom analytics event with optional metadata
record-error
Record a JavaScript error event for dashboard aggregation
record-revenue
Record a revenue transaction (sale, refund, subscription)
get-traffic-log
Query aggregated traffic data for a project by time bucket and period
get-performance-metrics
Query frontend performance metrics including DNS, TLS, TTFB, and page load times
get-live-visitors
Get currently active visitors with device, browser, OS, and country details
list-sessions
List individual visitor sessions with device and page details
get-funnel-analysis
Analyze conversion rates across a sequence of pages in a funnel
list-errors
List JavaScript error groups with occurrence counts and affected sessions
get-custom-events
Query custom event analytics grouped by time for named events
list-projects
List all Swetrix analytics projects for the account
create-project
Create a new Swetrix analytics project
get-project
Get configuration and settings for a specific project
delete-project
Permanently delete a project and all associated analytics data