diff --git a/android/ScratchJr/app/src/main/java/org/scratchjr/android/ScratchJrActivity.java b/android/ScratchJr/app/src/main/java/org/scratchjr/android/ScratchJrActivity.java index afc7232..709a582 100644 --- a/android/ScratchJr/app/src/main/java/org/scratchjr/android/ScratchJrActivity.java +++ b/android/ScratchJr/app/src/main/java/org/scratchjr/android/ScratchJrActivity.java @@ -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); } /** diff --git a/ios/ScratchJr/src/ViewController.m b/ios/ScratchJr/src/ViewController.m index 064f226..0827e9f 100644 --- a/ios/ScratchJr/src/ViewController.m +++ b/ios/ScratchJr/src/ViewController.m @@ -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 }];