简体   繁体   English

如何从Google Analytics(分析)向iOS进行身份验证和获取报告

[英]How to Authenticate and Get Reports from Google Analytics to iOS

How to Authenticate and Get Reports from Google Analytics to my custom iphone application. 如何从Google Analytics(分析)身份验证和获取报告到我的自定义iphone应用程序。

I just want to Authenticate the User and get the registered URLs from Google Analytics. 我只想验证用户身份并从Google Analytics(分析)获取注册的URL。

You need to use GData Static library for Objective-C 您需要将GData静态库用于Objective-C

you can find it here: 你可以在这里找到它:

https://github.com/google/google-api-objectivec-client https://github.com/google/google-api-objectivec-client

You can see that one of the links is for analytics. 您可以看到其中一个链接用于分析。

Here you can find a good tutorial for linking the library: 在这里,您可以找到一个很好的链接库的教程:

Kelvin's blog - GData Objective-C Client Setup in Xcode 4 Kelvin的博客-Xcode 4中的GData Objective-C客户端设置

If you are using ARC, here is an update for the Header files so you can integrate them in your project with out getting ARC warnings: 如果您使用的是ARC,这是Header文件的更新,因此您可以在不收到ARC警告的情况下将它们集成到项目中:

Updating Gdata library for ARC 更新ARC的Gdata库

And this is a simplified explanation I made for the ARC problem: 这是我为ARC问题所做的简化解释:

explanation on the update 更新说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM