Skip to content

api-evangelist/swetrix

Repository files navigation

Swetrix

Swetrix is an open source, privacy-focused web analytics platform providing cookieless tracking, real-time dashboards, and GDPR-compliant analytics without collecting personal data. It offers a fully-featured REST API for tracking events, querying statistics, managing projects, and integrating analytics into custom applications.

APIs

Swetrix Events API

Records pageview events, custom events, heartbeat sessions, JavaScript errors, and revenue transactions. Most endpoints are public (project ID only); the revenue endpoint requires an API key.

Swetrix Statistics API

Queries aggregated analytics data including traffic logs, performance metrics, session details, funnel analysis, user navigation flows, error statistics, and feature flag evaluations. Requires API key.

Swetrix Admin API

Manages projects, funnels, annotations, project views (segments), and organisations with full CRUD operations. Requires API key.

Artifacts

Type Path
OpenAPI Specs openapi/
Spectral Rules rules/swetrix-rules.yml
Naftiko Capabilities capabilities/
JSON Schema json-schema/
JSON Structure json-structure/
JSON-LD Context json-ld/swetrix-context.jsonld
Examples examples/
Vocabulary vocabulary/swetrix-vocabulary.yml

Naftiko Capabilities

Shared Definitions

Workflow Capabilities

Authentication

  • Events API: Public (project ID only); Revenue endpoint requires X-Api-Key header
  • Statistics API: X-Api-Key header required
  • Admin API: X-Api-Key header required
  • Rate limit: 600 requests/hour (free and paid plans)

Maintainers

About

Swetrix is an open source, privacy-focused web analytics platform that provides cookieless tracking, real-time dashboards, and GDPR-compliant analytics without collecting personal data. It offers a fully-featured REST API for tracking events, querying statistics, managing projects, and integrating analytics into custom applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors