event

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package event defines the core analytics event — the single unit everything (funnels, retention, trends) is computed from. One event = one thing a user did.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID         string         `json:"id"`
	Name       string         `json:"name"`
	DistinctID string         `json:"distinct_id"`
	Timestamp  time.Time      `json:"timestamp"`
	Properties map[string]any `json:"properties,omitempty"`
}

Event is a single user action. DistinctID ties events to one user/visitor; Name is the event type (e.g. "signup", "checkout"); Properties carry context (plan, source, value...). Timestamp is when it happened (event time, not ingest time) so late-arriving events still land in the right place.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL