乱舞事件根本没有出现

我想添加一些分析function到我的应用程序,所以我在Flurry上创build了一个帐户,并将他们的SDK添加到我的项目中。 然后我logging了一些事件,正常事件和定时事件。

直到这里没有什么特别的:)但即使在2天后,我看不到在Flurry的仪表板中的任何这些事件。 我可以看到会议的数量,所以我猜我的应用程序实际上是发送一些东西。 但没有事件。

任何想法? 我没有做任何关于代码的奇特的事情,我用我的ID注册(根据我之前说的,这是正确的)

[FlurryAnalytics startSession:flurryKey]; 

和logging事件使用:

 [FlurryAnalytics logEvent:@"MyEvent"]; 

当你说Flurry事件时,我想你是指FlurryAnalytics。

选项1:

请仔细检查您的密钥,以及是否已经整合了iOS的最新 Flury SDK版本。

选项2:

请确认您是否正确引用了FlurryAnalytics.hlibFlurryAnalytics.a

还要检查您是否已经将libFlurryAnalytics.a添加到“ 目标设置”中的 Link Binaries to Libraries

OPTION-3:

尝试使用您的login凭据login到其网站,并等待更多的时间。

而且据我所知,这不是实时服务。 显示logging结果大概需要6-8个小时。

否则,你需要联系Flurry Analytics,因为它真的是一个简单的API,开发人员可能没有太多的问题

希望这可以帮助你。

除了设置之外,了解Flurry如何logging事件至关重要。 感谢一些评论,我在debugging模式下运行了一些testing。 你可以通过

 [Flurry setDebugLogEnabled:YES]; 

当我的应用程序启动时,它设置用户ID和一些pageView日志logging。 这里是日志输出:

  2013-05-27 12:19:00.636 MyApp[8492:907] Flurry: Starting session on Agent Version [115] 2013-05-27 12:19:00.659 MyApp[8492:907] Flurry: setUserID[<cut>] 2013-05-27 12:19:00.684 MyApp[8492:120b] FlurrySession: Add session with startTime[2013-05-27 15:46:22 +0000] to saved sessions 2013-05-27 12:19:00.704 MyApp[8492:120b] FlurrySession: Add crashed former session 2013-05-27 12:19:00.713 MyApp[8492:120b] FlurrySession: Event logging enabled[1] 2013-05-27 12:19:00.714 MyApp[8492:120b] FlurrySession: Session reports on close enabled[1] 2013-05-27 12:19:00.715 MyApp[8492:120b] FlurrySession: Session reports on pause enabled[0] 2013-05-27 12:19:00.716 MyApp[8492:120b] FlurrySession: Crash reporting enabled[0] 2013-05-27 12:19:00.717 MyApp[8492:120b] FlurrySession: set pushToken [(null)], _pushToken = [(null)] 2013-05-27 12:19:00.719 MyApp[8492:907] FlurryPageViewDelegate: delegate[(null)] created 2013-05-27 12:19:00.720 MyApp[8492:907] FlurryPageViewDelegate: delegate[(null)] created 2013-05-27 12:19:00.736 MyApp[8492:120b] FlurrySession: Initialized session from scratch with startTime[2013-05-27 16:19:00 +0000] 2013-05-27 12:19:00.737 MyApp[8492:120b] FlurrySession: Created active session with API[<cut>] 2013-05-27 12:19:00.738 MyApp[8492:120b] FlurrySession: Session reports on close enabled[1] 2013-05-27 12:19:00.739 MyApp[8492:120b] FlurrySession: Session reports on pause enabled[1] 2013-05-27 12:19:00.740 MyApp[8492:120b] FlurrySession: Event logging enabled[1] 2013-05-27 12:19:00.741 MyApp[8492:120b] FlurrySession: Crash reporting enabled[0] 2013-05-27 12:19:00.742 MyApp[8492:120b] FlurrySession: Sending sessions to server, include current NO 2013-05-27 12:19:00.763 MyApp[8492:120b] FlurrySession: Initial timestamp[2013-02-20 00:46:06 +0000] from saved source 2013-05-27 12:19:00.780 MyApp[8492:907] FlurryPageViewDelegate: delegate[(null)] created 2013-05-27 12:19:01.192 MyApp[8492:120b] Flurry: start background task 2013-05-27 12:19:01.202 MyApp[8492:120b] FlurrySession: Scheduled send 1 session(s). 2013-05-27 12:19:01.215 MyApp[8492:120b] FlurrySession: Set userID[<cut>] 2013-05-27 12:19:01.217 MyApp[8492:120b] FlurrySession: dealloc session 2013-05-27 12:19:04.857 MyApp[8492:907] FlurrySession: networkStatusChanged to reachable 2013-05-27 12:19:05.616 MyApp[8492:907] Flurry: HTTP connection delegate received response[<NSHTTPURLResponse: 0x1c5a1310>] 2013-05-27 12:19:05.624 MyApp[8492:7f03] FlurrySession: async http response code: 200, id [D1038462-66E2-48AE-8304-83A24B0E26EB] 2013-05-27 12:19:05.634 MyApp[8492:7f03] Flurry: stop background task 

