analytics
togo product analytics — event tracking, funnels, retention & dashboards
togo install togo-framework/analytics- analytics
- events
- funnels
- go
- golang
- plugin
- product-analytics
- retention
Readme
togo-framework/analytics
App-internal product analytics for togo — event tracking, funnels, retention & dashboards.
Install
A self-hosted, Mixpanel-lite analytics layer inside your togo app: track events, then query volume over time, top events/properties, funnels, retention cohorts, and active users (DAU/WAU) — over a Go API and REST. Ships with a tiny JS snippet to post events from the browser.
Track
Or POST batches to POST /api/analytics/events from the JS snippet.
Metrics
REST
| Method | Path | Purpose |
|---|---|---|
POST | /api/analytics/events | batch ingest {events:[…]} |
POST | /api/analytics/identify | {user_id, traits} |
GET | /api/analytics/volume | volume time series (event, bucket=day|hour, from, to) |
GET | /api/analytics/top | top events, or top values of property |
GET | /api/analytics/funnel | conversion (?step=a&step=b&…) |
GET | /api/analytics/retention | cohort retention |
GET | /api/analytics/active | active users |
GET | /api/analytics/dashboard | overview |
See docs/usage.md for the full API + the client snippet.
Configuration
No required env. The default event store is in-memory and bounded (great for dev + recent-window analytics). For durable history, implement the analytics.Store interface against your database (or stream events to a warehouse) and pass it to analytics.New(store).
Premium sponsors
Support togo — become a sponsor.