房间收藏列表埋点

This commit is contained in:
chenguilong
2022-10-12 18:50:32 +08:00
parent a28f6ef57a
commit 712d448acf
3 changed files with 22 additions and 0 deletions

View File

@@ -80,6 +80,13 @@ UIKIT_EXTERN NSString *const StatisticsServiceEventroom_privateletter_click; ///
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_noble_click; ///房间贵族点击
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_gift_click; ///房间送礼点击
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_more_tool_click; ///房间底部更多工具栏点击,统计用户展开面板后的行为
#pragma mark - 收藏房间列表
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_editbutton_show; ///管理按钮曝光
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_editbutton_click; ///管理按钮点击
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_editbutton_complete_click; ///完成按钮点击
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_entry; ///我的收藏页面访问统计用户默认落入的tab分类
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_selectall_click; ///全选按钮点击
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_delete_click; ///删除按钮点击
///
/// 埋点事件

View File

@@ -76,6 +76,13 @@ NSString *const StatisticsServiceEventroom_privateletter_click = @"room_privatel
NSString *const StatisticsServiceEventroom_noble_click = @"room_noble_click"; ///
NSString *const StatisticsServiceEventroom_gift_click = @"room_gift_click"; ///
NSString *const StatisticsServiceEventroom_more_tool_click = @"room_more_tool_click"; ///,
#pragma mark -
NSString *const StatisticsServiceEventcollection_editbutton_show = @"collection_editbutton_show"; ///
NSString *const StatisticsServiceEventcollection_editbutton_click = @"collection_editbutton_click"; ///
NSString *const StatisticsServiceEventcollection_editbutton_complete_click = @"collection_editbutton_complete_click"; ///
NSString *const StatisticsServiceEventcollection_entry = @"collection_entry"; ///访tab
NSString *const StatisticsServiceEventcollection_selectall_click = @"collection_selectall_click"; ///
NSString *const StatisticsServiceEventcollection_delete_click = @"collection_delete_click"; ///
///
/// @param eventKey key

View File

@@ -15,6 +15,7 @@
#import "ThemeColor.h"
#import "XPMacro.h"
#import "UIImage+Utils.h"
#import "StatisticsServiceHelper.h"
///Model
#import "HomeCollectRoomModel.h"
///View
@@ -64,6 +65,7 @@ static NSString *lastSelectTab = @"lastSelectTab";
[self initSubViews];
[self initSubViewConstraints];
[self addNavigationItemWithTitles:@[@"管理"] titleColor:UIColorFromRGB(0x999999) isLeft:NO target:self action:@selector(managerButtonClick:) tags:nil];
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_show];
}
- (void)managerButtonClick:(UIButton *)sender {
@@ -74,6 +76,7 @@ static NSString *lastSelectTab = @"lastSelectTab";
[sender setTitle:@"完成" forState:UIControlStateSelected];
[sender setTitleColor:UIColorFromRGB(0x999999) forState:UIControlStateSelected];
self.bottomView.hidden = NO;
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_click];
} else {//
[sender setTitle:@"管理" forState:UIControlStateNormal];
[sender setTitleColor:UIColorFromRGB(0x999999) forState:UIControlStateNormal];
@@ -82,6 +85,7 @@ static NSString *lastSelectTab = @"lastSelectTab";
self.partyVC.isEdit = NO;
self.anchorRoomListVC.isEdit = NO;
self.allSelectBtn.selected = NO;
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_editbutton_complete_click];
}
}
@@ -165,6 +169,7 @@ static NSString *lastSelectTab = @"lastSelectTab";
} else {
self.anchorRoomListVC.isSelectAll = sender.selected;
}
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_selectall_click];
}
- (void)deleteBtnAction:(UIButton *)sender {
@@ -195,6 +200,7 @@ static NSString *lastSelectTab = @"lastSelectTab";
[self showErrorToast:@"请选择房间"];
}
}
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_delete_click];
}
#pragma mark - Getters And Setters
@@ -295,6 +301,8 @@ static NSString *lastSelectTab = @"lastSelectTab";
NSNumber *index = [defaults objectForKey:lastSelectTab];
_titleView.defaultSelectedIndex = index.intValue;
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_entry eventAttributes:@{@"defaultTab" : self.titles[index.intValue]}];
JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
lineView.indicatorImageViewSize = CGSizeMake(50, 8);
lineView.verticalMargin = 12;