mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
ios and android log event action as event type
This commit is contained in:
parent
098b2dc68a
commit
9e30b90a17
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue