问题描述
在我的应用程序,我想跟踪用户购买tickets.Means从我的应用程序买了票的总数每日我使用 FlurryAgent.onEvent(字符串EVENTID,地图℃的chart.Currently;弦乐,字符串>参数)
。但地图上的参数需要String.I希望通过that.So的小雪将计算从我的应用程序购买的所有门票,每天通票的数量。
有谁能够plz帮助我,我怎么会achive this.thanks
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
推荐答案
创建一个计数器变量,
INT计数器= 0;
每一次用户购买门票由一个或buyed门票数量增加了。(取决于你)。
在此之后使用下面乱舞code:
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);
在你的乱舞分析检查事件NumberOfTicketsBought,它会告诉你的门票买了计数,希望这有助于。
In your flurry analytics check for event NumberOfTicketsBought, it will show you the count of tickets bought, hope this helps.
这篇关于如何使用乱舞购买机票的事件数量来跟踪用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!