首页个播埋点

This commit is contained in:
chenguilong
2022-07-19 18:21:57 +08:00
parent 9109ff4686
commit 0fd27abbd1
5 changed files with 19 additions and 4 deletions

View File

@@ -26,6 +26,12 @@ UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceRoomClick;///贵
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceGiftClick;///贵族礼物面板入口点击
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceFaceClick;///贵族表情面板入口点击
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceMeClick;///贵族我的页面入口点击
#pragma mark - 首页个播tab
UIKIT_EXTERN NSString *const StatisticsServiceEventRecent_card_show;///最近在看卡片曝光
UIKIT_EXTERN NSString *const StatisticsServiceEventRecent_card_click;///最近在看卡片点击
UIKIT_EXTERN NSString *const StatisticsServiceEventGebo_tab_click;///个播页二级tab分类点击
///
/// 埋点事件
/// @param eventKey key

View File

@@ -23,6 +23,10 @@ NSString *const StatisticsServiceEventvipEntranceRoomClick = @"vip_entrance_room
NSString *const StatisticsServiceEventvipEntranceGiftClick = @"vip_entrance_gift_click";///
NSString *const StatisticsServiceEventvipEntranceFaceClick = @"vip_entrance_face_click";///
NSString *const StatisticsServiceEventvipEntranceMeClick = @"vip_entrance_me_click";///
#pragma mark -
NSString *const StatisticsServiceEventRecent_card_show = @"recent_card_show";///
NSString *const StatisticsServiceEventRecent_card_click = @"recent_card_click";///
NSString *const StatisticsServiceEventGebo_tab_click = @"gebo_tab_click";///tab
///
/// @param eventKey key

View File

@@ -13,6 +13,7 @@
#import "XPMacro.h"
///View
#import "XPHomeLiveRecordCell.h"
#import "StatisticsServiceHelper.h"
@interface XPHomeLiveHeadView()<UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
@@ -93,6 +94,7 @@
if (self.roomList.count > 0) {
HomeRecommendRoomModel * liveModel = [self.roomList objectAtIndex:indexPath.item];
if (self.delegate && [self.delegate respondsToSelector:@selector(xPHomeLiveHeadViewDidClickItem:)]) {
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRecent_card_click eventAttributes:@{@"roomUid" : liveModel.uid}];
[self.delegate xPHomeLiveHeadViewDidClickItem:liveModel];
}
}

View File

@@ -17,6 +17,7 @@
#import "XPMacro.h"
#import "ThemeColor.h"
#import "XPHtmlUrl.h"
#import "StatisticsServiceHelper.h"
///Model
#import "HomeLiveTagModel.h"
#import "HomeLiveLookRecordModel.h"
@@ -175,7 +176,8 @@ UIKIT_EXTERN NSString * kHomeMoreScrollPageKey;
}
- (void)categoryView:(JXCategoryBaseView *)categoryView didSelectedItemAtIndex:(NSInteger)index {
// HomeLiveTagModel *tag = self.tagList[index];
HomeLiveTagModel *tag = self.tagList[index];
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventGebo_tab_click eventAttributes:@{@"geboTagName" : tag.sortName}];
// [self.presenter getHomeMoreAnchorRoomListWithTabId:tag.tid];
// if ([title isEqualToString:@"开黑畅聊"]) {
// [self.presenter getPlayGameWithTeam:1];

View File

@@ -17,6 +17,7 @@
#import "Api+Room.h"
#import "AccountInfoStorage.h"
#import "TTPopup.h"
#import "StatisticsServiceHelper.h"
///View
#import "XPHomeNavView.h"
#import "XPHomeRecommendViewController.h"
@@ -107,9 +108,9 @@ UIKIT_EXTERN NSString *kHomeMoreScrollPageKey;
}
- (void)categoryView:(JXCategoryBaseView *)categoryView didSelectedItemAtIndex:(NSInteger)index {
// if (index == 2) {
// self.anchorRoomListVC.isAnchor = YES;
// }
if (index == 2) {
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventRecent_card_click];
}
}
#pragma mark - XPHoneNavViewDelegate