使用Google Analytics for iOS SDK 2.0b3时,事件丢失 [英] Events lost when using Google Analytics for iOS SDK 2.0b3

查看:74
本文介绍了使用Google Analytics for iOS SDK 2.0b3时,事件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将Google Analytics iOS SDK v2 实施到了 iOS应用的数目中,并且我注意到了现在正在产生的报告中有一些看似很大的差异。我主要担心的是,我的跟踪ID的总计事件数大约低于我的内部指标显示的应该是 50%。我花了一些时间试图清除可能出现的问题。

首先,我认为我可能没有在应用内对Google进行跟踪调用,但所有这些都已检出。接下来我测试了一些理论,即指标并不是通过网络从本地数据库中提取出来的。虽然设置wireshark来监视网络流量,但这似乎也正常工作。接下来,我试图更缓慢地处理这些事件,因为我认为这可能是事件在短时间间隔内被触发,可能是问题。在将事件触发速度减慢到每秒最多1次,然后进一步减至每3秒最多1次之后,在监视我的测试时,我仍然看到大约 50%的事件损失Web UI中的会话。此外,在我生成的报告中,哪些事件将会丢失似乎有点随意。



以下是有关我的分析配置的其他信息:




  • 60s的发货间隔
  • 手动启动会话

  • 使用多个追踪器
  • >


奇怪的是,相同应用的Android版本没有出现相同的问题。



如果任何人有类似的经验或有任何建议,他们将不胜感激。

解决方案

在与Google Analytics小组联系后,他们证实beta SDK 3和4的iOS SDK有一个错误,它负责我看到的漏报。


I have recently implemented the Google Analytics iOS SDK v2 into a number of iOS apps, and I have noticed that there are some seemingly large discrepancies in the reporting that is now being generated. My main concern is that the total event count for my tracking ID is about 50% lower than what my internal metrics suggest it should be. I have spent some time trying to weed out possible issues.

First I thought I might not have been making the tracking calls to Google from within the app, but those all checked out. Next I tested the theory that the metrics weren't making it from the local database out over the network. After setting up wireshark to monitor the network traffic though, this too seemed to be working properly. Next I tried processing the events more slowly as I thought that it might have been the fact that events are fired in short time intervals that might be the problem. After slowing the event fire rate to at most 1 per second and then further to at most 1 per 3 seconds, I was still seeing a roughly 50% event loss when monitoring my test sessions in the web UI. Also, it seemed somewhat random which events would be dropped in the reports that I generated.

Here is some other info about my analytics configuration:

  • Dispatch interval of 60s
  • Manually starting sessions
  • Using multiple trackers

Strangely, the android versions of the same apps are not exhibiting the same issue.

If anyone has had similar experience or has any suggestions they would be greatly appreciated.

解决方案

After reaching out to the Google Analytics team, they confirmed that betas 3 and 4 of the iOS SDKs have a bug that is responsible for the underreporting that I'm seeing.

这篇关于使用Google Analytics for iOS SDK 2.0b3时,事件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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