MCPcopy Create free account
hub / github.com/auth0/auth0-cli / track

Method track

internal/analytics/analytics.go:75–84  ·  view source on GitHub ↗
(eventName string, id string, properties map[string]string)

Source from the content-addressed store, hash-verified

73}
74
75func (t *Tracker) track(eventName string, id string, properties map[string]string) {
76 if !shouldTrack() {
77 return
78 }
79
80 event := newEvent(eventName, id, properties)
81
82 t.wg.Add(1)
83 go t.sendEvent(event)
84}
85
86func (t *Tracker) sendEvent(event *event) {
87 jsonEvent, err := json.Marshal(event)

Callers 2

TrackFirstLoginMethod · 0.95
TrackCommandRunMethod · 0.95

Calls 3

sendEventMethod · 0.95
shouldTrackFunction · 0.85
newEventFunction · 0.85

Tested by

no test coverage detected