argenisf/new-mp-iphone


test

License: Apache-2.0

Language: Objective-C


Build Status Cocoapods Version Carthage compatible Apache License

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.

Painless Installation (CocoaPods)

Mixpanel supports Cocoapods for easy installation. To Install, see our full documentation »

Carthage

Mixpanel also supports Carthage to package your dependencies as a framework. Check out the Carthage docs » for more info.

Manual Installation

To help users stay up to date with the latests version of our iOS SDK, we always recommend integrating our SDK via CocoaPods, which simplifies version updates and dependency management. However, there are cases where users can't use CocoaPods. Not to worry, just follow these manual installation steps and you'll be all set.

Step 1: Clone the SDK

Git clone the latest version of "mixpanel-iphone" to your local machine using the following code in your terminal:

git clone https://github.com/mixpanel/mixpanel-iphone.git

If you don't have git installed, get it here.

Step 2: Add the SDK to your app!

Add the "Mixpanel" folder from the "mixpanel-iphone" to your XCode project's folder:

alt text

And drag and drop the Mixpanel folder into your XCode Project Workspace:

alt text

Step 3: Import All dependencies

Add all dependencies of the Mixpanel SDK to your app. The full list of necessary frameworks and libraries on lines 16-17 in the "Mixpanel.podspec" file in the "mixpanel-iphone" directory:

alt text

Step 4: Integrate!

Import "Mixpanel.h" into AppDelegate.m, and initialize Mixpanel within application:didFinishLaunchingWithOptions:

alt text

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [Mixpanel sharedInstanceWithToken:MIXPANEL_TOKEN];
}

Start tracking

You're done! You've successfully integrated the Mixpanel SDK into your app. To stay up to speed on important SDK releases and updates, subscribe to the mp-dev Google group or watch the iPhone repository on Github.

Have any questions? Reach out to [email protected] to speak to someone smart, quickly.

Project Statistics

Sourcerank 4
Repository Size 5.13 MB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 49
Tags 50
Created
Last updated
Last pushed

Top Contributors See all

Alex Hofsteede Neil Rahilly Kyle Warren Sam Green Oliver Jones Kasra Kyanzadeh Elfred Pagan Rob Zyskowski Victor Ilyukevich Simone Manganelli Evan Purcer Adam Lickel Cœur Carl Sverre Daniel (dB.) Doubrovkine Tim Trefren Graham Mueller Ian Paterson Joe Bowers Adam Wulf

Recent Tags See all

v2.9.0 October 17, 2015
v2.8.3 August 26, 2015
v2.8.2 July 17, 2015
v2.8.1 May 13, 2015
v2.8.0 May 06, 2015
v2.7.4 May 06, 2015
v2.7.3 March 24, 2015
v2.7.2 February 06, 2015
v2.7.1 January 29, 2015
v2.7.0 January 28, 2015
v2.6.2 December 05, 2014
2.6.2 December 05, 2014
v2.6.1 December 03, 2014
v2.6.0 November 26, 2014
v2.5.4 October 08, 2014

Something wrong with this page? Make a suggestion

Last synced: 2016-10-13 05:25:23 UTC

Login to resync this repository