提交了一部分统计的内容
This commit is contained in:
@@ -13,6 +13,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@interface StatisticsServiceHelper : NSObject
|
@interface StatisticsServiceHelper : NSObject
|
||||||
|
|
||||||
UIKIT_EXTERN NSString *const StatisticsServiceEventAppLaunch;
|
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;///注册个人资料保存成功
|
||||||
|
|
||||||
/// 埋点事件
|
/// 埋点事件
|
||||||
/// @param eventKey key
|
/// @param eventKey key
|
||||||
|
@@ -11,6 +11,12 @@
|
|||||||
@implementation StatisticsServiceHelper
|
@implementation StatisticsServiceHelper
|
||||||
|
|
||||||
NSString *const StatisticsServiceEventAppLaunch = @"app_launch";
|
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";///注册个人资料保存成功
|
||||||
|
|
||||||
/// 埋点事件
|
/// 埋点事件
|
||||||
/// @param eventKey key
|
/// @param eventKey key
|
||||||
@@ -43,6 +49,12 @@ NSString *const StatisticsServiceEventAppLaunch = @"app_launch";
|
|||||||
+ (NSString *)getTrackEventDescripWithKey:(NSString *)key {
|
+ (NSString *)getTrackEventDescripWithKey:(NSString *)key {
|
||||||
NSDictionary * dic = @{
|
NSDictionary * dic = @{
|
||||||
StatisticsServiceEventAppLaunch:@"应用启动",
|
StatisticsServiceEventAppLaunch:@"应用启动",
|
||||||
|
StatisticsServiceEventOneClickLoginSuccess:@"一键登录成功",
|
||||||
|
StatisticsServiceEventLoginPhoneClick:@"手机登录",
|
||||||
|
StatisticsServiceEventLoginQQClick:@"qq登录",
|
||||||
|
StatisticsServiceEventLoginWXClick:@"微信登录",
|
||||||
|
StatisticsServiceEventLoginRepariSuccess:@"注册时候的个人资料保存成功"
|
||||||
|
|
||||||
};
|
};
|
||||||
NSString * decription = [dic objectForKey:StatisticsServiceEventAppLaunch];
|
NSString * decription = [dic objectForKey:StatisticsServiceEventAppLaunch];
|
||||||
return decription;
|
return decription;
|
||||||
|
@@ -39,7 +39,7 @@
|
|||||||
SSDKPlatformType platformType;
|
SSDKPlatformType platformType;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ThirdLoginType_QQ:
|
case ThirdLoginType_QQ:
|
||||||
platformType = SSDKPlatformTypeQQ;
|
platformType = SSDKPlatformTypeQQ;
|
||||||
break;
|
break;
|
||||||
case ThirdLoginType_WeChat:
|
case ThirdLoginType_WeChat:
|
||||||
platformType = SSDKPlatformTypeWechat;
|
platformType = SSDKPlatformTypeWechat;
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
#import "ThemeColor.h"
|
#import "ThemeColor.h"
|
||||||
#import "UIImage+Utils.h"
|
#import "UIImage+Utils.h"
|
||||||
#import "UIButton+EnlargeTouchArea.h"
|
#import "UIButton+EnlargeTouchArea.h"
|
||||||
|
#import "StatisticsServiceHelper.h"
|
||||||
///Model
|
///Model
|
||||||
#import "ThirdUserInfo.h"
|
#import "ThirdUserInfo.h"
|
||||||
///P
|
///P
|
||||||
@@ -201,6 +202,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)complementInfoSuccess {
|
- (void)complementInfoSuccess {
|
||||||
|
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginRepariSuccess];
|
||||||
UIViewController *vc = self.presentingViewController;
|
UIViewController *vc = self.presentingViewController;
|
||||||
while (vc.presentingViewController) {
|
while (vc.presentingViewController) {
|
||||||
vc = vc.presentingViewController;
|
vc = vc.presentingViewController;
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
#import "XPMacro.h"
|
#import "XPMacro.h"
|
||||||
#import "ThemeColor.h"
|
#import "ThemeColor.h"
|
||||||
#import "XPConstant.h"
|
#import "XPConstant.h"
|
||||||
|
#import "StatisticsServiceHelper.h"
|
||||||
///Present
|
///Present
|
||||||
#import "LoginPresenter.h"
|
#import "LoginPresenter.h"
|
||||||
#import "LoginProtocol.h"
|
#import "LoginProtocol.h"
|
||||||
@@ -219,9 +220,23 @@ typedef NS_ENUM(NSUInteger, XYLoginType) {
|
|||||||
if ([view isEqual:self.phoneButtonView]) {
|
if ([view isEqual:self.phoneButtonView]) {
|
||||||
LoginPhoneViewController *inputPhoneVC = [[LoginPhoneViewController alloc] init];
|
LoginPhoneViewController *inputPhoneVC = [[LoginPhoneViewController alloc] init];
|
||||||
[self.navigationController pushViewController:inputPhoneVC animated:YES];
|
[self.navigationController pushViewController:inputPhoneVC animated:YES];
|
||||||
|
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginPhoneClick];
|
||||||
} else{
|
} else{
|
||||||
ThirdLoginType type = view.tag - 1000;
|
ThirdLoginType type = view.tag - 1000;
|
||||||
[self.presenter thirdLoginWithType:type];
|
[self.presenter thirdLoginWithType:type];
|
||||||
|
///埋点
|
||||||
|
switch (type) {
|
||||||
|
case ThirdLoginType_QQ:
|
||||||
|
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginQQClick];
|
||||||
|
break;
|
||||||
|
case ThirdLoginType_WeChat:
|
||||||
|
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginWXClick];
|
||||||
|
break;
|
||||||
|
case ThirdLoginType_Apple:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
[UIView animateWithDuration:0.5 animations:^{
|
[UIView animateWithDuration:0.5 animations:^{
|
||||||
@@ -283,7 +298,7 @@ typedef NS_ENUM(NSUInteger, XYLoginType) {
|
|||||||
|
|
||||||
dispatch_main_sync_safe(^{
|
dispatch_main_sync_safe(^{
|
||||||
@strongify(self)
|
@strongify(self)
|
||||||
// [TTStatisticsService trackEvent:@"one_click_login_succeed" eventDescribe:@"一键登录成功"];
|
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventOneClickLoginSuccess];
|
||||||
// // 取号成功,获取acessToken
|
// // 取号成功,获取acessToken
|
||||||
[self hideHUD];
|
[self hideHUD];
|
||||||
[self dismissViewControllerAnimated:YES completion:nil];
|
[self dismissViewControllerAnimated:YES completion:nil];
|
||||||
|
Reference in New Issue
Block a user