Avatar

Correct answer by
Employee

Put each context data value in the same HashMap, and then pass one HashMap to the track call:

    // Adobe - track when this state loads  

    HashMap<String, Object> exampleContextData1 = new HashMap<String, Object>(); 

    exampleContextData1.put("myapp.login.LoginStatus", "logged in"); 

    exampleContextData1.put("myapp.login.Template", "templateB"); 

 

    Analytics.trackState("Home Screen", exampleContextData1);

View solution in original post