From dcc8c7854f43f0f0d349fa47746517915642164c Mon Sep 17 00:00:00 2001 From: Nicola Lanzilotto Date: Sat, 18 Nov 2023 11:56:34 +0100 Subject: [PATCH] Improvements and bug fixing (segment) --- src/app/auth/autologin/autologin.component.ts | 3 ++- src/app/auth/signin/signin.component.ts | 1 + src/app/auth/signup/signup.component.ts | 2 +- src/app/bots/templates/templates.component.html | 8 -------- .../cnp-templates/cnp-templates.component.html | 2 +- .../create-project-gs/create-project-gs.component.ts | 3 ++- .../install-template/install-template.component.ts | 2 +- src/app/home/home.component.html | 4 ++-- src/app/home/home.component.ts | 8 +++++++- 9 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/app/auth/autologin/autologin.component.ts b/src/app/auth/autologin/autologin.component.ts index d35481e7334b..ecf86c6ff554 100755 --- a/src/app/auth/autologin/autologin.component.ts +++ b/src/app/auth/autologin/autologin.component.ts @@ -228,7 +228,8 @@ export class AutologinComponent implements OnInit { window['analytics'].track('Signed In', { "username": userFullname, "userId": user._id, - 'method': "Sign in with Google" + 'button': 'Sign in with Google', + 'method': "Google Auth" }); } catch (err) { this.logger.error('track Sign in with Google event error', err); diff --git a/src/app/auth/signin/signin.component.ts b/src/app/auth/signin/signin.component.ts index 5bb04474216c..651d4b810f99 100755 --- a/src/app/auth/signin/signin.component.ts +++ b/src/app/auth/signin/signin.component.ts @@ -316,6 +316,7 @@ export class SigninComponent implements OnInit { window['analytics'].track('Signed In', { "username": userFullname, "userId": user._id, + 'button': 'Login', 'method': "Email and Password" }); } catch (err) { diff --git a/src/app/auth/signup/signup.component.ts b/src/app/auth/signup/signup.component.ts index 7551698a61f6..56c0a6fd251f 100755 --- a/src/app/auth/signup/signup.component.ts +++ b/src/app/auth/signup/signup.component.ts @@ -569,7 +569,7 @@ export class SignupComponent implements OnInit, AfterViewInit { window['analytics'].track("Signed Up", { "type": "organic", "utm_source": utm_source_value, - "signupButton": su, + "button": su, "first_name": signupResponse.user.firstname, "last_name": signupResponse.user.lastname, "email": signupResponse.user.email, diff --git a/src/app/bots/templates/templates.component.html b/src/app/bots/templates/templates.component.html index c2c696a71553..c2d21c40d2dc 100644 --- a/src/app/bots/templates/templates.component.html +++ b/src/app/bots/templates/templates.component.html @@ -517,14 +517,6 @@