添加埋点
This commit is contained in:
@@ -173,6 +173,16 @@
|
||||
|
||||
- (void)kb_handleShopTapAtIndexPath:(NSIndexPath *)indexPath {
|
||||
KBShopThemeModel *selTheme = (indexPath.item < self.dataSource.count) ? self.dataSource[indexPath.item] : nil;
|
||||
NSMutableDictionary *extra = [NSMutableDictionary dictionary];
|
||||
if ([selTheme.themeId isKindOfClass:NSString.class] && selTheme.themeId.length > 0) {
|
||||
extra[@"theme_id"] = selTheme.themeId;
|
||||
}
|
||||
extra[@"index"] = @(indexPath.item);
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_shop_theme_card"
|
||||
pageId:@"shop_item_list"
|
||||
elementId:@"theme_card"
|
||||
extra:extra.copy
|
||||
completion:nil];
|
||||
KBSkinDetailVC *vc = [[KBSkinDetailVC alloc] init];
|
||||
vc.themeId = selTheme.themeId;
|
||||
[self.navigationController pushViewController:vc animated:true];
|
||||
|
||||
@@ -244,11 +244,21 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
||||
|
||||
#pragma mark - action
|
||||
- (void)searchBtnAction{
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_shop_search_btn"
|
||||
pageId:@"shop"
|
||||
elementId:@"search_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
KBSearchVC *vc = [[KBSearchVC alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:true];
|
||||
}
|
||||
|
||||
- (void)skinBtnAction{
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_shop_my_skin_btn"
|
||||
pageId:@"shop"
|
||||
elementId:@"my_skin_btn"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
MySkinVC *vc = [[MySkinVC alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:true];
|
||||
}
|
||||
|
||||
@@ -130,6 +130,18 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
if (nextThemeId.length == 0) { return; }
|
||||
if ([nextThemeId isEqualToString:self.themeId ?: @""]) { return; }
|
||||
|
||||
NSMutableDictionary *extra = [NSMutableDictionary dictionary];
|
||||
if ([self.themeId isKindOfClass:NSString.class] && self.themeId.length > 0) {
|
||||
extra[@"from_theme_id"] = self.themeId;
|
||||
}
|
||||
extra[@"to_theme_id"] = nextThemeId;
|
||||
extra[@"index"] = @(indexPath.item);
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_skin_recommend_card"
|
||||
pageId:@"skin_detail"
|
||||
elementId:@"recommend_card"
|
||||
extra:extra.copy
|
||||
completion:nil];
|
||||
|
||||
// 不跳转新页面:直接切换 themeId,重新请求详情并刷新当前页面
|
||||
self.themeId = nextThemeId;
|
||||
self.detailModel = nil;
|
||||
@@ -242,6 +254,16 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
[KBHUD showInfo:KBLocalized(@"正在加载主题详情")];
|
||||
return;
|
||||
}
|
||||
|
||||
NSMutableDictionary *extra = [NSMutableDictionary dictionary];
|
||||
extra[@"theme_id"] = self.themeId ?: @"";
|
||||
extra[@"purchased"] = @(self.detailModel.isPurchased);
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_skin_download_btn"
|
||||
pageId:@"skin_detail"
|
||||
elementId:@"download_btn"
|
||||
extra:extra.copy
|
||||
completion:nil];
|
||||
|
||||
NSLog(@"🧩[SkinDetail] action themeId=%@ purchased=%d", self.themeId, self.detailModel.isPurchased);
|
||||
if (self.detailModel.isPurchased) {
|
||||
[self requestDownload];
|
||||
|
||||
Reference in New Issue
Block a user