# mixpanel-iphone **Repository Path**: mirrors_Asana/mixpanel-iphone ## Basic Information - **Project Name**: mixpanel-iphone - **Description**: iPhone tracking library for Mixpanel Analytics - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/mixpanel/mixpanel-iphone.svg?branch=yolo-travis-ci)](https://travis-ci.org/mixpanel/mixpanel-iphone) [![Cocoapods Version](http://img.shields.io/cocoapods/v/Mixpanel.svg?style=flat)](https://mixpanel.com) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Apache License](http://img.shields.io/cocoapods/l/Mixpanel.svg?style=flat)](https://mixpanel.com) **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 »](https://mixpanel.com/help/reference/ios)** # Carthage Mixpanel also supports `Carthage` to package your dependencies as a framework. Check out the **[Carthage docs »](https://github.com/Carthage/Carthage)** 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](http://git-scm.com/downloads). ##Step 2: Add the SDK to your app! Add the "Mixpanel" folder from the "mixpanel-iphone" to your XCode project's folder: ![alt text](http://images.mxpnl.com/blog/2014-09-24%2000:56:07.905215-SprityBird_and_mixpanel-iphone.png) And drag and drop the Mixpanel folder into your XCode Project Workspace: ![alt text](http://images.mxpnl.com/blog/2014-09-24%2001:08:51.474250-AppDelegate_m_and_SprityBird.png) ##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](http://images.mxpnl.com/blog/2014-09-24%2001:32:27.445697-1__vim_and_spritybird_and_Mixpanel_-_Agent_and_spritybird.png) ## Step 4: Integrate! Import "Mixpanel.h" into AppDelegate.m, and initialize Mixpanel within `application:didFinishLaunchingWithOptions:` ![alt text](http://images.mxpnl.com/blog/2014-09-24%2001:19:19.598858-AppDelegate_m.png) ``` - (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](https://groups.google.com/forum/?fromgroups#!forum/mp-dev) or watch the iPhone repository on [Github](https://github.com/mixpanel/mixpanel-iphone). Have any questions? Reach out to [support@mixpanel.com](mailto:support@mixpanel.com) to speak to someone smart, quickly.