Skip to content

sodastsai/mixpanel-iphone

 
 

Repository files navigation

Build Status

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'
  1. 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.
  2. Add the following to your AppDelegate.m:
#import <Mixpanel/Mixpanel.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [Mixpanel sharedInstanceWithToken:MIXPANEL_TOKEN];
}
  1. Start tracking actions in your app:
[[Mixpanel sharedInstance] track:@"Watched video" properties:@{@"duration": @53}];

Want to Contribute?

The Mixpanel library for iOS is an open source project, and we'd love to see your contributions! We'd also love for you to come and work with us! Check out http://boards.greenhouse.io/mixpanel/jobs/25226#.U_4JXEhORKU for details.

Check out the full documentation »

About

iPhone tracking library for Mixpanel Analytics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 99.0%
  • Other 1.0%