fix:1、更换项目,使用winter来创建
This commit is contained in:
@@ -25,10 +25,10 @@ static EventMark *sharedInstance = nil;
|
||||
// 初始化 DataEyeSDK 的方法
|
||||
- (void)initDataEyeSDK {
|
||||
|
||||
NSLog(@"barry initDataEyeSDK-------");
|
||||
// NSLog(@"barry initDataEyeSDK-------");
|
||||
DEConfig *config = [[DEConfig alloc] init];
|
||||
config.appid = @"13182";
|
||||
config.configureURL = @"https://laz.flowerlazypower.fun";
|
||||
config.appid = @"13355";
|
||||
config.configureURL = @"https://yu.frozenarena.top";
|
||||
config.debugMode = DataEyeDebug;
|
||||
DataEyeSDK * instance = [DataEyeSDK startWithConfig:config];
|
||||
|
||||
@@ -49,7 +49,12 @@ static EventMark *sharedInstance = nil;
|
||||
};
|
||||
[instance setSuperProperties:superProperties];
|
||||
|
||||
[instance enableAutoTrack:DataEyeEventTypeAppInstall | DataEyeEventTypeAppStart | DataEyeEventTypeAppEnd];
|
||||
[instance enableAutoTrack:DataEyeEventTypeAppStart |//APP 启动事件,记录 APP 启动或从后台恢复
|
||||
DataEyeEventTypeAppInstall |//APP 安装,记录 APP 被安装的日志
|
||||
DataEyeEventTypeAppEnd |//APP 关闭事件,记录 APP 调入后台
|
||||
DataEyeEventTypeAppViewScreen |//APP 浏览页面事件
|
||||
DataEyeEventTypeAppClick |//APP 点击控件事件
|
||||
DataEyeEventTypeAppViewCrash];//APP 崩溃事件
|
||||
|
||||
// NSDictionary *eventProperties = @{@"new_head": @"100"};
|
||||
// [instance track:@"product_buy" properties:eventProperties];
|
||||
@@ -68,21 +73,6 @@ static EventMark *sharedInstance = nil;
|
||||
// [self.dataEyeInstance track:@"test_event" properties:eventProperties];
|
||||
//}
|
||||
|
||||
-(void)trackProduct:(NSString *)eventName dictionaryJson:(NSString *)dictionaryJson;
|
||||
{
|
||||
// NSLog(@"barry trackProduct eventName=== %@",eventName);
|
||||
NSError *error;
|
||||
NSData *data = [dictionaryJson dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error];
|
||||
|
||||
|
||||
NSDictionary *eventProperties = dictionary;
|
||||
[self.dataEyeInstance track:eventName properties:eventProperties];
|
||||
|
||||
|
||||
|
||||
// 处理接收到的字典
|
||||
// NSLog(@"barry trackProduct dictionary=== %@", dictionary);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user