private static void UpdateSegmentIOInformationOnThisUser()
{
_traits = new Traits()
{
{"lastName", _userInfo.LastName},
{"firstName", _userInfo.FirstName},
{"Email", _userInfo.Email},
{"UILanguage", _userInfo.UILanguageCode},
//segmentio collects this in context, but doesn't seem to convey it to MixPanel
{"$browser", GetOperatingSystemLabel()}
};
foreach (var property in _userInfo.OtherProperties)
{
if (!string.IsNullOrWhiteSpace(property.Value))
_traits.Add(property.Key, property.Value);
}
if (!AllowTracking)
return;
Segment.Analytics.Client.Identify(AnalyticsSettings.Default.IdForAnalytics, _traits, _options);
}