Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top