Custom Firebase Analytics List of Values

I try to use the bundle method putStringArrayList(), but I always get an error in the firebase console.

Bundle bundle = new Bundle();

ArrayList<String> types = new ArrayList<String>();
types.add("test1");
types.add("test2");
bundle.putStringArrayList("Types", types);

mFirebaseAnalytics.logEvent("MainActivity", bundle);

In the Firebase console, I get this error:

error_value Types
firebase_error 4

And a link to Analysis Error Codes (the value of the event parameter is too large).

How can I send more than one value for a particular key?

+4
source share
2 answers

According to the API docs for logEvent, the description of params bundle says

String, long and double parameter options are supported .

, , , , . google firebase.

- , .

bundle.putString("Types", types.toString());
+4

Google Analytics Firebase :

40 , - ( ") . 100 . " firebase "," google_ "" ga_" .

, . , "type" "type_name =", , _.

0

Source: https://habr.com/ru/post/1678732/


All Articles