Firebase Analytics事件记录错误 [英] Firebase Analytics event logging error
本文介绍了Firebase Analytics事件记录错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Firebase Analytics,我的应用使用此代码记录了一些事件:
I use Firebase Analytics and my app logs some events with this code:
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "SOME_ID")
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "SOME_TYPE");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
在大多数情况下,它似乎运作良好.在logcat中,我有这样的东西:
And it seem to work well most of the time. In logcat I have something like this:
Logging event (FE): select_content, Bundle[{_o=app, content_type=SOME_TYPE, item_id=SOME_ID}]
但是对于某些事件,我会收到
But for some events I receive
Logging event (FE): select_content, Bundle[{_o=app, _ev=item_id, _err=4, content_type=SOME_TYPE}]
显然,_err = 4是某种错误代码.是什么意思?
Apparently, _err=4 is some kind of error code. What does it mean?
在那种情况下,我的错误item_id
是一个很长的字符串(20-30个符号). item_id
的长度可能有限制吗?
In that cases with error my item_id
was a pretty long string (20-30 symbols). Maybe there is a limitation on the length of the item_id
?
推荐答案
查看全文