StatisticsManager.h 787 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // StatisticsManager.h
  3. // Timi
  4. //
  5. // Created by 翟玉磊 on 2021/1/22.
  6. // 统计工具类
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface StatisticsManager : NSObject
  10. /// 注册友盟
  11. /// @param appkey 开发者在友盟官网申请的appkey.
  12. /// @param channel 渠道标识,可设置nil表示"App Store".
  13. + (void)UM_registeredWithAppkey:(NSString *)appkey channel:(NSString *)channel;
  14. /// 开始界面统计
  15. + (void)beginLogPageView:(NSString *)pagename;
  16. /// 结束界面统计
  17. + (void)endLogPageView:(NSString *)pagename;
  18. #pragma mark — 自定义事件统计
  19. /// 注册的事件Id
  20. + (void)event:(NSString *)eventId;
  21. /// 注册的事件Id 附带分类标签
  22. + (void)event:(NSString *)eventId label:(NSString *)label;
  23. @end
  24. NS_ASSUME_NONNULL_END