0

I try move GA to Firebase,but I have some problem.

GA:

public void Event(final String category, final String action, final String label, final long value) {
    mGoogleAnalyticsTracker.send(new HitBuilders.EventBuilder()
            .setCategory(category).setAction(action)
            .setLabel(label).setValue(value).build());
}

I try use firebase

public void Event(final String category, final String action, final String label, final long value) {
    Bundle params = new Bundle();
    params.putString("category", category);
    params.putString("action", action);
    params.putString("label", label);
    params.putLong("value", value);
    firebaseAnalytics.logEvent("ga_event", params);
}

I only can see "ga_event" on Firebase webside. I can't get category ,action ,label and value information on Firebase webside.

  1. Can I use this method do it?
  2. How do I get category ,action ,label and value information ?
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
黃正維
  • 3
  • 1
  • 1
    https://stackoverflow.com/q/37919630/4887268 – TazmanOne Aug 16 '19 at 08:22
  • Does this answer your question? [How to move from Google-Analytics to Firebase-Analytics?](https://stackoverflow.com/questions/37919630/how-to-move-from-google-analytics-to-firebase-analytics) – CoolMind Apr 27 '20 at 14:02

0 Answers0