当没有网络连接时,iphone谷歌分析调用会发生什么?

时间:2021-08-26 14:20:10

Hey Fellow Developers! I'm doing a little research about Analytics products for iphone apps. I came across google analytics which seems pretty good. Somehow I'm not finding lot's of documentation about it. Basically my concern is:

嘿,各位开发人员!我正在做一些关于iphone应用分析产品的研究。我遇到了谷歌分析,看起来很不错。不知何故,我没有找到很多关于它的文档。基本上我关心的是:

What happens to a trackPageview or event tracking call when there's no Internet connection? Are these method calls persisted for future dispatch when there's a connection available or do they generate an error and that's it?

当没有网络连接时,trackPageview或事件跟踪调用会发生什么?当有连接可用时,这些方法调用是否为将来的调度而持续?或者它们是否会产生错误?

Thank you in advance for your help!

预先感谢您的帮助!

3 个解决方案

#1


3  

The GA SDK has batching possibility, which is als recommended to use.

GA SDK有批量生产的可能性,推荐使用als。

"To save on connection and battery overhead, we recommend batching your tracking requests. You can call dispatch on the tracking object any time you want to make a batch request, and you can do this either manually or at specific time intervals."

“为了节省连接和电池开销,我们建议您批量跟踪请求。您可以在任何时候调用跟踪对象的dispatch,您想要发出批处理请求,您可以手动或在特定的时间间隔进行此操作。

http://code.google.com/intl/de-DE/mobile/analytics/docs/iphone/

http://code.google.com/intl/de-DE/mobile/analytics/docs/iphone/

#2


6  

According to Google. Their documentation says

据谷歌。他们的文档

If a user loses network access or quits your app while there are still hits waiting to be dispatched, those hits are persisted in local storage. They will be dispatched the next time your app is running and dispatch is called.

如果用户在仍有点击等待发送时失去网络访问或退出您的应用程序,这些点击将保存在本地存储中。它们将在下次应用程序运行和分派被调用时被分派。

You can read more about how disptaching takes place at: https://developers.google.com/analytics/devguides/collection/ios/v2/dispatch

你可以在https://developers.google.com/analytics/devguides/collection/ios/v2/dispatch网站上阅读更多关于驱魔的内容

#3


0  

Some of the other services out there are very robust with their batching. Localytics (www.localytics.com) has a free library which is open source so you can see how they batch. If the connection isn't available then the data is stored on the device until the next session when there is a connection.

其他的一些服务都是非常健壮的。Localytics (www.localytics.com)有一个开放源码的免费库,你可以看到他们是如何进行批处理的。如果连接不可用,那么数据将存储在设备上,直到有连接的下一个会话。

-- Henry

——亨利。

#1


3  

The GA SDK has batching possibility, which is als recommended to use.

GA SDK有批量生产的可能性,推荐使用als。

"To save on connection and battery overhead, we recommend batching your tracking requests. You can call dispatch on the tracking object any time you want to make a batch request, and you can do this either manually or at specific time intervals."

“为了节省连接和电池开销,我们建议您批量跟踪请求。您可以在任何时候调用跟踪对象的dispatch,您想要发出批处理请求,您可以手动或在特定的时间间隔进行此操作。

http://code.google.com/intl/de-DE/mobile/analytics/docs/iphone/

http://code.google.com/intl/de-DE/mobile/analytics/docs/iphone/

#2


6  

According to Google. Their documentation says

据谷歌。他们的文档

If a user loses network access or quits your app while there are still hits waiting to be dispatched, those hits are persisted in local storage. They will be dispatched the next time your app is running and dispatch is called.

如果用户在仍有点击等待发送时失去网络访问或退出您的应用程序,这些点击将保存在本地存储中。它们将在下次应用程序运行和分派被调用时被分派。

You can read more about how disptaching takes place at: https://developers.google.com/analytics/devguides/collection/ios/v2/dispatch

你可以在https://developers.google.com/analytics/devguides/collection/ios/v2/dispatch网站上阅读更多关于驱魔的内容

#3


0  

Some of the other services out there are very robust with their batching. Localytics (www.localytics.com) has a free library which is open source so you can see how they batch. If the connection isn't available then the data is stored on the device until the next session when there is a connection.

其他的一些服务都是非常健壮的。Localytics (www.localytics.com)有一个开放源码的免费库,你可以看到他们是如何进行批处理的。如果连接不可用,那么数据将存储在设备上,直到有连接的下一个会话。

-- Henry

——亨利。