我想将
Flurry
作为分析解决方案集成到我的应用程序中。初始化会话工作正常,新会话显示在我的仪表板中。
然而,我的活动却并非如此。我正在尝试记录自定义事件以及预定义事件,但两者都没有显示在我的仪表板中。快速查看应用流量,确认触发时没有发生数据传输
Agent.logEvent
。
我用来记录事件的代码:
FlurryEvent.Params params = new FlurryEvent.Params()
.putDouble(FlurryEvent.Param.TOTAL_AMOUNT,34.99)
.putBoolean(FlurryEvent.Param.SUCCESS,true)
.putString(FlurryEvent.Param.ITEM_NAME,"book 1")
.putString(FlurryEvent.Param.ITEM_TYPE,"Book")
.putString("note","This is an awesome book to purchase!!!");
FlurryEventRecordStatus status = FlurryAgent.logEvent(FlurryEvent.PURCHASED,params);
Log.i("custom","the result of the event is: " + status.toString());
Logcat 显示:
2023-09-25 17:35:34.293 29303-29303 FlurryAgent de.tubs.cs.ias.flutebe W Log PURCHASED event - Missing recommended parameters: [fl.item.id, fl.currency.type, fl.item.count, fl.transaction.id]
2023-09-25 17:35:34.294 29303-29303 custom de.tubs.cs.ias.flutebe I the result of the event is: kFlurryEventRecorded
但是我的仪表板和观察到的流量仍然是空的。根据文档,只需调用
logEvent
就足够了,但显然我错过了一些东西。
事件分析数据不是实时的,只有会话数据是实时的。您需要等待几个小时到一天才能看到事件数据。