Mixpanel是非常好用的移动数据统计分析工具。开发者通过调用相关接口,就可以访问MixPanel收集的目标APP的各种即时分析数据。该平台可以跟踪用户的评论数、订阅者数、like 次数、分享次数、页面浏览数量等。
Mixpanel is the most advanced analytics platform for mobile & web. Instead of measuring pageviews, it helps you analyze the actions people take in your application. An action can be anything - someone uploading a picture, playing a video, or sharing a post, for example.
添加Mixpanel
首先注册Mixpanel账号并获取token。
Xcode工程添加Mixpanel文件,推荐使用CocoaPods来添加Mixpanel:
platform :ios, '7.0'
pod 'Mixpanel'
然后,在工程的AppDelegate.m中的didFinishLaunchingWithOptions函数中初始化mixpanel的单例实例,