简体   繁体   English

如何分析乱舞事件参数?

[英]How to analyse flurry event parameters?

I am tracking events of my game with flurry analytics. 我正在通过乱七八糟的分析来跟踪我的游戏事件。 So far I like it a lot, but I have a question concerning the parameters of the events. 到目前为止,我非常喜欢它,但我有一个关于事件参数的问题。

Right now I have a generic level_win event that has parameters like score, time, levelnumber and so on. 现在我有一个通用的level_win事件,其中包含得分,时间,等级数等参数。 What I want to do is create a statistic on how long it took the players to finish a certain level. 我想要做的是创建一个关于球员完成一定水平所需时间的统计数据。 Is there a possibility to get that information with flurry? 是否有可能乱七八糟地获取这些信息? Right now the web interface only shows pie charts for all parameters, but that is not what I need. 现在,Web界面只显示所有参数的饼图,但这不是我需要的。 I want to select a parameter (levelnumber) and see the other parameters of the events, but only of those that have the levelnumber parameter set to the value I want to inspect. 我想选择一个参数(levelnumber)并查看事件的其他参数,但只查看那些将levelnumber参数设置为我想要检查的值的参数。

Any insights on how I could achieve that? 有关如何实现这一目标的任何见解?

You should use timed event for this. 你应该为此使用定时事件。 In the flurry API there is method called it when someone enters at particular level 在flurry API中,有人在某个特定级别进入时会调用它

 NSDictionary *flurryParam = @{@"param": @"Send some data"};
[Flurry logEvent:@"Time_Taken" withParameters:flurryParam timed:YES];

And when level is finished 当等级结束时

 NSDictionary *flurryParam = @{@"param": @"Send some data"};
[Flurry endTimedEvent:@"Time_Taken" withParameters:flurryParam];

I would recommend the simple solution of just creating a unique event for each level, basically just appending the level number to the level_win event. 我建议只为每个级别创建一个唯一事件的简单解决方案,基本上只是将级别号附加到level_win事件。 This will clutter up your events list, but I'm fairly certain it's the only way to get what you want. 这会使你的事件列表变得混乱,但我相当肯定这是获得你想要的东西的唯一方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM