chore: Initial clean commit
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
This commit is contained in:
38
YuMi/Tools/StatisticsService/StatisticsService.h
Normal file
38
YuMi/Tools/StatisticsService/StatisticsService.h
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// StatisticsService.h
|
||||
// YUMI
|
||||
//
|
||||
// Created by YUMI on 2021/9/27.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface StatisticsService : NSObject
|
||||
#if 0
|
||||
/// 埋点数据 不带参数的
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
+ (void)trackEvent:(NSString *)event eventDescribe:(NSString *)describe;
|
||||
|
||||
/// 埋点的 代参数的
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
/// @param attributes 参数
|
||||
+ (void)trackEvent:(NSString *)event eventDescribe:(NSString *)describe eventAttributes:(nullable NSDictionary *)attributes;
|
||||
|
||||
/// 统计时长的 开始
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
+ (void)trackEvent:(NSString *)event eventStart:(NSString *)describe;
|
||||
|
||||
/// 统计时长 结束
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
+ (void)trackEvent:(NSString *)event eventEnd:(NSString *)describe;
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
56
YuMi/Tools/StatisticsService/StatisticsService.m
Normal file
56
YuMi/Tools/StatisticsService/StatisticsService.m
Normal file
@@ -0,0 +1,56 @@
|
||||
//
|
||||
// StatisticsService.m
|
||||
// YUMI
|
||||
//
|
||||
// Created by YUMI on 2021/9/27.
|
||||
//
|
||||
|
||||
#import "StatisticsService.h"
|
||||
|
||||
@implementation StatisticsService
|
||||
|
||||
|
||||
/// 埋点数据 不带参数的
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
+ (void)trackEvent:(NSString *)event eventDescribe:(NSString *)describe {
|
||||
if (event == nil || event.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
[self trackEvent:event eventDescribe:describe eventAttributes:nil];
|
||||
}
|
||||
|
||||
|
||||
/// 埋点的 代参数的
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
/// @param attributes 参数
|
||||
+ (void)trackEvent:(NSString *)event eventDescribe:(NSString *)describe eventAttributes:(nullable NSDictionary *)attributes {
|
||||
if (event == nil || event.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// 统计时长的 开始
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
+ (void)trackEvent:(NSString *)event eventStart:(NSString *)describe {
|
||||
if (event == nil || event.length == 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// 统计时长 结束
|
||||
/// @param event key
|
||||
/// @param describe 描述
|
||||
+ (void)trackEvent:(NSString *)event eventEnd:(NSString *)describe {
|
||||
if (event == nil || event.length == 0){
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
185
YuMi/Tools/StatisticsService/StatisticsServiceHelper.h
Normal file
185
YuMi/Tools/StatisticsService/StatisticsServiceHelper.h
Normal file
@@ -0,0 +1,185 @@
|
||||
//
|
||||
// StatisticsServiceHelper.h
|
||||
// YUMI
|
||||
//
|
||||
// Created by YUMI on 2021/9/27.
|
||||
//项目中埋点的数据 尽可能的使用这个类 进行参数的构建 在getTrackEventDescripWithKey 方法中配置相对应的event 和 decribe
|
||||
/// 在.m中 生成一个key 在.h中 exten 即可
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface StatisticsServiceHelper : NSObject
|
||||
#if 0
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventAppLaunch;
|
||||
#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;///注册个人资料保存成功
|
||||
|
||||
#pragma mark - VIP
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventVipOpenClick;///开通VIP点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceRoomClick;///VIP房间入口点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceGiftClick;///VIP礼物面板入口点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceFaceClick;///VIP表情面板入口点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventvipEntranceMeClick;///VIP我的页面入口点击
|
||||
|
||||
#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分类点击
|
||||
|
||||
#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; ///个人中心VIP卡片曝光
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventusercenter_noble_card_click;///个人中心VIP卡片片点击(跳转VIP页)
|
||||
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点击(跳转活动页
|
||||
#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; ///房间VIP点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_gift_click; ///房间送礼点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventroom_more_tool_click; ///房间底部更多工具栏点击,统计用户展开面板后的行为
|
||||
#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; ///删除按钮点击
|
||||
///许愿礼物
|
||||
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; ///礼物心愿面板关闭点击
|
||||
#pragma mark - 首页搜索
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_allinsearch_entry_click; ///词条点击-统计点击时对应词条的名称
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_allinsearch_entry_room_click; ///统计点击时对应房间的名称
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_search_input_click; ///统计用户输入搜索框并搜索的内容
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_search_intercept_pop_show; ///统计弹窗奖励内容的名称
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_search_intercept_pop_click; ///搜索劫持结果弹窗关闭
|
||||
#pragma mark - 打招呼弹窗
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_sayhi_pop_show; ///打招呼弹窗曝光-统计弹窗主播的id
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_sayhi_pop_find_click; ///打招呼弹窗去找TA点击-统计进房房间的id
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_sayhi_pop_voice_click; ///打招呼弹窗播放声音秀点击
|
||||
|
||||
#pragma mark - 主播评级
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_grade_profit_pop_click; ///主播评级入口点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_grade_profit_pop_show; ///主播评级入口曝光
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventRoom_grade_profit_close_click; ///主播评级弹窗关闭点击
|
||||
#pragma mark - ID复制
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventID_mycenter_copyid_click;
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventID_mydata_copyid_click; ///个人资料页ID复制点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEventID_datacard_copyid_click; ///房间资料卡ID复制点击
|
||||
#pragma mark - 私聊页改造
|
||||
///聊天列表长按删除聊天点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_list_delete_click;
|
||||
///聊天列表长按置顶聊天点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_list_top_click;
|
||||
///聊天对话信息长按复制点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_dialogue_copy_click;
|
||||
///聊天对话信息长按删除点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_dialogue_delete_click;
|
||||
///聊天对话信息长按撤回点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_dialogue_revocation_click;
|
||||
///聊天对话框工具栏直播中点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_live_click;
|
||||
///聊天对话框工具栏关注点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_fans_click;
|
||||
///聊天对话框工具栏设置点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_set_click;
|
||||
///聊天对话框个人资料相册图点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_frame_skillcard_click;
|
||||
///聊天对话框个人资料头像点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_frame_datacard_head_click;
|
||||
///聊天对话框工具栏语音点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_voice_click;
|
||||
///聊天对话框工具栏输入框点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_input_click;
|
||||
///聊天对话框工具栏表情点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_emoticon_click;
|
||||
///聊天对话框工具栏相册点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_photo_click;
|
||||
///聊天对话框工具栏相机点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_camera_click;
|
||||
///聊天对话框工具栏送礼点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_toolbar_gift_click;
|
||||
///聊天设置页用户资料点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_set_data_click;
|
||||
///聊天设置页聊天置顶点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_set_top_click;
|
||||
///聊天设置页拉黑点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_set_blacklist_click;
|
||||
///聊天设置页举报点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_chat_set_report_click;
|
||||
#pragma mark - 自动分流打招呼
|
||||
///自动打招呼入口点击
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_user_greetings_entrance_click;
|
||||
///自动打招呼功能开关点击 统计用户点击时的状态:开/关
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_user_greetings_switch_click;
|
||||
///自动打招呼功能和TA聊点击 统计用户点击时聊天对象的id
|
||||
UIKIT_EXTERN NSString *const StatisticsServiceEvent_user_greetings_chat_click;
|
||||
///
|
||||
/// 埋点事件
|
||||
/// @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;
|
||||
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
205
YuMi/Tools/StatisticsService/StatisticsServiceHelper.m
Normal file
205
YuMi/Tools/StatisticsService/StatisticsServiceHelper.m
Normal file
@@ -0,0 +1,205 @@
|
||||
//
|
||||
// StatisticsServiceHelper.m
|
||||
// YUMI
|
||||
//
|
||||
// Created by YUMI on 2021/9/27.
|
||||
//
|
||||
|
||||
#import "StatisticsServiceHelper.h"
|
||||
#import "StatisticsService.h"
|
||||
|
||||
@implementation StatisticsServiceHelper
|
||||
#if 0
|
||||
NSString *const StatisticsServiceEventAppLaunch = @"app_launch";
|
||||
#pragma mark - 登录模块的
|
||||
NSString *const StatisticsServiceEventOneClickLoginSuccess = @"one_click_login_succeed";
|
||||
NSString *const StatisticsServiceEventLoginPhoneClick = @"login_phone_click";
|
||||
NSString *const StatisticsServiceEventLoginQQClick = @"login_qq_click";///QQ登录
|
||||
NSString *const StatisticsServiceEventLoginWXClick = @"login_wx_click";///wx登录
|
||||
NSString *const StatisticsServiceEventLoginRepariSuccess = @"login_repari_success";///注册个人资料保存成功
|
||||
#pragma mark - VIP
|
||||
NSString *const StatisticsServiceEventVipOpenClick = @"vip_open_click";///开通VIP点击
|
||||
NSString *const StatisticsServiceEventvipEntranceRoomClick = @"vip_entrance_room_click";///VIP房间入口点击
|
||||
NSString *const StatisticsServiceEventvipEntranceGiftClick = @"vip_entrance_gift_click";///VIP礼物面板入口点击
|
||||
NSString *const StatisticsServiceEventvipEntranceFaceClick = @"vip_entrance_face_click";///VIP表情面板入口点击
|
||||
NSString *const StatisticsServiceEventvipEntranceMeClick = @"vip_entrance_me_click";///VIP我的页面入口点击
|
||||
#pragma mark - 首页直播模块
|
||||
NSString *const StatisticsServiceEventRecent_card_show = @"recent_card_show";///最近在看卡片曝光
|
||||
NSString *const StatisticsServiceEventRecent_card_click = @"recent_card_click";///最近在看卡片点击
|
||||
NSString *const StatisticsServiceEventGebo_tab_click = @"gebo_tab_click";///个播页二级tab分类点击
|
||||
|
||||
#pragma mark - 礼物
|
||||
NSString *const StatisticsServiceEventRoomNugivePopShow = @"room_nugive_pop_show"; ///房间礼物赠送弹窗曝光
|
||||
NSString *const StatisticsServiceEventRoomNugivePopClick = @"room_nugive_pop_click"; ///房间礼物赠送弹窗关闭
|
||||
NSString *const StatisticsServiceEventNugiftPopShow = @"nugift_pop_show"; ///新人专享礼物弹窗曝光(不统计后续个人中心入口的曝光)
|
||||
NSString *const StatisticsServiceEventNugiftPopClick = @"nugift_pop_click"; ///新人专享礼物弹窗充值点击,点击时统计用户所选择的购买档位,(需统计后续个人中心入口的点击)
|
||||
NSString *const StatisticsServiceEventnugift_pop_finish_click = @"nugift_pop_finish_click"; ///新人专享礼物充值成功后弹窗(需统计对应充值tab档位)
|
||||
NSString *const StatisticsServiceEventNugiftPopCloseClick = @"nugift_pop_close_click"; ///新人专享礼物弹窗关闭点击
|
||||
NSString *const StatisticsServiceEventUsercenterNugiftPopShow = @"usercenter_nugift_pop_show"; ///新人专享礼物入口曝光
|
||||
NSString *const StatisticsServiceEventUsercenterNugiftPopClick = @"usercenter_nugift_pop_click"; ///新人专享礼物入口点击
|
||||
NSString *const StatisticsServiceEventPersonalshowTopCardShow = @"personalshow_top_card_show"; ///个播展示卡片曝光
|
||||
NSString *const StatisticsServiceEventPersonalshowTopCardRoomClick = @"personalshow_top_card_room_click"; ///个播展示卡片进入房间点击,点击时统计房间id
|
||||
NSString *const StatisticsServiceEventPersonalshowTopCardVoiceClick = @"personalshow_top_card_voice_click"; ///个播展示卡片播放语音点击
|
||||
|
||||
#pragma mark - 个人中心
|
||||
NSString *const StatisticsServiceEventUserCenter_recharge_card_show = @"usercenter_recharge_card_show"; ///个人中心充值卡片曝光
|
||||
NSString *const StatisticsServiceEventusercenter_recharge_card_click = @"usercenter_recharge_card_click"; ///个人中心充值卡片点击(跳转充值页)
|
||||
NSString *const StatisticsServiceEventUserCenter_noble_card_show = @"usercenter_noble_card_show"; ///个人中心VIP卡片曝光
|
||||
NSString *const StatisticsServiceEventusercenter_noble_card_click = @"usercenter_noble_card_click";///个人中心VIP卡片片点击(跳转VIP页)
|
||||
NSString *const StatisticsServiceEventUserCenter_function_show = @"usercenter_function_show"; ///个人中心功能板块曝光,曝光时统计功能的名称
|
||||
NSString *const StatisticsServiceEventUserCenter_function_click = @"usercenter_function_click"; ///个人中心功能板块点击,点击时统计功能的名称
|
||||
NSString *const StatisticsServiceEventusercenter_quick_entry_show = @"usercenter_quick_entry_show"; ///个人中心快捷进房曝光,曝光时统计房间的id
|
||||
NSString *const StatisticsServiceEventusercenter_quick_entrysuccess_click = @"usercenter_quick_entrysuccess_click"; ///个人中心快捷进房点击成功匹配,点击时统计房间的id
|
||||
NSString *const StatisticsServiceEventusercenter_quick_entry_click = @"usercenter_quick_entry_click"; ///个人中心快捷进房点击未匹配成功,点击时统计房间的id
|
||||
NSString *const StatisticsServiceEventUserCenter_banner_show = @"usercenter_banner_show"; ///个人中心banner模块曝光,曝光时统计banner的id
|
||||
NSString *const StatisticsServiceEventUserCenter_banner_click = @"usercenter_banner_click"; ///个人中心banner模块点击,点击时统计banner的id
|
||||
#pragma mark - 活动任务
|
||||
NSString *const StatisticsServiceEventtask_toast_show = @"task_toast_show"; ///任务完成toast曝光
|
||||
NSString *const StatisticsServiceEventtask_toast_click = @"task_toast_click"; ///任务完成toast点击(跳转活动页
|
||||
#pragma mark - 房间
|
||||
NSString *const StatisticsServiceEventuser_visit_room = @"user_visit_room"; ///用户访问房间(进入时统计房间的ID,该房间的停留时长)
|
||||
NSString *const StatisticsServiceEventroom_return_click = @"room_return_click"; ///房间返回按钮点击(右滑返回不统计在内)
|
||||
NSString *const StatisticsServiceEventroom_online_list_click = @"room_online_list_click"; ///房间在线列表点击
|
||||
NSString *const StatisticsServiceEventroom_collect_icon_click = @"room_collect_icon_click"; ///房间收藏按钮点击(统计收藏房间的ID)
|
||||
NSString *const StatisticsServiceEventroom_more_icon_click = @"room_more_icon_click"; ///房间更多按钮点击(统计用户展开面板后的行为:● 举报房间● 收起房间● 退出房间● 分享房间● 为你推荐(统计用户跳转后的房间ID))
|
||||
NSString *const StatisticsServiceEventroom_giftlist_click = @"room_giftlist_click"; ///房间榜单点击
|
||||
NSString *const StatisticsServiceEventroom_ranklist_click = @"room_ranklist_click"; ///房间小时榜点击
|
||||
NSString *const StatisticsServiceEventroom_mike_show = @"room_mike_show"; ///房间麦位曝光,只统计该房间在麦上的用户及ID
|
||||
NSString *const StatisticsServiceEventroom_mike_click = @"room_mike_click"; ///房间麦位点击,统计用户展开面板后的行为:● 送礼物● 私聊● 关注TA● @TA● 关闭● 资料卡
|
||||
NSString *const StatisticsServiceEventroom_banner_show = @"room_banner_show"; ///房间banner曝光,统计曝光banner的ID
|
||||
NSString *const StatisticsServiceEventroom_banner_click = @"room_banner_click"; ///房间banner点击,统计点击banner的ID
|
||||
NSString *const StatisticsServiceEventroom_pop_show = @"room_pop_show"; ///房间pop曝光,统计曝光pop的名称,如新人充值、糖果树、航海冒险
|
||||
NSString *const StatisticsServiceEventroom_pop_click = @"room_pop_click"; ///房间pop点击,统计点击pop的名称,如新人充值、糖果树、航海冒险
|
||||
NSString *const StatisticsServiceEventroom_chatbox_click = @"room_chatbox_click"; ///房间聊天框点击
|
||||
NSString *const StatisticsServiceEventroom_music_click = @"room_music_click"; ///房间音乐点击
|
||||
NSString *const StatisticsServiceEventroom_privateletter_click = @"room_privateletter_click"; ///房间私信点击
|
||||
NSString *const StatisticsServiceEventroom_noble_click = @"room_noble_click"; ///房间VIP点击
|
||||
NSString *const StatisticsServiceEventroom_gift_click = @"room_gift_click"; ///房间送礼点击
|
||||
NSString *const StatisticsServiceEventroom_more_tool_click = @"room_more_tool_click"; ///房间底部更多工具栏点击,统计用户展开面板后的行为
|
||||
#pragma mark - 收藏房间列表
|
||||
NSString *const StatisticsServiceEventcollection_editbutton_show = @"collection_editbutton_show"; ///管理按钮曝光
|
||||
NSString *const StatisticsServiceEventcollection_editbutton_click = @"collection_editbutton_click"; ///管理按钮点击
|
||||
NSString *const StatisticsServiceEventcollection_editbutton_complete_click = @"collection_editbutton_complete_click"; ///完成按钮点击
|
||||
NSString *const StatisticsServiceEventcollection_entry = @"collection_entry"; ///我的收藏页面访问,统计用户默认落入的tab分类
|
||||
NSString *const StatisticsServiceEventcollection_selectall_click = @"collection_selectall_click"; ///全选按钮点击
|
||||
NSString *const StatisticsServiceEventcollection_delete_click = @"collection_delete_click"; ///删除按钮点击
|
||||
#pragma mark - 心愿礼物
|
||||
NSString *const StatisticsServiceEventRoom_wishlist_pop_show = @"wishlist_pop_show"; ///礼物心愿气泡曝光
|
||||
NSString *const StatisticsServiceEventRoom_wishlist_pop_click = @"wishlist_pop_click"; ///礼物心愿气泡点击
|
||||
NSString *const StatisticsServiceEventRoom_wishlist_panel_show = @"wishlist_panel_show"; ///礼物心愿面板曝光
|
||||
NSString *const StatisticsServiceEventRoom_wishlist_panel_click = @"wishlist_panel_click"; ///礼物心愿面板赠送点击
|
||||
NSString *const StatisticsServiceEventRoom_wishlist_panel_close_click = @"wishlist_panel_close_click"; ///礼物心愿面板关闭点击
|
||||
#pragma mark - 首页搜索
|
||||
NSString *const StatisticsServiceEventRoom_allinsearch_entry_click = @"allinsearch_entry_click"; ///词条点击-统计点击时对应词条的名称
|
||||
NSString *const StatisticsServiceEventRoom_allinsearch_entry_room_click = @"allinsearch_entry_room_click"; ///统计点击时对应房间的名称
|
||||
NSString *const StatisticsServiceEventRoom_search_input_click = @"search_input_click"; ///统计用户输入搜索框并搜索的内容
|
||||
NSString *const StatisticsServiceEventRoom_search_intercept_pop_show = @"search_intercept_pop_show"; ///统计弹窗奖励内容的名称
|
||||
NSString *const StatisticsServiceEventRoom_search_intercept_pop_click = @"search_intercept_pop_click"; ///搜索劫持结果弹窗关闭
|
||||
#pragma mark - 打招呼弹窗
|
||||
NSString *const StatisticsServiceEventRoom_sayhi_pop_show = @"sayhi_pop_show"; ///打招呼弹窗曝光-统计弹窗主播的id
|
||||
NSString *const StatisticsServiceEventRoom_sayhi_pop_find_click = @"sayhi_pop_find_click"; ///打招呼弹窗去找TA点击-统计进房房间的id
|
||||
NSString *const StatisticsServiceEventRoom_sayhi_pop_voice_click = @"sayhi_pop_voice_click"; ///打招呼弹窗播放声音秀点击
|
||||
|
||||
#pragma mark - 主播评级
|
||||
NSString *const StatisticsServiceEventRoom_grade_profit_pop_click = @"grade_profit_pop_click"; ///主播评级入口点击
|
||||
NSString *const StatisticsServiceEventRoom_grade_profit_pop_show = @"grade_profit_pop_show"; ///主播评级入口曝光
|
||||
NSString *const StatisticsServiceEventRoom_grade_profit_close_click = @"grade_profit_close_click"; ///主播评级弹窗关闭点击
|
||||
#pragma mark - ID复制
|
||||
NSString *const StatisticsServiceEventID_mycenter_copyid_click = @"mycenter_copyid_click"; ///个人中心ID复制点击
|
||||
NSString *const StatisticsServiceEventID_mydata_copyid_click = @"mydata_copyid_click"; ///个人资料页ID复制点击
|
||||
NSString *const StatisticsServiceEventID_datacard_copyid_click = @"datacard_copyid_click"; ///房间资料卡ID复制点击
|
||||
#pragma mark - 私聊页改造
|
||||
///聊天列表长按删除聊天点击
|
||||
NSString *const StatisticsServiceEvent_chat_list_delete_click = @"chat_list_delete_click";
|
||||
///聊天列表长按置顶聊天点击
|
||||
NSString *const StatisticsServiceEvent_chat_list_top_click = @"chat_list_top_click";
|
||||
///聊天对话信息长按复制点击
|
||||
NSString *const StatisticsServiceEvent_chat_dialogue_copy_click = @"chat_dialogue_copy_click";
|
||||
///聊天对话信息长按删除点击
|
||||
NSString *const StatisticsServiceEvent_chat_dialogue_delete_click = @"chat_dialogue_delete_click";
|
||||
///聊天对话信息长按撤回点击
|
||||
NSString *const StatisticsServiceEvent_chat_dialogue_revocation_click = @"chat_dialogue_revocation_click";
|
||||
///聊天对话框工具栏直播中点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_live_click = @"chat_toolbar_live_click";
|
||||
///聊天对话框工具栏关注点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_fans_click = @"chat_toolbar_fans_click";
|
||||
///聊天对话框工具栏设置点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_set_click = @"chat_toolbar_set_click";
|
||||
///聊天对话框个人资料相册图点击
|
||||
NSString *const StatisticsServiceEvent_chat_frame_skillcard_click = @"chat_frame_skillcard_click";
|
||||
///聊天对话框个人资料头像点击
|
||||
NSString *const StatisticsServiceEvent_chat_frame_datacard_head_click = @"chat_frame_datacard_head_click";
|
||||
///聊天对话框工具栏语音点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_voice_click = @"chat_toolbar_voice_click";
|
||||
///聊天对话框工具栏输入框点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_input_click = @"chat_toolbar_input_click";
|
||||
///聊天对话框工具栏表情点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_emoticon_click = @"chat_toolbar_emoticon_click";
|
||||
///聊天对话框工具栏相册点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_photo_click = @"chat_toolbar_photo_click";
|
||||
///聊天对话框工具栏相机点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_camera_click = @"chat_toolbar_camera_click";
|
||||
///聊天对话框工具栏送礼点击
|
||||
NSString *const StatisticsServiceEvent_chat_toolbar_gift_click = @"chat_toolbar_gift_click";
|
||||
///聊天设置页用户资料点击
|
||||
NSString *const StatisticsServiceEvent_chat_set_data_click = @"chat_set_data_click";
|
||||
///聊天设置页聊天置顶点击
|
||||
NSString *const StatisticsServiceEvent_chat_set_top_click = @"chat_set_top_click";
|
||||
///聊天设置页拉黑点击
|
||||
NSString *const StatisticsServiceEvent_chat_set_blacklist_click = @"chat_set_blacklist_click";
|
||||
///聊天设置页举报点击
|
||||
NSString *const StatisticsServiceEvent_chat_set_report_click = @"chat_set_report_click";
|
||||
#pragma mark - 自动分流打招呼
|
||||
///自动打招呼入口点击
|
||||
NSString *const StatisticsServiceEvent_user_greetings_entrance_click = @"user_greetings_entrance_click";
|
||||
///自动打招呼功能开关点击 统计用户点击时的状态:开/关
|
||||
NSString *const StatisticsServiceEvent_user_greetings_switch_click = @"user_greetings_switch_click";
|
||||
///自动打招呼功能和TA聊点击 统计用户点击时聊天对象的id
|
||||
NSString *const StatisticsServiceEvent_user_greetings_chat_click = @"user_greetings_chat_click";
|
||||
/// 埋点事件
|
||||
/// @param eventKey key
|
||||
+ (void)trackEventWithKey:(NSString *)eventKey {
|
||||
[self trackEventWithKey:eventKey eventAttributes:nil];
|
||||
}
|
||||
|
||||
|
||||
/// 埋点事件带参数
|
||||
/// @param eventKey key
|
||||
/// @param eventAttributes 参数
|
||||
+ (void)trackEventWithKey:(NSString *)eventKey eventAttributes:(NSDictionary * _Nullable)eventAttributes {
|
||||
[StatisticsService trackEvent:eventKey eventDescribe:[self getTrackEventDescripWithKey:eventKey] eventAttributes:eventAttributes];
|
||||
}
|
||||
|
||||
|
||||
/// 统计时长 开始
|
||||
/// @param eventKey key
|
||||
+ (void)trackEventStartWithKey:(NSString *)eventKey {
|
||||
[StatisticsService trackEvent:eventKey eventStart:[self getTrackEventDescripWithKey:eventKey]];
|
||||
}
|
||||
|
||||
/// 统计时长 结束
|
||||
/// @param eventKey key
|
||||
+ (void)trackEventEndWithKey:(NSString *)eventKey {
|
||||
[StatisticsService trackEvent:eventKey eventEnd:[self getTrackEventDescripWithKey:eventKey]];
|
||||
}
|
||||
|
||||
///埋点 只需要在这个里面 进行相应的配置 即可 key 和descrip
|
||||
+ (NSString *)getTrackEventDescripWithKey:(NSString *)key {
|
||||
NSDictionary * dic = @{
|
||||
StatisticsServiceEventAppLaunch:YMLocalizedString(@"StatisticsServiceHelper0"),
|
||||
StatisticsServiceEventOneClickLoginSuccess:YMLocalizedString(@"StatisticsServiceHelper1"),
|
||||
StatisticsServiceEventLoginPhoneClick:YMLocalizedString(@"StatisticsServiceHelper2"),
|
||||
StatisticsServiceEventLoginQQClick:YMLocalizedString(@"StatisticsServiceHelper3"),
|
||||
StatisticsServiceEventLoginWXClick:YMLocalizedString(@"StatisticsServiceHelper4"),
|
||||
StatisticsServiceEventLoginRepariSuccess:YMLocalizedString(@"StatisticsServiceHelper5"),
|
||||
StatisticsServiceEventVipOpenClick:YMLocalizedString(@"StatisticsServiceHelper6"),
|
||||
StatisticsServiceEventvipEntranceRoomClick:YMLocalizedString(@"StatisticsServiceHelper7"),
|
||||
StatisticsServiceEventvipEntranceGiftClick:YMLocalizedString(@"StatisticsServiceHelper8"),
|
||||
StatisticsServiceEventvipEntranceFaceClick:YMLocalizedString(@"StatisticsServiceHelper9"),
|
||||
StatisticsServiceEventvipEntranceMeClick:YMLocalizedString(@"StatisticsServiceHelper10")
|
||||
};
|
||||
NSString * decription = [dic objectForKey:StatisticsServiceEventAppLaunch];
|
||||
return decription;
|
||||
}
|
||||
#endif
|
||||
@end
|
||||
Reference in New Issue
Block a user