添加埋点
This commit is contained in:
@@ -120,6 +120,19 @@
|
||||
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
||||
NSDictionary *info = self.data[indexPath.section][indexPath.row];
|
||||
NSString *itemID = info[@"id"];
|
||||
NSMutableDictionary *extra = [NSMutableDictionary dictionary];
|
||||
if ([itemID isKindOfClass:NSString.class] && itemID.length > 0) {
|
||||
extra[@"item_id"] = itemID;
|
||||
}
|
||||
NSString *title = info[@"title"];
|
||||
if ([title isKindOfClass:NSString.class] && title.length > 0) {
|
||||
extra[@"item_title"] = title;
|
||||
}
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_my_menu_item"
|
||||
pageId:@"my"
|
||||
elementId:@"menu_item"
|
||||
extra:extra.copy
|
||||
completion:nil];
|
||||
if ([itemID isEqualToString:@"1"]) {
|
||||
[self.navigationController pushViewController:[KBNoticeVC new] animated:true];
|
||||
|
||||
@@ -159,6 +172,11 @@
|
||||
popover.permittedArrowDirections = 0;
|
||||
}
|
||||
UIPasteboard.generalPasteboard.string = textToCopy;
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_my_invite_copy"
|
||||
pageId:@"my"
|
||||
elementId:@"invite_copy"
|
||||
extra:nil
|
||||
completion:nil];
|
||||
[self presentViewController:activityVC animated:YES completion:nil];
|
||||
});
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user