友盟统计
2017-07-16 本文已影响26人
井底蛙之呱呱
1.使用cocoapods集成UMengAnalytics
2.加入头文件
#import"UMMobClick/MobClick.h"
3.在APPdelegate实现
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
UMConfigInstance.appKey=@"595dd699ae1bf860a0000599";
UMConfigInstance.channelId=@"App Store";
//UMConfigInstance.eSType = E_UM_GAME; //仅适用于游戏场景,应用统计不用设置
[MobClickstartWithConfigure:UMConfigInstance];//配置以上参数后调用此方法初始化SDK!
[MobClickprofileSignInWithPUID:@"playerID"];
returnYES;
}