Flurry确实会自动发送初始会话设置,因此您可以在分析页面上看到会话(上面的部分,async http response code:200 is success)。 你会注意到它说添加坠毁前会话。 这是因为我点击XCode中停止并杀死了应用程序。 这不允许Flurrylogging任何事件! 它显示logging的事件,但没有计划发送会话:

  2013-05-27 12:19:41.184 MyApp[8492:aa07] FlurrySession: Recording event eventName[Doc Save] with parameters[{myparams = "xyz"; }] complete 

您需要首先单击设备上的主页button,以使Flurry实际发送logging的事件。 一旦你点击Home,你会在日志中看到这个:

  2013-05-27 12:21:15.884 MyApp[8492:a30f] FlurrySession: Pause session with pauseTime[2013-05-27 16:21:15 +0000] 2013-05-27 12:21:15.885 MyApp[8492:a30f] FlurrySession: Finish session with endTime[2013-05-27 16:21:15 +0000] 2013-05-27 12:21:15.887 MyApp[8492:a30f] FlurrySession: ending all unterminated timed events with _endTime[2013-05-27 16:21:15 +0000]... 2013-05-27 12:21:15.890 MyApp[8492:a30f] FlurrySession: ...finished ending un-ended timed events. 2013-05-27 12:21:15.891 MyApp[8492:a30f] FlurrySession: Sending sessions to server, include current YES 2013-05-27 12:21:15.900 MyApp[8492:a30f] FlurrySession: Initial timestamp[2013-02-20 00:46:06 +0000] from saved source 2013-05-27 12:21:15.914 MyApp[8492:a30f] Flurry: start background task 2013-05-27 12:21:15.919 MyApp[8492:a30f] FlurrySession: Scheduled send 1 session(s). 2013-05-27 12:21:16.729 MyApp[8492:907] Flurry: HTTP connection delegate received response[<NSHTTPURLResponse: 0x1c5ac0b0>] 2013-05-27 12:21:17.090 MyApp[8492:9c0b] FlurrySession: async http response code: 200, id [BB7CE5C1-D9C4-412F-9A41-6A838174B8FC] 2013-05-27 12:21:17.293 MyApp[8492:9c0b] Flurry: stop background task 

然后你可以用XCode中的Stop来杀死应用程序

如果您正在使用任何backgroundModes,您必须设置:

 [Flurry setBackgroundSessionEnabled:NO]; 

说明和描述:

https://stackoverflow.com/a/17840667/1041311

我有同样的问题,并从support@flurry.com得到以下反馈:

任何一旦删除的事件基本上是黑名单,并不会再被追踪,除非Flurrypipe理员未删除。

你是否期待删除的55个事件显示? 如果是,那么由于被删除,他们将不会再被追踪。

所以我从dev.flurry.com的pipe理部分删除了我的应用程序,并创build了一个具有相同名称的新应用程序,但它有一个新的API_KEY 。 之后,我所有的55个事件都正确地显示在乱七八糟的分析监视器中,并带有所有参数。

为什么一些新的Flurry事件没有被logging的一个原因可能是(不同的)乱舞事件的最大允许数量的限制。 正如在这个答案中所解释的,限制是300个自定义事件。 如果达到此限制,Flurry系统将忽略新事件,不幸的是,这个问题将不会在Xcode日志中显示。

如果这是你的问题的根源,这里有一些build议:

  1. 摆脱不再需要的事件。 您可以在Flurrypipe理屏幕(pipe理→事件)中执行此操作。 注意:如果不与Flurry支持团队取得联系,则无法重新创build已删除的事件(请阅读此处 )。
  2. 重新devise你的Flurry事件。 对一组类似的操作最好使用一个不同的事件,并在参数字典中提供详细信息,而不是为每个操作创build新的(自定义)事件。