ios and android log event action as event type

This commit is contained in:
Ben Wheeler 2020-04-13 22:07:24 -04:00
parent 098b2dc68a
commit 9e30b90a17
2 changed files with 2 additions and 4 deletions

View file

@ -502,10 +502,9 @@ public class ScratchJrActivity
*/
public void logAnalyticsEvent(String category, String action, String label) {
Bundle params = new Bundle();
params.putString(FirebaseAnalytics.Param.ITEM_ID, action);
params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, category);
params.putString(FirebaseAnalytics.Param.ITEM_NAME, label);
_FirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
_FirebaseAnalytics.logEvent(action, params);
}
/**

View file

@ -321,9 +321,8 @@ JSContext *js;
}
-(NSString*) analyticsEvent:(NSString*) category :(NSString*) action :(NSString*) label {
[FIRAnalytics logEventWithName:kFIREventViewItem
[FIRAnalytics logEventWithName:action
parameters:@{
kFIRParameterItemID:action,
kFIRParameterItemName:label,
kFIRParameterItemCategory:category
}];