src/server/pkg/metrics/segment.go
func identifyUser(client *analytics.Client, userID string) {
	err := client.Identify(&analytics.Identify{
		UserId: userID,
	})
	if err != nil {
		log.Errorf("error reporting user identity to Segment: %s", err.Error())
	}
}
func identifyUser(client *analytics.Client, userID string) {
	err := client.Identify(&analytics.Identify{
		UserId: userID,
	})
	if err != nil {
		log.Errorf("error reporting user identity to Segment: %s", err.Error())
	}
}
func identifyUser ( client * analytics . Client , userID string ) { err := client . Identify ( & analytics . Identify { UserId : userID , } ) if err != nil { log . Errorf ( " " , err . Error ( ) ) } }
/*
Segment needs us to identify a user before we report any events for that user.
We have no way of knowing if a user has previously been identified, so we call this
before every `Track()` call containing user data.
*/
/ * Segment needs us to identify a user before we report any events for that user . We have no way of knowing if a user has previously been identified so we call this before every Track () call containing user data .