Identifying Users

Basic Identification

Insights.Identify("unique ID", "trait", "trait value");

Where:

  • "unique ID" is a string that uniquely identifies each user. For example, an email address or an employee ID.
  • "trait" is any custom property you'd like to associate with the user.
  • "trait value" is the value of the trait.

Sending more traits

Insights.Identify("unique ID", new Dictionary<string,string>
{
    {"email", "[email protected]"},
    {"name", "John Doe"},
});

Special traits

The Insights.Traits class defines common trait names that can customize how Insights displays user information.

Insights.Identify("unique ID", new Dictionary<string, string>
{ 
    {Insights.Traits.Name, "Bob Lob"},
    {Insights.Traits.Email, "[email protected]"},
    {Insights.Traits.Description, "Lawyer"},
});