Skip to content

Instantly share code, notes, and snippets.

@guuilp
Last active May 25, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guuilp/4067619f25abbe732f56755aa87c2df9 to your computer and use it in GitHub Desktop.
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