2021-09-27 17:44:09 +08:00
|
|
|
|
//
|
|
|
|
|
// StatisticsServiceHelper.h
|
|
|
|
|
// xplan-ios
|
|
|
|
|
//
|
|
|
|
|
// Created by 冯硕 on 2021/9/27.
|
|
|
|
|
//项目中埋点的数据 尽可能的使用这个类 进行参数的构建 在getTrackEventDescripWithKey 方法中配置相对应的event 和 decribe
|
|
|
|
|
/// 在.m中 生成一个key 在.h中 exten 即可
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface StatisticsServiceHelper : NSObject
|
|
|
|
|
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventAppLaunch;
|
2021-09-27 20:16:27 +08:00
|
|
|
|
#pragma mark - 登录模块的
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventOneClickLoginSuccess; ///一键登录成功
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventLoginPhoneClick;///手机登录
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventLoginQQClick;///QQ登录
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventLoginWXClick;///wx登录
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventLoginRepariSuccess;///注册个人资料保存成功
|
2021-09-27 17:44:09 +08:00
|
|
|
|
|
2022-01-11 11:28:04 +08:00
|
|
|
|
#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;///贵族我的页面入口点击
|
2022-07-19 18:21:57 +08:00
|
|
|
|
|
|
|
|
|
#pragma mark - 首页个播tab
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRecent_card_show;///最近在看卡片曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRecent_card_click;///最近在看卡片点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventGebo_tab_click;///个播页二级tab分类点击
|
|
|
|
|
|
2022-08-08 13:15:04 +08:00
|
|
|
|
#pragma mark - 礼物
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoomNugivePopShow; ///房间礼物赠送弹窗曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoomNugivePopClick; ///房间礼物赠送弹窗关闭
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventNugiftPopShow; ///新人专享礼物弹窗曝光(不统计后续个人中心入口的曝光)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventNugiftPopClick; ///新人专享礼物弹窗充值点击,点击时统计用户所选择的购买档位,(需统计后续个人中心入口的点击)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventnugift_pop_finish_click; ///新人专享礼物充值成功后弹窗(需统计对应充值tab档位)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventNugiftPopCloseClick; ///新人专享礼物弹窗关闭点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventUsercenterNugiftPopShow; ///新人专享礼物入口曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventUsercenterNugiftPopClick; ///新人专享礼物入口点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventPersonalshowTopCardShow; ///个播展示卡片曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventPersonalshowTopCardRoomClick; ///个播展示卡片进入房间点击,点击时统计房间id
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventPersonalshowTopCardVoiceClick; ///个播展示卡片播放语音点击
|
|
|
|
|
|
|
|
|
|
#pragma mark - 个人中心
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_recharge_card_show; ///个人中心充值卡片曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_recharge_card_click; ///个人中心充值卡片点击(跳转充值页)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_noble_card_show; ///个人中心贵族卡片曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_noble_card_click;///个人中心贵族卡片片点击(跳转贵族页)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_function_show; ///个人中心功能板块曝光,曝光时统计功能的名称
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_function_click; ///个人中心功能板块点击,点击时统计功能的名称
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_quick_entry_show; ///个人中心快捷进房曝光,曝光时统计房间的id
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_quick_entrysuccess_click; ///个人中心快捷进房点击成功匹配,点击时统计房间的
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_quick_entry_click; ///个人中心快捷进房点击未匹配成功,点击时统计房间的id
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_banner_show; ///个人中心banner模块曝光,曝光时统计banner的id
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_banner_click; ///个人中心banner模块点击,点击时统计banner的id
|
|
|
|
|
#pragma mark - 活动任务
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventtask_toast_show; ///任务完成toast曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventtask_toast_click; ///任务完成toast点击(跳转活动页
|
2022-10-10 18:01:11 +08:00
|
|
|
|
#pragma mark - 房间
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventuser_visit_room; ///用户访问房间(进入时统计房间的ID,该房间的停留时长)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_return_click; ///房间返回按钮点击(右滑返回不统计在内)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_online_list_click; ///房间在线列表点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_collect_icon_click; ///房间收藏按钮点击(统计收藏房间的ID)
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_more_icon_click; ///房间更多按钮点击(统计用户展开面板后的行为:● 举报房间● 收起房间● 退出房间● 分享房间● 为你推荐(统计用户跳转后的房间ID))
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_giftlist_click;///房间榜单点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_ranklist_click; ///房间小时榜点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_mike_show; ///房间麦位曝光,只统计该房间在麦上的用户及ID
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_mike_click; ///房间麦位点击,统计用户展开面板后的行为:● 送礼物● 私聊● 关注TA● @TA● 关闭● 资料卡
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_banner_show; ///房间banner曝光,统计曝光banner的ID
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_banner_click; ///房间banner点击,统计点击banner的ID
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_pop_show; ///房间pop曝光,统计曝光pop的名称,如新人充值、糖果树、航海冒险
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_pop_click; ///房间pop点击,统计点击pop的名称,如新人充值、糖果树、航海冒险
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_chatbox_click; ///房间聊天框点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_music_click; ///房间音乐点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_privateletter_click; ///房间私信点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_noble_click; ///房间贵族点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_gift_click; ///房间送礼点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_more_tool_click; ///房间底部更多工具栏点击,统计用户展开面板后的行为
|
2022-10-12 18:50:32 +08:00
|
|
|
|
#pragma mark - 收藏房间列表
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_editbutton_show; ///管理按钮曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_editbutton_click; ///管理按钮点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_editbutton_complete_click; ///完成按钮点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_entry; ///我的收藏页面访问,统计用户默认落入的tab分类
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_selectall_click; ///全选按钮点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventcollection_delete_click; ///删除按钮点击
|
2022-10-25 16:47:19 +08:00
|
|
|
|
///许愿礼物
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_wishlist_pop_show; ///礼物心愿气泡曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_wishlist_pop_click; ///礼物心愿气泡点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_wishlist_panel_show; ///礼物心愿面板曝光
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_wishlist_panel_click; ///礼物心愿面板赠送点击
|
|
|
|
|
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_wishlist_panel_close_click; ///礼物心愿面板关闭点击
|
2022-01-11 11:28:04 +08:00
|
|
|
|
///
|
2021-09-27 17:44:09 +08:00
|
|
|
|
/// 埋点事件
|
|
|
|
|
/// @param eventKey key
|
|
|
|
|
+ (void)trackEventWithKey:(NSString *)eventKey;
|
|
|
|
|
|
|
|
|
|
/// 埋点事件带参数
|
|
|
|
|
/// @param eventKey key
|
|
|
|
|
/// @param eventAttributes 参数
|
|
|
|
|
+ (void)trackEventWithKey:(NSString *)eventKey eventAttributes:(NSDictionary * _Nullable)eventAttributes;
|
|
|
|
|
|
|
|
|
|
/// 统计时长 开始
|
|
|
|
|
/// @param eventKey key
|
|
|
|
|
+ (void)trackEventStartWithKey:(NSString *)eventKey;
|
|
|
|
|
|
|
|
|
|
/// 统计时长 结束
|
|
|
|
|
/// @param eventKey key
|
|
|
|
|
+ (void)trackEventEndWithKey:(NSString *)eventKey;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|