56 lines
2.2 KiB
Objective-C
56 lines
2.2 KiB
Objective-C
//
|
|
// 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;
|
|
#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 - 贵族
|
|
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;///贵族我的页面入口点击
|
|
|
|
#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分类点击
|
|
|
|
///
|
|
/// 埋点事件
|
|
/// @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
|