添加埋点

This commit is contained in:
2026-01-06 19:25:34 +08:00
parent 1096f24c57
commit c3909d63da
30 changed files with 784 additions and 39 deletions

View File

@@ -226,6 +226,11 @@
KBLOG(@"KBEmailLoginVC onTapSubmit, email=%@, pwdLen=%zd",
self.emailTextField.text,
self.passwordTextField.text.length);
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_email_submit_btn"
pageId:@"login_email"
elementId:@"submit_btn"
extra:nil
completion:nil];
NSString *email = self.emailTextField.text ? self.emailTextField.text : @"";
NSString *password = self.passwordTextField.text ? self.passwordTextField.text : @"";
KBWeakSelf;

View File

@@ -265,6 +265,12 @@
NSString *pwd = self.passwordTextField.text ?: @"";
NSString *repeat = self.repeatPasswordTextField.text ?: @"";
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_register_email_submit_btn"
pageId:@"register_email"
elementId:@"submit_btn"
extra:nil
completion:nil];
if (email.length == 0 || pwd.length == 0 || repeat.length == 0) {
[KBHUD showInfo:KBLocalized(@"Please complete all fields")];
return;

View File

@@ -113,6 +113,12 @@
- (void)onTapNext {
NSString *pwd = self.passwordTextField.text ?: @"";
NSString *repeat = self.repeatPasswordTextField.text ?: @"";
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_forgot_newpwd_next_btn"
pageId:@"forgot_password_newpwd"
elementId:@"next_btn"
extra:nil
completion:nil];
if (pwd.length == 0 || repeat.length == 0) {
[KBHUD showInfo:KBLocalized(@"Please complete all fields")];

View File

@@ -66,6 +66,11 @@
- (void)onTapNext {
NSString *email = [self.emailTextField.text ?: @"" stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_forgot_email_next_btn"
pageId:@"forgot_password_email"
elementId:@"next_btn"
extra:nil
completion:nil];
if (email.length == 0) {
[KBHUD showInfo:KBLocalized(@"Enter Email Address")];
return;

View File

@@ -76,6 +76,11 @@
- (void)onTapNext {
NSString *code = self.codeInputView.textValue ?: @"";
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_forgot_verify_next_btn"
pageId:@"forgot_password_verify"
elementId:@"next_btn"
extra:nil
completion:nil];
if (code.length == 0) {
[KBHUD showInfo:KBLocalized(@"Enter Email Verification Code")];
return;

View File

@@ -169,6 +169,11 @@
- (void)onTapAppleLogin {
KBLOG(@"onTapAppleLogin");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_apple_btn"
pageId:@"login"
elementId:@"apple_btn"
extra:nil
completion:nil];
[[KBLoginVM shared] signInWithAppleFromViewController:KB_CURRENT_NAV completion:^(BOOL success, NSError * _Nullable error) {
if (success) {
[KBHUD showInfo:KBLocalized(@"Signed in successfully")];
@@ -190,6 +195,11 @@
- (void)onTapEmailLogin {
//
KBLOG(@"onTapEmailLogin");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_email_btn"
pageId:@"login"
elementId:@"email_btn"
extra:nil
completion:nil];
KBEmailLoginVC *vc = [[KBEmailLoginVC alloc] init];
UINavigationController *nav = KB_CURRENT_NAV;
if ([nav isKindOfClass:[BaseNavigationController class]]) {
@@ -207,6 +217,11 @@
- (void)onTapSignUp {
//
KBLOG(@"onTapSignUp");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_signup_btn"
pageId:@"login"
elementId:@"signup_btn"
extra:nil
completion:nil];
KBEmailRegistVC *vc = [[KBEmailRegistVC alloc] init];
UINavigationController *nav = KB_CURRENT_NAV;
if ([nav isKindOfClass:[BaseNavigationController class]]) {
@@ -219,6 +234,11 @@
- (void)onTapForgotPassword {
//
KBLOG(@"onTapForgotPassword");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_login_forgot_btn"
pageId:@"login"
elementId:@"forgot_btn"
extra:nil
completion:nil];
KBForgetPwdVC *vc = [[KBForgetPwdVC alloc] init];
UINavigationController *nav = KB_CURRENT_NAV;
if ([nav isKindOfClass:[BaseNavigationController class]]) {

View File

@@ -89,6 +89,11 @@
- (void)onTapConfirm {
NSString *code = self.codeInputView.textValue ?: @"";
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_register_verify_confirm_btn"
pageId:@"register_verify_email"
elementId:@"confirm_btn"
extra:nil
completion:nil];
if (code.length == 0) {
[KBHUD showInfo:KBLocalized(@"Enter Email Verification Code")];
return;