贵族埋点

This commit is contained in:
chenguilong
2022-01-11 11:28:04 +08:00
committed by fengshuo
parent 8cfaf756c6
commit 253f995fc8
6 changed files with 27 additions and 2 deletions

View File

@@ -20,6 +20,13 @@ UIKIT_EXTERN NSString *const StatisticsServiceEventLoginQQClick;///QQ登录
UIKIT_EXTERN NSString *const StatisticsServiceEventLoginWXClick;///wx登录 UIKIT_EXTERN NSString *const StatisticsServiceEventLoginWXClick;///wx登录
UIKIT_EXTERN NSString *const StatisticsServiceEventLoginRepariSuccess;///注册个人资料保存成功 UIKIT_EXTERN NSString *const StatisticsServiceEventLoginRepariSuccess;///注册个人资料保存成功
#pragma mark - 贵族
UIKIT_EXTERN NSString *const StatisticsServiceEventVipOpenClick;///开通贵族点击
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceRoomClick;///贵族房间入口点击
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceGiftClick;///贵族礼物面板入口点击
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceFaceClick;///贵族表情面板入口点击
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceMeClick;///贵族我的页面入口点击
///
/// 埋点事件 /// 埋点事件
/// @param eventKey key /// @param eventKey key
+ (void)trackEventWithKey:(NSString *)eventKey; + (void)trackEventWithKey:(NSString *)eventKey;

View File

@@ -17,6 +17,12 @@ NSString *const StatisticsServiceEventLoginPhoneClick = @"login_phone_click";
NSString *const StatisticsServiceEventLoginQQClick = @"login_qq_click";///QQ NSString *const StatisticsServiceEventLoginQQClick = @"login_qq_click";///QQ
NSString *const StatisticsServiceEventLoginWXClick = @"login_wx_click";///wx NSString *const StatisticsServiceEventLoginWXClick = @"login_wx_click";///wx
NSString *const StatisticsServiceEventLoginRepariSuccess = @"login_repari_success";/// NSString *const StatisticsServiceEventLoginRepariSuccess = @"login_repari_success";///
#pragma mark -
NSString *const StatisticsServiceEventVipOpenClick = @"vip_open_click";///
NSString *const StatisticsServiceEventvipEntranceRoomClick = @"vip_entrance_room_click";///
NSString *const StatisticsServiceEventvipEntranceGiftClick = @"vip_entrance_gift_click";///
NSString *const StatisticsServiceEventvipEntranceFaceClick = @"vip_entrance_face_click";///
NSString *const StatisticsServiceEventvipEntranceMeClick = @"vip_entrance_me_click";///
/// ///
/// @param eventKey key /// @param eventKey key
@@ -53,8 +59,12 @@ NSString *const StatisticsServiceEventLoginRepariSuccess = @"login_repari_succes
StatisticsServiceEventLoginPhoneClick:@"手机登录", StatisticsServiceEventLoginPhoneClick:@"手机登录",
StatisticsServiceEventLoginQQClick:@"qq登录", StatisticsServiceEventLoginQQClick:@"qq登录",
StatisticsServiceEventLoginWXClick:@"微信登录", StatisticsServiceEventLoginWXClick:@"微信登录",
StatisticsServiceEventLoginRepariSuccess:@"注册时候的个人资料保存成功" StatisticsServiceEventLoginRepariSuccess:@"注册时候的个人资料保存成功",
StatisticsServiceEventVipOpenClick:@"开通贵族点击",
StatisticsServiceEventvipEntranceRoomClick:@"贵族房间入口点击",
StatisticsServiceEventvipEntranceGiftClick:@"贵族礼物面板入口点击",
StatisticsServiceEventvipEntranceFaceClick:@"贵族表情面板入口点击",
StatisticsServiceEventvipEntranceMeClick:@"贵族我的页面入口点击"
}; };
NSString * decription = [dic objectForKey:StatisticsServiceEventAppLaunch]; NSString * decription = [dic objectForKey:StatisticsServiceEventAppLaunch];
return decription; return decription;

View File

