首页个播埋点

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

@@ -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];
}
}