没有SSL的Google Analytics(iOS SDK) [英] Google Analytics (iOS SDK) without SSL

查看:105
本文介绍了没有SSL的Google Analytics(iOS SDK)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用最新的iOS版Google Analytics(分析)SDK,当我与GA的服务器进行通信时,我遇到了问题。
由于不同的原因,我需要在2000年为iOS设备(ios7.1)配置日期。
不幸的是,当GA的SDK尝试发送跟踪的事件时,GA的服务器拒绝他们的SSL问题(似乎GA的证书每3个月更新一次......)

有没有办法强制GA的SDK使用HTTP或假发送日期?



感谢所有人。

解决方案

使用https,在获得跟踪器后将以下代码添加到代码中:

  //使用HTTP发送匹配(默认值= HTTPS )。 
[tracker set:kGAIUseSecure value:[@ NO stringValue]];

请参阅第5项: https://developers.google.com/analytics/devguides/collection/ios/v3/migration


I'm using the latest SDK of Google Analytics for iOS and I'm facing a problem when I communicate with GA's server. For different reasons, I need my iOS device (ios7.1) to be configured with a date in the year 2000. Unfortunately, when the GA's SDK try to send the events tracked, the GA's server refuse them for a SSL problem (it seems that the GA's certificates are renewed each 3 months...)

Is there a way to force the GA's SDK to use HTTP or to fake the date sent ?

Thanks all.

解决方案

To disable the use of https, add the following to your code after getting a tracker:

// Send hits using HTTP (default=HTTPS).
[tracker set:kGAIUseSecure value:[@NO stringValue]];

See item 5 here: https://developers.google.com/analytics/devguides/collection/ios/v3/migration

这篇关于没有SSL的Google Analytics(iOS SDK)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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