Skip to content

Instantly share code, notes, and snippets.

@guuilp
Last active May 25, 2018 17:51
Show Gist options
  • Select an option

  • Save guuilp/4067619f25abbe732f56755aa87c2df9 to your computer and use it in GitHub Desktop.

Select an option

Save guuilp/4067619f25abbe732f56755aa87c2df9 to your computer and use it in GitHub Desktop.
public static void identifyUser(Context context, Activity activity, String email, String fullName, String nickName, String phone, String level){
MixpanelAPI mixpanel = MixpanelAPI.getInstance(context, MIXPANEL_TOKEN);
mixpanel.getPeople().identify(App.connectionId);
mixpanel.getPeople().set(ANALYTICS_EMAIL, email);
mixpanel.getPeople().set(ANALYTICS_FULLNAME_MIXPANEL, fullName);
mixpanel.getPeople().set(ANALYTICS_NICKNAME, nickName);
mixpanel.getPeople().set(ANALYTICS_PHONE, phone);
mixpanel.getPeople().set(ANALYTICS_LEVEL, level);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment