Commit c14101c7 cgx

新增安睡准备数据埋点

1 个父辈 1de59d13
......@@ -31,11 +31,13 @@ FOUNDATION_EXTERN NSString * const Audio_Detail;
/// 用户反馈意见
FOUNDATION_EXTERN NSString * const SuggestFeedback;
/// 邀请好友
FOUNDATION_EXTERN NSString * const inviteFriends;
FOUNDATION_EXTERN NSString * const InviteFriends;
/// 功能选择(首次进入首页弹框选择功能)
FOUNDATION_EXTERN NSString * const Function_Option;
/// 放松训练
FOUNDATION_EXTERN NSString * const RelaxTrain;
/// 安睡准备
FOUNDATION_EXTERN NSString * const SleepReadyEvent;
#pragma mark - 友盟自定义异常
FOUNDATION_EXTERN NSString * const H5Monitor;
......
......@@ -19,9 +19,10 @@ NSString * const Apple_Login = @"Apple_Login";
NSString * const User_Info = @"User_Info";
NSString * const Audio_Detail = @"Audio_Detail";
NSString * const SuggestFeedback = @"SuggestFeedback";
NSString * const inviteFriends = @"inviteFriends";
NSString * const InviteFriends = @"inviteFriends";
NSString * const Function_Option = @"Function_Option";
NSString * const RelaxTrain = @"RelaxTrain";
NSString * const SleepReadyEvent = @"SleepReadyEvent";
NSString * const H5Monitor = @"H5Monitor";
......
......@@ -39,6 +39,8 @@
[self.backBtn dk_setImage:DKImagePickerWithNames(@"sys_back_icon", @"sys_back_icon", @"sys_back_icon") forState:UIControlStateNormal];
[self queryPreparePeaceListRequest];
[DataStatisticsUtil event:SleepReadyEvent attributes:@{@"name":@"设置睡前安排页面"}];
}
- (void)queryPreparePeaceListRequest {
......
......@@ -40,6 +40,8 @@
[self queryRelaxWhiteNoiseType];
// 获取睡前准备任务items数据
[self getUserPrepareSleepItemsRequest];
[DataStatisticsUtil event:SleepReadyEvent attributes:@{@"name":@"安睡准备页面"}];
}
- (void)queryRelaxWhiteNoiseType {
......@@ -93,6 +95,7 @@
self.setBtn.hidden = YES;
self.startReadyView.hidden = YES;
[self.readyItemView startWithItems:self.adjustedItems];
[DataStatisticsUtil event:SleepReadyEvent attributes:@{@"name":@"开始仪式"}];
}
#pragma mark - ReadyItemViewDelegate
......
......@@ -61,6 +61,7 @@
if (self.enterBtn.selected) {
// 提前结束
[self updateUserSetupPreparePeaceStatusRequest];
[DataStatisticsUtil event:SleepReadyEvent attributes:@{@"name":@"提前结束"}];
} else {
// 手动点击进入下一项
[self dealStartNextItem:NO];
......@@ -77,6 +78,7 @@
self.enterBtn.selected = YES;
if (isAuto) {
[self updateUserSetupPreparePeaceStatusRequest];
[DataStatisticsUtil event:SleepReadyEvent attributes:@{@"name":@"自动结束"}];
}
} else {
if (isAuto) {
......
......@@ -87,7 +87,7 @@
} else if (sender.tag == 3) {
step = @"点击QQ好友分享按钮";
}
[DataStatisticsUtil event:inviteFriends attributes:@{@"step":step}];
[DataStatisticsUtil event:InviteFriends attributes:@{@"step":step}];
if (self.delegate && [self.delegate respondsToSelector:@selector(didClickShareBtnWithIndex:shareSource:)]) {
[self.delegate didClickShareBtnWithIndex:(int)sender.tag shareSource:self.shareSource];
......@@ -97,7 +97,7 @@
- (void)cancelAction {
[self dismissShareAlertView];
[DataStatisticsUtil event:inviteFriends attributes:@{@"step":@"取消分享"}];
[DataStatisticsUtil event:InviteFriends attributes:@{@"step":@"取消分享"}];
}
- (void)tapAction:(UITapGestureRecognizer *)gesture {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!