Skip to content

Commit

Permalink
fix analytics (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Nov 8, 2022
1 parent 7c3ac8c commit 34aa16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func Init(conf config.Config) {
} // ignore errors and continue with an empty ID if neccesary

client.Enqueue(segment.Identify{
UserId: mid,
Traits: segment.NewTraits().
Set("source", "cli").
Set("clientID", mid).
Expand Down
1 change: 1 addition & 0 deletions server/analytics/segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func newSegmentTracker(hostname, serverID, appVersion, env string) Tracker {
})

client.Enqueue(segment.Identify{
UserId: serverID,
Traits: segment.NewTraits().
Set("source", "server").
Set("serverID", serverID).
Expand Down

0 comments on commit 34aa16d

Please sign in to comment.