解析分析不跟踪自定义事件 [英] Parse analytics not tracking custom events

查看:85
本文介绍了解析分析不跟踪自定义事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Parse来跟踪我的项目的一些自定义事件。在我刚刚使用的第一个版本上:

I was using Parse to track some custom events for my project. On the first version I had I was just using:

[PFAnalytics trackEvent: @"Some event string"];  // This works

但后来我决定追踪更多活动,特别是应用内购买,所以我用这样的字典创建了一些字典:

But then I decided to put track more events, specially In-App purchases, so I created a few more with a dictionary like so:

NSDictionary *dict = @{
              @"Item name" : itemName,
              @"Price" : priceString };

[PFAnalytics trackEvent:@"User Purchase" dimensions:dict];

但不知何故,即使在发布第二个版本之后,此事件也没有出现在我的仪表板上,但是 @某些事件字符串事件确实如此。有什么我做错了吗?

But somehow even after shipping the second version this event doesn't show up on my dashboard, but the @"Some event string" event does. Is there anything I'm doing wrong?

我已经检查了维度词典的键和值,但一切似乎都没问题,我甚至试图做a 用户购买没有维度的事件,但它也不起作用。

I've checked keys and values for the dimensions dictionary but everything appears to be Ok, And I've even tried to do a "User Purchase" event without dimensions, but it doesn't work either.

似乎这些代码非常简单,我的配置里面的东西是Parse。但后来我无法解释为什么第一个事件继续有效, PFAnalytics 类是否有错误?

It seems that these code is so simple that something in my config inside Parse. But then I can't explain why does the first event kept working, can the PFAnalytics class have a bug?

更新:
似乎我不熟悉仪表板功能,我的事件正在被录制。您必须进入自定义细分才能查看自定义事件。现在我可以看到我的活动。

Update: It seems I was not familiar with the dashboard functionality and my events were being recorded. You have to go into "Custom Breakdown" in order to see your custom events. Now I can see my events.

推荐答案

我想我找到了一个解决方案:
在仪表板内不是很明显。我发现了另一个类似的问题,我回答了
那里

I think I found a solution: It's not very obvious within the dashboard. I found another similar question and I answered there

这篇关于解析分析不跟踪自定义事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