Can I use suggested parameters with custom events in Firebase analytics?

402 views
Skip to first unread message

Sandeep Kumar

unread,
Sep 9, 2019, 1:47:18 PM9/9/19
to Firebase Google Group

I am new to Firebase analytics. I wanted to know if I can use :

  1. Custom Event Suggested Parameter.
  2. Suggested Event with Custom Parameters.

I read the documentation, and it says

Some Params are suggested below for certain common Events, but you are not limited to these. You may supply extra Params for suggested Events or custom Params for Custom events.

However I have not found any examples out there implementing this. And it is not mentioned specifically if I can use a Custom Event with Suggested Parameter.

I am recommending event and parameter guide for Firebase analytics tracking to the App development team, so I do not have a complete access to test this out from the App.

Suggested Event with Custom Parameters.

Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, id);
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, name);
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image");
bundle.putString("custom_parameter_key", "custom_parameter_value");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);

Custom Event with Suggested Parameters.

Bundle params = new Bundle();
params.putString(FirebaseAnalytics.Param.ITEM_ID, id);
params.putString("image_name", name);
params.putString("full_text", text);
mFirebaseAnalytics.logEvent("share_image", params);

If you guys could please shed some light on this.

Frank van Puffelen

unread,
Sep 9, 2019, 1:49:00 PM9/9/19
to Firebase Google Group
Also posted on https://stackoverflow.com/q/57857130, but it may get more responses here.

Kato Richardson

unread,
Sep 9, 2019, 3:11:17 PM9/9/19
to Firebase Google Group
On the coding side, you can use any parameter you want with any event you generate. Intuitively, since you don't trigger the automatically collected events, you can't add your own parameters to those. You can set user properties though, for more persistent data about the client app.

All the parameters you add will show up in your BigQuery export for use in your own data mining. The reports generated by Firebase are a bit more limited; you can register a fixed number of custom parameters to display in these.

☼, Kato



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/f797b7fe-9215-4cf9-888c-246f8c7e8eae%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Sandeep Kumar

unread,
Sep 11, 2019, 10:50:21 AM9/11/19
to Firebase Google Group
Thank you Kato for the reply.
To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages