I found the event name in the REST analytics api documentation. So the code worked:
Parse.Analytics.track('AppOpened', { 'user': userObj}, function(response){
});
You can also track custom events only with your custom event name, for example:
Parse.Analytics.track('CustomEvent', { 'user': userObj, 'otherInfo': otherInfo}, function(response){
});
You can see this in analytics tab -> events in left sidebar -> select custom breakdowns from list, and you will see a list of your custom events in the right sidebar.
source
share