@@ -24,6 +24,7 @@
#import "UIImage+Utils.h" #import "UIImage+Utils.h"
#import "XPHtmlUrl.h" #import "XPHtmlUrl.h"
#import "TTPopup.h" #import "TTPopup.h"
#import "StatisticsServiceHelper.h"
///View ///View
#import "XPNobleCenterListViewController.h" #import "XPNobleCenterListViewController.h"
#import "XPNobleCenterNavView.h" #import "XPNobleCenterNavView.h"
@@ -331,6 +332,7 @@
#pragma mark - events #pragma mark - events
- (void)onOpenNobleButtonClick:(UIButton *)button { - (void)onOpenNobleButtonClick:(UIButton *)button {
[self showLoading]; [self showLoading];
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventVipOpenClick];
RechargeListModel *rechargeModel = [self.rechargeModel.list lookin_safeObjectAtIndex:0]; RechargeListModel *rechargeModel = [self.rechargeModel.list lookin_safeObjectAtIndex:0];
[self.presenter requestNobleIAPRechargeOrderWithChargeProdId:rechargeModel.chargeProdId]; [self.presenter requestNobleIAPRechargeOrderWithChargeProdId:rechargeModel.chargeProdId];
} }

View File

@@ -13,6 +13,7 @@
#import "XPMacro.h" #import "XPMacro.h"
#import "XPHtmlUrl.h" #import "XPHtmlUrl.h"
#import "UIButton+EnlargeTouchArea.h" #import "UIButton+EnlargeTouchArea.h"
#import "StatisticsServiceHelper.h"
///Model ///Model
#import "XPMineItemModel.h" #import "XPMineItemModel.h"
#import "UserInfoModel.h" #import "UserInfoModel.h"
@@ -274,6 +275,7 @@
} }
- (void)xPMineHeadViewCliekNobleCenter { - (void)xPMineHeadViewCliekNobleCenter {
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceMeClick];
[self pushViewControllerWithType:XPMineItemType_Noble_Center]; [self pushViewControllerWithType:XPMineItemType_Noble_Center];
} }

View File

@@ -15,6 +15,7 @@
#import "TTPopup.h" #import "TTPopup.h"
#import "ThemeColor+SendGift.h" #import "ThemeColor+SendGift.h"
#import "XCHUDTool.h" #import "XCHUDTool.h"
#import "StatisticsServiceHelper.h"
///Model ///Model
#import "GiftInfoModel.h" #import "GiftInfoModel.h"
#import "XPGiftCountModel.h" #import "XPGiftCountModel.h"
@@ -316,6 +317,7 @@
- (void)xPGiftInfoViewDidClickNobleEntrance:(XPGiftInfoView *)view { - (void)xPGiftInfoViewDidClickNobleEntrance:(XPGiftInfoView *)view {
[TTPopup dismiss]; [TTPopup dismiss];
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceGiftClick];
XPNobleCenterViewController * nobleVC = [[XPNobleCenterViewController alloc] initWithRoomUid:self.delegate.getRoomInfo.uid]; XPNobleCenterViewController * nobleVC = [[XPNobleCenterViewController alloc] initWithRoomUid:self.delegate.getRoomInfo.uid];
[self.delegate.getCurrentNav pushViewController:nobleVC animated:YES]; [self.delegate.getCurrentNav pushViewController:nobleVC animated:YES];
} }

View File

@@ -13,6 +13,7 @@
#import "TTPopup.h" #import "TTPopup.h"
#import "RtcManager.h" #import "RtcManager.h"
#import "XCHudTool.h" #import "XCHudTool.h"
#import "StatisticsServiceHelper.h"
///Model ///Model
#import "XPRoomMenuItem.h" #import "XPRoomMenuItem.h"
#import "MicroQueueModel.h" #import "MicroQueueModel.h"
@@ -145,6 +146,7 @@
} }
break; break;
case XPRoomMenuItemType_Noble: { case XPRoomMenuItemType_Noble: {
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventvipEntranceRoomClick];
XPNobleCenterViewController * nobleVC = [[XPNobleCenterViewController alloc] initWithRoomUid:self.delegate.getRoomInfo.uid]; XPNobleCenterViewController * nobleVC = [[XPNobleCenterViewController alloc] initWithRoomUid:self.delegate.getRoomInfo.uid];
[self.delegate.getCurrentNav pushViewController:nobleVC animated:YES]; [self.delegate.getCurrentNav pushViewController:nobleVC animated:YES];
} }