Google Analytics SDK iPhone App

Tracking mobile use is now part and parcel of good web analytics, provided people use the mobile browser to reach your landing pages and surf your site. Some programs for tracking social media metrics make this process more intuitive than others.

To get going with Google’s Analytics SDK for your iPhone app, simply follow these steps:

  1. Download the iOS Developer SDK.

    You must have Xcode 3.1 or greater and run Mac OS X 10.5.3 or greater.

  2. Download Google Analytics for Mobile Apps iOS SDK.

  3. Create a new iPhone OS project inside Xcode.

  4. Move (drag) GANTracker.h and libGoogleAnalytics.a out of the SDK Library directory and into your new project.

  5. Make sure that you include CFNetwork framework in your new
    project.

  6. Link against libsqlite3.0.dylib by scrolling through the list of Frameworks using Add Existing Framework feature and then clicking that library to add to your project.

  7. After you add the code using the preceding steps, initialize the tracker with the UA-xxxxxx-xx Google Analytics ID for the account.

Grab the downloads you need to work with Google Analytics SDK for iOS and for instruction on some of the more advanced features.

blog comments powered by Disqus
Advertisement

Inside Dummies.com