analytics

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Core commands
	EventLogin  = "cli_login"
	EventInit   = "cli_init"
	EventPush   = "cli_push"
	EventPull   = "cli_pull"
	EventDiff   = "cli_diff"
	EventDoctor = "cli_doctor"
	EventScan   = "cli_scan"

	// Provider integration
	EventConnect    = "cli_connect"
	EventDisconnect = "cli_disconnect"
	EventSync       = "cli_sync"

	// Growth & conversion
	EventReadmeBadge   = "cli_readme_badge"
	EventUpgradePrompt = "cli_upgrade_prompt"

	// Feature requests & usage patterns
	EventMonorepoDetected = "cli_monorepo_detected"

	// Errors & performance
	EventError          = "cli_error"
	EventCommandLatency = "cli_command_latency"
)

Events constants for analytics tracking

Variables

This section is empty.

Functions

func Identify

func Identify(userID string, properties map[string]interface{})

Identify associates the anonymous ID with a user ID

func SetVersion

func SetVersion(v string)

SetVersion sets the CLI version for analytics

func Shutdown

func Shutdown()

Shutdown flushes and closes the PostHog client

func Track

func Track(event string, properties map[string]interface{})

Track sends an analytics event to PostHog

Types

This section is empty.

Jump to

Keyboard shortcuts

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