iosgoogle-analyticsgoogle-analytics-apigdata-api

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.

I just want to Authenticate the User and get the registered URLs from Google Analytics.


Solution

  • You need to use GData Static library for Objective-C

    you can find it here:

    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

    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:

    Updating Gdata library for ARC

    And this is a simplified explanation I made for the ARC problem:

    explanation on the update