diff --git a/YuMi/CustomUI/InputView/InputView/QInputBarView.m b/YuMi/CustomUI/InputView/InputView/QInputBarView.m index c11dd473..ee53adee 100755 --- a/YuMi/CustomUI/InputView/InputView/QInputBarView.m +++ b/YuMi/CustomUI/InputView/InputView/QInputBarView.m @@ -348,7 +348,7 @@ const int UIInputTextViewMaxHeight = 147; }]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_voice_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_voice_click]; if ([self.delegate respondsToSelector:@selector(inputBarView:onVoiceSwitchButtonClick:)]) { [self.delegate inputBarView:self onVoiceSwitchButtonClick:sender]; @@ -377,7 +377,7 @@ const int UIInputTextViewMaxHeight = 147; }]; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_emoticon_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_emoticon_click]; if ([self.delegate respondsToSelector:@selector(inputBarView:onEmotionButtonClick:)]) { [self.delegate inputBarView:self onEmotionButtonClick:sender]; } @@ -394,7 +394,7 @@ const int UIInputTextViewMaxHeight = 147; } - (void)photoButtonAction:(UIButton *)sender { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_photo_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_photo_click]; sender.selected = !sender.selected; if (self.delegate && [self.delegate respondsToSelector:@selector(inputBarView:onPhototButtonClick:)]) { [self.delegate inputBarView:self onPhototButtonClick:sender]; @@ -402,14 +402,14 @@ const int UIInputTextViewMaxHeight = 147; } - (void)giftButtonAction:(UIButton *)sender { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_gift_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_gift_click]; if (self.delegate && [self.delegate respondsToSelector:@selector(inputBarView:onGiftButtonClick:)]) { [self.delegate inputBarView:self onGiftButtonClick:sender]; } } - (void)camerButtonAction:(UIButton *)sender { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_camera_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_camera_click]; if (self.delegate && [self.delegate respondsToSelector:@selector(inputBarView:onCameraButtonClick:)]) { [self.delegate inputBarView:self onCameraButtonClick:sender]; } @@ -545,7 +545,7 @@ const int UIInputTextViewMaxHeight = 147; self.emotionSwitchButton.selected = NO; self.voiceSwitchButton.selected = NO; self.extendSwitchButton.selected = NO; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_input_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_input_click]; return YES; } diff --git a/YuMi/Modules/YMLogin/View/LoginFullInfoViewController.m b/YuMi/Modules/YMLogin/View/LoginFullInfoViewController.m index 79b19d79..92bbc4fd 100644 --- a/YuMi/Modules/YMLogin/View/LoginFullInfoViewController.m +++ b/YuMi/Modules/YMLogin/View/LoginFullInfoViewController.m @@ -365,7 +365,7 @@ } - (void)complementInfoSuccess { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginRepariSuccess]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginRepariSuccess]; ///需要重新加载一次 ticket 刷新tabbar的item [[AccountInfoStorage instance] saveTicket:nil]; diff --git a/YuMi/Modules/YMLogin/View/NewLogin/XPLoginViewController.m b/YuMi/Modules/YMLogin/View/NewLogin/XPLoginViewController.m index ac9b7723..f1bb4510 100644 --- a/YuMi/Modules/YMLogin/View/NewLogin/XPLoginViewController.m +++ b/YuMi/Modules/YMLogin/View/NewLogin/XPLoginViewController.m @@ -446,7 +446,7 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy"; if (self.agreeBtn.isSelected) { XPLoginPhoneViewController *phoneVC = [[XPLoginPhoneViewController alloc] init]; [self.navigationController pushViewController:phoneVC animated:YES]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginPhoneClick]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginPhoneClick]; } else { [UIView animateWithDuration:0.5 animations:^{ self.authBubbleView.alpha = 1.0; @@ -459,7 +459,7 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy"; if (self.agreeBtn.isSelected) { XPLoginPhoneViewController *phoneVC = [[XPLoginPhoneViewController alloc] init]; [self.navigationController pushViewController:phoneVC animated:YES]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginPhoneClick]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginPhoneClick]; } else { [UIView animateWithDuration:0.5 animations:^{ self.authBubbleView.alpha = 1.0; diff --git a/YuMi/Modules/YMMessage/View/SayHello/View/XPSessionSayHelloViewController.m b/YuMi/Modules/YMMessage/View/SayHello/View/XPSessionSayHelloViewController.m index 16a78ec2..5042566e 100644 --- a/YuMi/Modules/YMMessage/View/SayHello/View/XPSessionSayHelloViewController.m +++ b/YuMi/Modules/YMMessage/View/SayHello/View/XPSessionSayHelloViewController.m @@ -129,7 +129,7 @@ - (void)XPSessionSayHelloHeaderView:(XPSessionSayHelloHeaderView *)view didChangeValue:(UISwitch *)switchView { [self.presenter shuntEnable:switchView.on]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_user_greetings_switch_click eventAttributes:@{@"enable":@(switchView.on)}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_user_greetings_switch_click eventAttributes:@{@"enable":@(switchView.on)}]; } #pragma mark - XPSessionSayHelloProtocol @@ -205,7 +205,7 @@ } dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_user_greetings_chat_click eventAttributes:@{@"uid": toUid}]; + //// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_user_greetings_chat_click eventAttributes:@{@"uid": toUid}]; SessionViewController * sessionVC = [[SessionViewController alloc] initWithSession:session]; [self.navigationController pushViewController:sessionVC animated:YES]; }); diff --git a/YuMi/Modules/YMMessage/View/Session/Cell/MessageCell.m b/YuMi/Modules/YMMessage/View/Session/Cell/MessageCell.m index 2c21b7fe..0e507439 100644 --- a/YuMi/Modules/YMMessage/View/Session/Cell/MessageCell.m +++ b/YuMi/Modules/YMMessage/View/Session/Cell/MessageCell.m @@ -169,7 +169,7 @@ -(void)menuCopyBtnPressed:(UIMenuItem *)menuItem { [UIPasteboard generalPasteboard].string = self.currentMessage.text; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_copy_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_copy_click]; } - (void)menuDeleteCopyBtnPressed:(UIMenuItem *)menuItem { @@ -179,11 +179,11 @@ if (self.delegate && [self.delegate respondsToSelector:@selector(deleteMessageSuccess:)]) { [self.delegate deleteMessageSuccess:self.currentMessage]; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_delete_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_delete_click]; } - (void)menuRevokeBtnPressed:(UIMenuItem *)menuItem { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_revocation_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_revocation_click]; if (self.currentMessage) { NIMRevokeMessageOption * option = [[NIMRevokeMessageOption alloc] init]; option.shouldBeCounted = NO; diff --git a/YuMi/Modules/YMMessage/View/Session/Cell/SessionUserInfoTableViewCell.m b/YuMi/Modules/YMMessage/View/Session/Cell/SessionUserInfoTableViewCell.m index 152feb83..396e197f 100644 --- a/YuMi/Modules/YMMessage/View/Session/Cell/SessionUserInfoTableViewCell.m +++ b/YuMi/Modules/YMMessage/View/Session/Cell/SessionUserInfoTableViewCell.m @@ -231,7 +231,7 @@ browser.currentImageIndex = indexPath.row; browser.isMe = NO; [browser show]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_photo_click]; + //// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_photo_click]; } } @@ -247,7 +247,7 @@ #pragma mark - Event Response - (void)avatarImageViewRecognizer { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_frame_datacard_head_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_frame_datacard_head_click]; if (self.delegate && [self.delegate respondsToSelector:@selector(sessionUserInfoTableViewCell:showUserInfoVC:)]) { [self.delegate sessionUserInfoTableViewCell:self showUserInfoVC:self.userInfo]; } diff --git a/YuMi/Modules/YMMessage/View/Session/SessionInfoViewController.m b/YuMi/Modules/YMMessage/View/Session/SessionInfoViewController.m index 4144bdf3..8deec04d 100644 --- a/YuMi/Modules/YMMessage/View/Session/SessionInfoViewController.m +++ b/YuMi/Modules/YMMessage/View/Session/SessionInfoViewController.m @@ -88,7 +88,7 @@ if (self.datasource.count > 0) { SessionSettingModel * model = [self.datasource xpSafeObjectAtIndex:indexPath.row]; if (model.settingType == SessionSettingType_report) { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_report_click]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_report_click]; XPWebViewController *webVC = [[XPWebViewController alloc] initWithRoomUID:nil]; webVC.url = [NSString stringWithFormat:@"%@?reportUid=%ld&source=CHAT", URLWithType(kReportRoomURL), @@ -102,7 +102,7 @@ - (void)sessionSettingTableViewCell:(SessionSettingModel *)item switchState:(UISwitch *)switchOn { NSString * userId = [NSString stringWithFormat:@"%ld",self.userInfo.uid]; if (item.settingType == SessionSettingType_Top) { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_top_click]; + //// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_top_click]; if (switchOn.on) { NIMAddStickTopSessionParams * params = [[NIMAddStickTopSessionParams alloc] initWithSession:self.session]; [[NIMSDK sharedSDK].chatExtendManager addStickTopSession:params completion:^(NSError * _Nullable error, NIMStickTopSessionInfo * _Nullable newInfo) { @@ -132,7 +132,7 @@ } } } else if (item.settingType == SessionSettingType_black) { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_blacklist_click]; + //// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_blacklist_click]; NSString *title = nil; NSString *message = nil; if (switchOn.on) { @@ -177,7 +177,7 @@ #pragma mark - Event Response - (void)didTapUserRecognizer { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_data_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_set_data_click]; XPMineUserInfoViewController * mineVC = [[XPMineUserInfoViewController alloc] init]; mineVC.uid = self.userInfo.uid; [self.navigationController pushViewController:mineVC animated:YES]; diff --git a/YuMi/Modules/YMMessage/View/Session/SessionViewController.m b/YuMi/Modules/YMMessage/View/Session/SessionViewController.m index 12808fe7..f5cc053f 100644 --- a/YuMi/Modules/YMMessage/View/Session/SessionViewController.m +++ b/YuMi/Modules/YMMessage/View/Session/SessionViewController.m @@ -571,7 +571,7 @@ } #pragma mark - SessionNavViewDelegate - (void)sessionNavView:(SessionNavView *)view didClickLike:(UIButton *)sender { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_fans_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_fans_click]; [self.presenter attentionUser:self.session.sessionId]; } @@ -592,7 +592,7 @@ } - (void)sessionNavView:(SessionNavView *)view didClickReport:(UIButton *)sender { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_set_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_toolbar_set_click]; SessionInfoViewController * reportVC = [[SessionInfoViewController alloc] init]; reportVC.session = self.session; reportVC.stickTopMessages = self.stickTopMessages; @@ -601,7 +601,7 @@ } - (void)sessionNavView:(SessionNavView *)view didRoomLive:(NSString *)roomUid { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_revocation_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEvent_chat_dialogue_revocation_click]; if (self.openType == SessionListOpenTypeDefault) { __block BOOL isSameRoom = NO; __block RoomInfoModel *roomModel; diff --git a/YuMi/Modules/YMMine/View/XPMineCollectRoomListViewController.m b/YuMi/Modules/YMMine/View/XPMineCollectRoomListViewController.m index 43a194ee..d87b91fc 100644 --- a/YuMi/Modules/YMMine/View/XPMineCollectRoomListViewController.m +++ b/YuMi/Modules/YMMine/View/XPMineCollectRoomListViewController.m @@ -67,7 +67,7 @@ static NSString *lastSelectTab = @"lastSelectTab"; [self initSubViews]; [self initSubViewConstraints]; // [self addNavigationItemWithItems:@[self.managerBtn] isLeft:NO]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_show]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_show]; } - (void)managerBtnAction:(UIButton *)sender { @@ -76,14 +76,14 @@ static NSString *lastSelectTab = @"lastSelectTab"; self.partyVC.isEdit = YES; self.anchorRoomListVC.isEdit = YES; self.bottomView.hidden = NO; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_click]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_click]; } else {//完成编辑 self.bottomView.hidden = YES; self.allSelectBtn.selected = NO; self.partyVC.isEdit = NO; self.anchorRoomListVC.isEdit = NO; self.allSelectBtn.selected = NO; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_complete_click]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_complete_click]; } } @@ -173,7 +173,7 @@ static NSString *lastSelectTab = @"lastSelectTab"; } else { self.anchorRoomListVC.isSelectAll = sender.selected; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_selectall_click]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_selectall_click]; } - (void)deleteBtnAction:(UIButton *)sender { @@ -204,7 +204,7 @@ static NSString *lastSelectTab = @"lastSelectTab"; [self showErrorToast:YMLocalizedString(@"XPMineCollectRoomListViewController3")]; } } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_delete_click]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_delete_click]; } #pragma mark XPMineCollectPartyRoomViewControllerDelegate @@ -326,7 +326,7 @@ static NSString *lastSelectTab = @"lastSelectTab"; NSNumber *index = [defaults objectForKey:lastSelectTab]; _titleView.defaultSelectedIndex = index.intValue; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_entry eventAttributes:@{@"defaultTab" : self.titles[index.intValue]}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_entry eventAttributes:@{@"defaultTab" : self.titles[index.intValue]}]; JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init]; lineView.indicatorImageViewSize = CGSizeMake(50, 8); diff --git a/YuMi/Modules/YMMine/View/XPMineViewController.m b/YuMi/Modules/YMMine/View/XPMineViewController.m index 60e8756b..4fec1017 100644 --- a/YuMi/Modules/YMMine/View/XPMineViewController.m +++ b/YuMi/Modules/YMMine/View/XPMineViewController.m @@ -139,8 +139,8 @@ UIKIT_EXTERN NSString *kRequestTicket; - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.isRefreshRoomInfo = NO; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_recharge_card_show]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_noble_card_show]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_recharge_card_show]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_noble_card_show]; if([AccountInfoStorage instance].isRequestTicket == NO) { [self getDataInfo]; @@ -462,7 +462,7 @@ UIKIT_EXTERN NSString *kRequestTicket; } if (indexPath.section != 2)return; XPMineFunctionItemModel *item = self.functionArray[indexPath.row]; -// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_function_click eventAttributes:@{@"functionName" : item.centerName}]; +////// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_function_click eventAttributes:@{@"functionName" : item.centerName}]; [self pushViewControllerWithType:item.skipType functionItem:item]; } ///跳转到公会 @@ -563,14 +563,14 @@ UIKIT_EXTERN NSString *kRequestTicket; ///点击了账户中心 - (void)xpMineHeadViewClickAccount { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_recharge_card_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_recharge_card_click]; [self pushViewControllerWithType:XPMineItemType_Account functionItem:nil]; } ///点击了VIP中心 - (void)xPMineHeadViewClickNobleCenter { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceMeClick]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_noble_card_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceMeClick]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_noble_card_click]; [self pushViewControllerWithType:XPMineItemType_Noble_Center functionItem:nil]; } @@ -608,7 +608,7 @@ UIKIT_EXTERN NSString *kRequestTicket; [array addObject:item.centerName]; } NSString *trackName = [array componentsJoinedByString:@","]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_function_show eventAttributes:@{@"functionName" : trackName}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_function_show eventAttributes:@{@"functionName" : trackName}]; #ifdef DEBUG XPMineFunctionItemModel *item = [XPMineFunctionItemModel new]; item.centerName = @"切换环境"; @@ -635,7 +635,7 @@ UIKIT_EXTERN NSString *kRequestTicket; [array addObject:item.bannerId]; } NSString *trackName = [array componentsJoinedByString:@","]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_banner_show eventAttributes:@{@"bannerId" : trackName}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_banner_show eventAttributes:@{@"bannerId" : trackName}]; [self.tableView reloadData]; } @@ -716,14 +716,14 @@ UIKIT_EXTERN NSString *kRequestTicket; #pragma mark - XPMineHeadItemTableViewCellDelegate - (void)xPMineHeadItemTableViewCell:(XPMineHeadItemTableViewCell *)cell didSelectItem:(XPMineFunctionItemModel *)item { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_function_click eventAttributes:@{@"functionName" : item.centerName}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_function_click eventAttributes:@{@"functionName" : item.centerName}]; [self pushViewControllerWithType:item.skipType functionItem:item]; } #pragma mark - XPHomeBannerTableViewCellDelegate ///点击了某个banner - (void)xPHomeBannerTableViewCell:(XPHomeBannerTableViewCell *)view didClickBanner:(HomeBannerInfoModel *)info { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_banner_click eventAttributes:@{@"bannerId" : info.bannerId}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventUserCenter_banner_click eventAttributes:@{@"bannerId" : info.bannerId}]; switch (info.skipType) { case HomeBannerInfoSkipType_Room: { diff --git a/YuMi/Modules/YMNewHome/View/Search/View/SubView/XPHomeSearchRelateView.m b/YuMi/Modules/YMNewHome/View/Search/View/SubView/XPHomeSearchRelateView.m index 235c4681..13e0758a 100644 --- a/YuMi/Modules/YMNewHome/View/Search/View/SubView/XPHomeSearchRelateView.m +++ b/YuMi/Modules/YMNewHome/View/Search/View/SubView/XPHomeSearchRelateView.m @@ -111,7 +111,7 @@ [collectionView deselectItemAtIndexPath:indexPath animated:YES]; if (self.recommendArray.count > 0) { HomeRecommendRoomModel * recommend = [self.recommendArray xpSafeObjectAtIndex:indexPath.row]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_allinsearch_entry_room_click eventAttributes:@{@"roomTitle" :recommend.title}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_allinsearch_entry_room_click eventAttributes:@{@"roomTitle" :recommend.title}]; if (self.delegate && [self.delegate respondsToSelector:@selector(xPHomeSearchRelateViewEnterRoom:)]) { [self.delegate xPHomeSearchRelateViewEnterRoom:recommend.roomUid]; } diff --git a/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchContainerViewController.m b/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchContainerViewController.m index 3a18976b..01fe605a 100644 --- a/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchContainerViewController.m +++ b/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchContainerViewController.m @@ -123,7 +123,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; [self searchVCLoadData:textField.text]; // [self.presenter getSearchHijack:textField.text]; [self.recordVc storeSearchRecord:textField.text]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_search_input_click eventAttributes:@{@"searchWord":textField.text}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_search_input_click eventAttributes:@{@"searchWord":textField.text}]; } else { [self showErrorToast:YMLocalizedString(@"XPRoomSearchContainerViewController0")]; } @@ -136,7 +136,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; [self searchVCLoadData:view.searchTextField.text]; [view.searchTextField resignFirstResponder]; [self.recordVc storeSearchRecord:view.searchTextField.text]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_search_input_click eventAttributes:@{@"searchWord":view.searchTextField.text}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_search_input_click eventAttributes:@{@"searchWord":view.searchTextField.text}]; } else { [self showErrorToast:YMLocalizedString(@"XPRoomSearchContainerViewController1")]; } diff --git a/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchRecordViewController.m b/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchRecordViewController.m index e4471c9f..090ad763 100644 --- a/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchRecordViewController.m +++ b/YuMi/Modules/YMNewHome/View/Search/View/XPRoomSearchRecordViewController.m @@ -212,7 +212,7 @@ NSString * const XPConstSearchRecordStoreKey = @"XPConstSearchRecordStoreKey"; } } else if (collectionView == self.everyOneCollectionView) { HomeEveryOneSearchModel *model = [self.everyoneSearchList xpSafeObjectAtIndex:indexPath.row]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_allinsearch_entry_click eventAttributes:@{@"searchWord" :model.word}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_allinsearch_entry_click eventAttributes:@{@"searchWord" :model.word}]; if (self.delegate && [self.delegate respondsToSelector:@selector(xPRoomSearchRecordViewControllerEveryoneSearch: sid:)]) { [self.delegate xPRoomSearchRecordViewControllerEveryoneSearch:model.word sid:model.sid]; } diff --git a/YuMi/Modules/YMRoom/View/AnchorPK/View/XPAnchorPKSelectTypeController.m b/YuMi/Modules/YMRoom/View/AnchorPK/View/XPAnchorPKSelectTypeController.m index 73321537..b283fc43 100644 --- a/YuMi/Modules/YMRoom/View/AnchorPK/View/XPAnchorPKSelectTypeController.m +++ b/YuMi/Modules/YMRoom/View/AnchorPK/View/XPAnchorPKSelectTypeController.m @@ -120,7 +120,7 @@ [self dismissViewControllerAnimated:YES completion:^{ XPAnchorPKViewController * acrossRoomPKVC = [[XPAnchorPKViewController alloc] initWithRoomUid:self.roomUid]; [[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController presentViewController:acrossRoomPKVC animated:YES completion:nil]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openAnchorPk"}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openAnchorPk"}]; }]; } diff --git a/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m b/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m index 11fa746e..af6a4050 100644 --- a/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m +++ b/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m @@ -420,7 +420,7 @@ XPNewUserRoomGiftView *view = [[XPNewUserRoomGiftView alloc] init]; view.giftInfo = giftInfo; [TTPopup popupView:view style:TTPopupStyleAlert]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoomNugivePopShow]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoomNugivePopShow]; } [defaults setBool:YES forKey:kHadShowNewUserGiftKey]; [defaults synchronize]; @@ -451,7 +451,7 @@ // self.musicEnterButton.hidden = YES; self.musicPlayView.frame = CGRectMake(0, 0, KScreenWidth, KScreenHeight); } completion:nil]; -// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_music_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_music_click]; } #pragma mark - 房间PK @@ -1194,7 +1194,7 @@ } else { [self updateContrionEntranceWithRoomUid:roomUid type:@"day"]; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_giftlist_click eventAttributes:@{@"roomUid" : roomUid}]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_giftlist_click eventAttributes:@{@"roomUid" : roomUid}]; } - (void)onAnchorHourRankButtonAction:(UITapGestureRecognizer *)ges { @@ -1203,7 +1203,7 @@ XPRoomHalfWebView * webView = [[XPRoomHalfWebView alloc] init]; webView.url = [NSString stringWithFormat:@"%@?roomUid=%@", url, roomUid]; [TTPopup popupView:webView style:TTPopupStyleActionSheet]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_ranklist_click eventAttributes:@{@"roomUid" : roomUid}]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_ranklist_click eventAttributes:@{@"roomUid" : roomUid}]; } - (void)datingProgresButtonAction:(UIButton *)sender { @@ -1706,7 +1706,7 @@ vc.delegate = self; vc.modalPresentationStyle = UIModalPresentationOverFullScreen; [self.delegate.getCurrentNav presentViewController:vc animated:YES completion:nil]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_pop_click]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_pop_click]; } - (void)configWishGiftEnter { diff --git a/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m b/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m index e23155bf..5605fe9f 100644 --- a/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m +++ b/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m @@ -211,8 +211,7 @@ RoomInfoModel *roomInfo = self.hostDelegate.getRoomInfo; switch (model.type) { case RoomMoreMenuType_Room_PK_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click - eventAttributes:@{@"roomMoreMenuType" : @"closeRoomPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeRoomPk"}]; XPRoomPKViewController * roomPKVC = [[XPRoomPKViewController alloc] initWithDelegate:self.hostDelegate]; [self.hostDelegate.getCurrentNav pushViewController:roomPKVC animated:YES]; } @@ -223,15 +222,14 @@ } else if (roomInfo.roomModeType == RoomModeType_Open_AcrossRoomPK_mode) { [self showErrorToast:YMLocalizedString(@"XPRoomMoreMenuViewController21")]; } else { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click - eventAttributes:@{@"roomMoreMenuType" : @"openRoomPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openRoomPk"}]; XPRoomPKViewController * roomPKVC = [[XPRoomPKViewController alloc] initWithDelegate:self.hostDelegate]; [self.hostDelegate.getCurrentNav pushViewController:roomPKVC animated:YES]; } } break; case RoomMoreMenuType_Room_Across_PK_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeAcrossPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeAcrossPk"}]; [self showErrorToast:YMLocalizedString(@"XPRoomMoreMenuViewController15")]; } break; @@ -241,7 +239,7 @@ } else if (roomInfo.roomModeType == RoomModeType_Open_PK_Mode) { [self showErrorToast:YMLocalizedString(@"XPRoomMoreMenuViewController14")]; } else { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openAcrossPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openAcrossPk"}]; XPAcrossRoomPKViewController *acrossRoomPKVC = [[XPAcrossRoomPKViewController alloc] initWithRoomUid:[NSString stringWithFormat:@"%ld", roomInfo.uid]]; [self.hostDelegate.getCurrentNav presentViewController:acrossRoomPKVC animated:YES completion:nil]; } diff --git a/YuMi/Modules/YMRoom/View/MenuContainerView/XPRoomMenuContainerView.m b/YuMi/Modules/YMRoom/View/MenuContainerView/XPRoomMenuContainerView.m index ec312d95..0bcf8ff0 100644 --- a/YuMi/Modules/YMRoom/View/MenuContainerView/XPRoomMenuContainerView.m +++ b/YuMi/Modules/YMRoom/View/MenuContainerView/XPRoomMenuContainerView.m @@ -205,7 +205,7 @@ UIKIT_EXTERN NSString * kRoomBackMusicCaptureVolumeKey; } break; case XPRoomMenuItemType_Noble: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceRoomClick]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceRoomClick]; VIPCenterViewController * nobleVC = [[VIPCenterViewController alloc] initWithRoomUid:self.delegate.getRoomInfo.uid]; [self.delegate.getCurrentNav pushViewController:nobleVC animated:YES]; } diff --git a/YuMi/Modules/YMRoom/View/MoreView/View/XPRoomMoreMenuViewController.m b/YuMi/Modules/YMRoom/View/MoreView/View/XPRoomMoreMenuViewController.m index a07e49c0..06f97307 100644 --- a/YuMi/Modules/YMRoom/View/MoreView/View/XPRoomMoreMenuViewController.m +++ b/YuMi/Modules/YMRoom/View/MoreView/View/XPRoomMoreMenuViewController.m @@ -258,7 +258,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; switch (item.type) { case RoomMoreMenuType_Gift_Effect_Open: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openGiftEffect"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openGiftEffect"}]; [self showSuccessToast:YMLocalizedString(@"XPRoomMoreMenuViewController4")]; NSDictionary * dic = @{@"hasAnimationEffect": @(1)}; [[NSNotificationCenter defaultCenter] postNotificationName:kRoomGiftEffectUpdateNotificationKey object:dic]; @@ -267,7 +267,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Gift_Effect_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeGiftEffect"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeGiftEffect"}]; [self showSuccessToast:YMLocalizedString(@"XPRoomMoreMenuViewController5")]; NSDictionary * dic = @{@"hasAnimationEffect": @(0)}; [[NSNotificationCenter defaultCenter] postNotificationName:kRoomGiftEffectUpdateNotificationKey object:dic]; @@ -276,7 +276,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Invite_Fans: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"inviteFans"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"inviteFans"}]; [self dismissViewControllerAnimated:YES completion:nil]; NSString * roomUid = [NSString stringWithFormat:@"%ld", self.roomInfo.uid]; XPRoomInviteFansView * inviteFansView = [[XPRoomInviteFansView alloc]initWithRoomUid:roomUid]; @@ -285,7 +285,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Room_Setting: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"roomSetting"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"roomSetting"}]; [self dismissViewControllerAnimated:YES completion:nil]; XPRoomSettingViewController * roomsettingVC = [[XPRoomSettingViewController alloc] initWithDelegate:self.hostDelegate]; [self.hostDelegate.getCurrentNav pushViewController:roomsettingVC animated:YES]; @@ -312,12 +312,12 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; [self.presenter openRoomDating:roomUid]; } cancelHandler:^{ }]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openRoomDating"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openRoomDating"}]; } break; case RoomMoreMenuType_Room_Dating_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeRoomDating"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeRoomDating"}]; TTAlertConfig * config = [[TTAlertConfig alloc] init]; config.title = YMLocalizedString(@"XPRoomMoreMenuViewController10"); config.message = YMLocalizedString(@"XPRoomMoreMenuViewController11"); @@ -331,7 +331,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Release_Radio: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"releaseRadio"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"releaseRadio"}]; [self.presenter getRoomRadioMessageListWithType:[NSString stringWithFormat:@"%zd", self.roomInfo.type]]; } break; @@ -354,12 +354,12 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; [self dismissViewControllerAnimated:NO completion:nil]; XPAcrossRoomPKViewController * acrossRoomPKVC = [[XPAcrossRoomPKViewController alloc] initWithRoomUid:roomUid]; [self.hostDelegate.getCurrentNav presentViewController:acrossRoomPKVC animated:YES completion:nil]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openAcrossPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openAcrossPk"}]; } break; case RoomMoreMenuType_Room_Across_PK_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeAcrossPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeAcrossPk"}]; [self showErrorToast:YMLocalizedString(@"XPRoomMoreMenuViewController15")]; [self dismissViewControllerAnimated:NO completion:nil]; } @@ -382,7 +382,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Room_Anchor_PK_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeAnchorPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeAnchorPk"}]; if (self.roomInfo.pkState == AcrossRoomPkStateTypePenalty) { if ([self.roomInfo.winUid isEqualToString:[AccountInfoStorage instance].getUid]) {//赢 if (self.roomInfo.roundId) { @@ -405,7 +405,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Message_Screen_Clear: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"clearScreen"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"clearScreen"}]; TTAlertConfig * config = [[TTAlertConfig alloc] init]; config.title = YMLocalizedString(@"XPRoomMoreMenuViewController17"); config.message = YMLocalizedString(@"XPRoomMoreMenuViewController18"); @@ -434,12 +434,12 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; [self dismissViewControllerAnimated:NO completion:nil]; XPRoomPKViewController * roomPKVC = [[XPRoomPKViewController alloc] initWithDelegate:self.hostDelegate]; [self.hostDelegate.getCurrentNav pushViewController:roomPKVC animated:YES]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openRoomPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"openRoomPk"}]; } break; case RoomMoreMenuType_Room_PK_Close: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeRoomPk"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"closeRoomPk"}]; [self dismissViewControllerAnimated:NO completion:nil]; XPRoomPKViewController * roomPKVC = [[XPRoomPKViewController alloc] initWithDelegate:self.hostDelegate]; [self.hostDelegate.getCurrentNav pushViewController:roomPKVC animated:YES]; @@ -447,7 +447,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Room_redPacket: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"redPacket"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"redPacket"}]; [self dismissViewControllerAnimated:YES completion:nil]; PIRoomSendRedPacketVC *sendRedPacketVC = [[PIRoomSendRedPacketVC alloc] initWithDelegate:self.hostDelegate]; sendRedPacketVC.roomUid = roomUid; @@ -459,7 +459,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Room_Voice: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"voice"}]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"voice"}]; [self dismissViewControllerAnimated:YES completion:nil]; [RtcManager instance].remoteMuted = !item.isSelected; item.isSelected = [RtcManager instance].isRemoteMuted; @@ -467,7 +467,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey; break; case RoomMoreMenuType_Room_Wish_Gift: { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"redPacket"}]; + //// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_more_tool_click eventAttributes:@{@"roomMoreMenuType" : @"redPacket"}]; [self dismissViewControllerAnimated:YES completion:nil]; XPWishGiftCreateViewController *wishGiftVC = [[XPWishGiftCreateViewController alloc] initWithDelegate:self.hostDelegate]; diff --git a/YuMi/Modules/YMRoom/View/NewUserGift/XPNewUserRoomGiftView.m b/YuMi/Modules/YMRoom/View/NewUserGift/XPNewUserRoomGiftView.m index 7841a18c..f165037e 100644 --- a/YuMi/Modules/YMRoom/View/NewUserGift/XPNewUserRoomGiftView.m +++ b/YuMi/Modules/YMRoom/View/NewUserGift/XPNewUserRoomGiftView.m @@ -89,7 +89,7 @@ #pragma mark - Event Response - (void)closeButtonAction:(UIButton *)sender { [TTPopup dismiss]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoomNugivePopClick]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoomNugivePopClick]; } #pragma mark - Getters And Setters diff --git a/YuMi/Modules/YMRoom/View/SendGiftView/View/XPSendGiftView.m b/YuMi/Modules/YMRoom/View/SendGiftView/View/XPSendGiftView.m index a964eafe..8c5f01d5 100644 --- a/YuMi/Modules/YMRoom/View/SendGiftView/View/XPSendGiftView.m +++ b/YuMi/Modules/YMRoom/View/SendGiftView/View/XPSendGiftView.m @@ -658,7 +658,7 @@ UIKIT_EXTERN NSString * kShowFirstRechargeView; @kWeakify(self); [self dismissViewControllerAnimated:NO completion:^{ @kStrongify(self); - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceGiftClick]; + //// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceGiftClick]; VIPCenterViewController * nobleVC = [[VIPCenterViewController alloc] initWithRoomUid:self.delegate.getRoomInfo.uid]; [[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:nobleVC animated:YES]; }]; diff --git a/YuMi/Modules/YMRoom/View/StageView/StageView.m b/YuMi/Modules/YMRoom/View/StageView/StageView.m index 2cfbd415..6322a036 100644 --- a/YuMi/Modules/YMRoom/View/StageView/StageView.m +++ b/YuMi/Modules/YMRoom/View/StageView/StageView.m @@ -317,7 +317,7 @@ } } if (statisMicArray.count) { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_mike_show eventAttributes:@{@"roomMicShow": statisMicArray.toJSONString}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_mike_show eventAttributes:@{@"roomMicShow": statisMicArray.toJSONString}]; } if (leaveMode) { UserInfoModel *owner = [[UserInfoModel alloc] init]; diff --git a/YuMi/Modules/YMRoom/View/TreasureFairy/View/XPTreasureFairyViewController.m b/YuMi/Modules/YMRoom/View/TreasureFairy/View/XPTreasureFairyViewController.m index c82393dd..77680fa4 100644 --- a/YuMi/Modules/YMRoom/View/TreasureFairy/View/XPTreasureFairyViewController.m +++ b/YuMi/Modules/YMRoom/View/TreasureFairy/View/XPTreasureFairyViewController.m @@ -624,7 +624,7 @@ self.countButton = sender; sender.enabled = NO; [self drawTreasureFairy:100 ]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_privateletter_click eventAttributes:@{@"opencode": YMLocalizedString(@"XPTreasureFairyViewController2")}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_privateletter_click eventAttributes:@{@"opencode": YMLocalizedString(@"XPTreasureFairyViewController2")}]; } - (void)tenButtonAction:(UIButton *)sender { @@ -634,7 +634,7 @@ self.countButton = sender; sender.enabled = NO; [self drawTreasureFairy:10]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_privateletter_click eventAttributes:@{@"opencode": YMLocalizedString(@"XPTreasureFairyViewController3")}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_privateletter_click eventAttributes:@{@"opencode": YMLocalizedString(@"XPTreasureFairyViewController3")}]; } - (void)oneButtonAction:(UIButton *)sender { @@ -644,7 +644,7 @@ self.countButton = sender; sender.enabled = NO; [self drawTreasureFairy:1 ]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_privateletter_click eventAttributes:@{@"opencode": YMLocalizedString(@"XPTreasureFairyViewController4")}]; +//// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_privateletter_click eventAttributes:@{@"opencode": YMLocalizedString(@"XPTreasureFairyViewController4")}]; } - (void)drawTreasureFairy:(NSInteger)number { diff --git a/YuMi/Modules/YMRoom/View/WishGift/View/XPWishGiftViewController.m b/YuMi/Modules/YMRoom/View/WishGift/View/XPWishGiftViewController.m index 60a3975e..e10c542b 100644 --- a/YuMi/Modules/YMRoom/View/WishGift/View/XPWishGiftViewController.m +++ b/YuMi/Modules/YMRoom/View/WishGift/View/XPWishGiftViewController.m @@ -180,7 +180,7 @@ NSString * giftId = [NSString stringWithFormat:@"%ld", info.giftId]; [self.delegate xPWishGiftViewControllerSendClick:giftId]; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_panel_click eventAttributes:@{@"giftName" : info.giftName.length > 0 ? info.giftName : @""}]; +////// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_panel_click eventAttributes:@{@"giftName" : info.giftName.length > 0 ? info.giftName : @""}]; } #pragma mark - XPWishGiftProtocol @@ -209,7 +209,7 @@ self.assistNumLabel.attributedText = attribute; self.assistNumLabel.textAlignment = NSTextAlignmentRight; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_panel_show]; +////// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_panel_show]; } - (void)getWishGiftListSuccess:(NSArray *)list { @@ -235,7 +235,7 @@ #pragma mark - Event Response - (void)disMissView { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_panel_close_click]; +////// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRoom_wishlist_panel_close_click]; [self dismissViewControllerAnimated:YES completion:nil]; } diff --git a/YuMi/Modules/YMRoom/View/XPRoomViewController.m b/YuMi/Modules/YMRoom/View/XPRoomViewController.m index b1bfa8e0..d1661da3 100644 --- a/YuMi/Modules/YMRoom/View/XPRoomViewController.m +++ b/YuMi/Modules/YMRoom/View/XPRoomViewController.m @@ -1525,7 +1525,7 @@ XPCandyTreeInsufficientBalanceViewDelegate> //上报进房 if (self.roomInfo != nil) { [self.presenter reportUserInterRoom:[NSString stringWithFormat:@"%zd", self.roomInfo.uid]]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventuser_visit_room eventAttributes:@{@"roomUid" : @(self.roomInfo.uid)}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventuser_visit_room eventAttributes:@{@"roomUid" : @(self.roomInfo.uid)}]; } if (self.giftId.length) { ///有的时候 拉取麦序的话 可能会有点延迟 导致送礼物的人 没有拉取到 diff --git a/YuMi/Modules/YMTabbar/View/AnchorCard/XPAnchorCardView.m b/YuMi/Modules/YMTabbar/View/AnchorCard/XPAnchorCardView.m index 3731b361..8be2482f 100644 --- a/YuMi/Modules/YMTabbar/View/AnchorCard/XPAnchorCardView.m +++ b/YuMi/Modules/YMTabbar/View/AnchorCard/XPAnchorCardView.m @@ -159,7 +159,7 @@ } else { uid = [NSString stringWithFormat:@"%zd", self.cardInfo.uid]; } - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardRoomClick eventAttributes:@{@"roomUid" : uid}]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardRoomClick eventAttributes:@{@"roomUid" : uid}]; [self.delegate xPAnchorCardViewEnterRoom:uid]; } } @@ -248,7 +248,7 @@ sender.selected = YES; [self pauseTimer]; [self.noteImaegView startAnimating]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardVoiceClick]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardVoiceClick]; [[XPSkillCardPlayerManager shareInstance] playerVoiceWithPath:fullPath completionBlock:^{ self.isPlaying = NO; [self.noteImaegView stopAnimating]; @@ -266,7 +266,7 @@ self.isPlaying = YES; sender.selected = YES; [self.noteImaegView startAnimating]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardVoiceClick]; + // // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardVoiceClick]; [self pauseTimer]; [[XPSkillCardPlayerManager shareInstance] playerVoiceWithPath:fullPath completionBlock:^{ self.isPlaying = NO; diff --git a/YuMi/Modules/YMTabbar/View/TabbarViewController.m b/YuMi/Modules/YMTabbar/View/TabbarViewController.m index 2bfd0c3a..d7fb1dd7 100644 --- a/YuMi/Modules/YMTabbar/View/TabbarViewController.m +++ b/YuMi/Modules/YMTabbar/View/TabbarViewController.m @@ -486,7 +486,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; UISwipeGestureRecognizer *recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleAnchorCardSwipeFrom:)]; [recognizer setDirection:(UISwipeGestureRecognizerDirectionUp)]; [self.anchorCardView addGestureRecognizer:recognizer]; - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardShow]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventPersonalshowTopCardShow]; } } @@ -1006,7 +1006,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; #pragma mark - 活动任务完成提示 - (void)handleActivityTaskTip:(NSString *)msg url:(NSString *)url { if (!self.taskTipView.superview && url.length) { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventtask_toast_show]; +// // [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventtask_toast_show]; [self.view addSubview:self.taskTipView]; self.taskTipView.desc = msg; self.taskTipView.url = url; @@ -1022,7 +1022,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; } - (void)jumpToTask:(UITapGestureRecognizer *)ges { - [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventtask_toast_click]; +// [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventtask_toast_click]; XPWebViewController * webVC =[[XPWebViewController alloc] initWithRoomUID:nil]; webVC.url = self.taskTipView.url; [self.selectedViewController.navigationController pushViewController:webVC animated:YES]; diff --git a/YuMi/Tools/StatisticsService/StatisticsService.h b/YuMi/Tools/StatisticsService/StatisticsService.h index 3d4ebf8e..16c88369 100644 --- a/YuMi/Tools/StatisticsService/StatisticsService.h +++ b/YuMi/Tools/StatisticsService/StatisticsService.h @@ -10,6 +10,7 @@ NS_ASSUME_NONNULL_BEGIN @interface StatisticsService : NSObject +#if 0 /// 埋点数据 不带参数的 /// @param event key /// @param describe 描述 @@ -30,6 +31,8 @@ NS_ASSUME_NONNULL_BEGIN /// @param event key /// @param describe 描述 + (void)trackEvent:(NSString *)event eventEnd:(NSString *)describe; +#endif + @end NS_ASSUME_NONNULL_END diff --git a/YuMi/Tools/StatisticsService/StatisticsServiceHelper.h b/YuMi/Tools/StatisticsService/StatisticsServiceHelper.h index fa5767a0..92cafc2c 100644 --- a/YuMi/Tools/StatisticsService/StatisticsServiceHelper.h +++ b/YuMi/Tools/StatisticsService/StatisticsServiceHelper.h @@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @interface StatisticsServiceHelper : NSObject - +#if 0 UIKIT_EXTERN NSString *const StatisticsServiceEventAppLaunch; #pragma mark - 登录模块的 UIKIT_EXTERN NSString *const StatisticsServiceEventOneClickLoginSuccess; ///一键登录成功 @@ -178,6 +178,8 @@ UIKIT_EXTERN NSString *const StatisticsServiceEvent_user_greetings_chat_click; /// @param eventKey key + (void)trackEventEndWithKey:(NSString *)eventKey; +#endif + @end NS_ASSUME_NONNULL_END diff --git a/YuMi/Tools/StatisticsService/StatisticsServiceHelper.m b/YuMi/Tools/StatisticsService/StatisticsServiceHelper.m index 32e39c53..86c97261 100644 --- a/YuMi/Tools/StatisticsService/StatisticsServiceHelper.m +++ b/YuMi/Tools/StatisticsService/StatisticsServiceHelper.m @@ -9,7 +9,7 @@ #import "StatisticsService.h" @implementation StatisticsServiceHelper - +#if 0 NSString *const StatisticsServiceEventAppLaunch = @"app_launch"; #pragma mark - 登录模块的 NSString *const StatisticsServiceEventOneClickLoginSuccess = @"one_click_login_succeed"; @@ -201,5 +201,5 @@ NSString *const StatisticsServiceEvent_user_greetings_chat_click = @"user_greet NSString * decription = [dic objectForKey:StatisticsServiceEventAppLaunch]; return decription; } - +#endif @end