jmont / mixpanel-iphone

iPhone tracking library for Mixpanel Analytics

Home Page:http://mixpanel.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick start

  1. Install CocoaPods with gem install cocoapods.

  2. Create a file in your XCode project called Podfile and add the following line:

     pod 'Mixpanel'
    
  3. Run pod install in your xcode project directory. CocoaPods should download and install the Mixpanel library, and create a new Xcode workspace. Open up this workspace in Xcode.

  4. Add the following to your AppDelegate.m:

     #import <Mixpanel/Mixpanel.h>
    
     - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
         [Mixpanel sharedInstanceWithToken:MIXPANEL_TOKEN];
     }
    
  5. Start tracking actions in your app:

     [[Mixpanel sharedInstance] track:@"Watched video" properties:@{@"duration": @53}];
    

Check out the full documentation »

About

iPhone tracking library for Mixpanel Analytics

http://mixpanel.com

License:Other


Languages

Language:Objective-C 99.9%Language:Ruby 0.1%