eealeivan / mixpanel-csharp

Mixpanel C# integration library
MIT License
63 stars 15 forks source link

User profile properties? #22

Closed Lelelo1 closed 2 years ago

Lelelo1 commented 3 years ago

Hello How do I set user profile properties?

I am using this code

var Instance = new MixpanelClient(token, superProperties: new { DistinctId = userID });
Instance.PeopleAdd(new { DistinctId = userID, Role = "developer" });

I can track successfully, but Role = "developer" does not end up anywhere in mixpanel. I expect it to appear as a user profile property..?

eealeivan commented 3 years ago

Hi, sorry for the late reply.

You will need PeopleSet method here. PeopleAdd is used for incrementing numerical property values.