How to track users using flurry for number of buying ticket events

邮差的信 提交于 2019-12-08 13:04:16

问题


In my app i want to track users for buying tickets.Means The total number of tickets bought from my app daily in a chart.Currently I am using FlurryAgent.onEvent(String eventId, Map<String, String> parameters).but the map parameters takes String.I want to pass number of tickets through that.So that flurry will count all daily tickets bought from my app. can anybody plz help me how i ll achive this.thanks


回答1:


Create one counter variable, int counter=0; and each time user buys ticket increment it by one or number of tickets buyed.(depends on you). After this use the below flurry code:

   Map<String, String> params = new HashMap<String, String>();
   params.put("NumTicketsBought", "" + counter);
   FlurryAgent.logEvent("NumberOfTicketsBought", params);

In your flurry analytics check for event NumberOfTicketsBought, it will show you the count of tickets bought, hope this helps.



来源:https://stackoverflow.com/questions/20193958/how-to-track-users-using-flurry-for-number-of-buying-ticket-events

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!