:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
package sse
import "time"
type EventMsg struct {
UUID string `json:"uuid"`
Timestamp interface{} `json:"timestamp"`
DistinctID string `json:"distinct_id"`
PersonID string `json:"person_id"`
Event string `json:"event"`
Properties map[string]interface{} `json:"properties"`
ReceivedAt time.Time
}
type GeoEventMsg struct {
Lat float64 `json:"lat"`
Lng float64 `json:"lng"`
CountryCode string `json:"country_code"`
DistinctID string `json:"distinct_id"`
Count uint `json:"count"`
ReceivedAt time.Time
}
type StatsMsg struct {
UsersOnProduct int `json:"users_on_product"`
ActiveRecordings int `json:"active_recordings"`
}
type StatsErrorMsg struct {
Err error
}