添加埋点

This commit is contained in:
2026-01-06 19:25:34 +08:00
parent 1096f24c57
commit c3909d63da
30 changed files with 784 additions and 39 deletions

View File

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