From 1b9e3cc5084593bf003927a6df2e3b31a040283c Mon Sep 17 00:00:00 2001 From: Vitor George Date: Fri, 6 Oct 2023 13:15:59 +0100 Subject: [PATCH 1/2] Add GA to all environments --- app/assets/scripts/config/production.js | 1 + app/assets/scripts/config/staging.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/scripts/config/production.js b/app/assets/scripts/config/production.js index 3f08b97d..53054e97 100644 --- a/app/assets/scripts/config/production.js +++ b/app/assets/scripts/config/production.js @@ -14,6 +14,7 @@ module.exports = { // Manually set the authentication flow type. Default is 'USER_SRP_AUTH' authenticationFlowType: 'USER_PASSWORD_AUTH' }, + gaTrackingCode: 'UA-163103126-1', hostedAuthUi: 'https://nasa-apt-api-lambda-prod-v2.auth.us-west-2.amazoncognito.com', feedbackForm: 'https://forms.gle/JG6ykqj2mAjzke6S6' diff --git a/app/assets/scripts/config/staging.js b/app/assets/scripts/config/staging.js index 20f85ac0..76b55718 100644 --- a/app/assets/scripts/config/staging.js +++ b/app/assets/scripts/config/staging.js @@ -1,6 +1,5 @@ // module exports is required to be able to load from gulpfile. module.exports = { - gaTrackingCode: 'UA-163103126-1', apiUrl: 'https://af7f32q2kh.execute-api.us-east-1.amazonaws.com/v2', auth: { // DOCS: https://docs.amplify.aws/lib/auth/start/q/platform/js#re-use-existing-authentication-resource From 5663d6dc2a5a5efc15e87c86849c87e0a6fdce29 Mon Sep 17 00:00:00 2001 From: Vitor George Date: Tue, 17 Oct 2023 15:21:45 +0100 Subject: [PATCH 2/2] Update tracking codes --- app/assets/scripts/config/production.js | 2 +- app/assets/scripts/config/staging.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/scripts/config/production.js b/app/assets/scripts/config/production.js index 53054e97..11f6c7fc 100644 --- a/app/assets/scripts/config/production.js +++ b/app/assets/scripts/config/production.js @@ -14,7 +14,7 @@ module.exports = { // Manually set the authentication flow type. Default is 'USER_SRP_AUTH' authenticationFlowType: 'USER_PASSWORD_AUTH' }, - gaTrackingCode: 'UA-163103126-1', + gaTrackingCode: 'UA-163103126-2', hostedAuthUi: 'https://nasa-apt-api-lambda-prod-v2.auth.us-west-2.amazoncognito.com', feedbackForm: 'https://forms.gle/JG6ykqj2mAjzke6S6' diff --git a/app/assets/scripts/config/staging.js b/app/assets/scripts/config/staging.js index 0fcaf9aa..be054953 100644 --- a/app/assets/scripts/config/staging.js +++ b/app/assets/scripts/config/staging.js @@ -1,6 +1,5 @@ // module exports is required to be able to load from gulpfile. module.exports = { - gaTrackingCode: 'G-K4DQR9HTZH', apiUrl: 'https://af7f32q2kh.execute-api.us-east-1.amazonaws.com/v2', auth: { // DOCS: https://docs.amplify.aws/lib/auth/start/q/platform/js#re-use-existing-authentication-resource @@ -13,5 +12,6 @@ module.exports = { // Manually set the authentication flow type. Default is 'USER_SRP_AUTH' authenticationFlowType: 'USER_PASSWORD_AUTH' }, + gaTrackingCode: 'G-K4DQR9HTZH', hostedAuthUi: 'https://nasa-apt-api-staging.auth.us-east-1.amazoncognito.com' };