友盟统计

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;

}

你可能感兴趣的:(友盟统计)