From 66f3ce2cb290608259e82ab3499eb6dbaa2e052d Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Tue, 12 Sep 2017 19:43:59 +0900 Subject: [PATCH 1/2] add MAIN_FOCUSED event --- browser/main/lib/AwsMobileAnalyticsConfig.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/main/lib/AwsMobileAnalyticsConfig.js b/browser/main/lib/AwsMobileAnalyticsConfig.js index fad7ab9f..6e6cefed 100644 --- a/browser/main/lib/AwsMobileAnalyticsConfig.js +++ b/browser/main/lib/AwsMobileAnalyticsConfig.js @@ -18,9 +18,10 @@ function initAwsMobileAnalytics () { AWS.config.credentials.get((err) => { if (!err) { console.log('Cognito Identity ID: ' + AWS.config.credentials.identityId) + recordDynamicCustomEvent('MAIN_FOCUSED') + recordStaticCustomEvent() } }) - recordStaticCustomEvent() } function recordDynamicCustomEvent (type) { From a62faa471c7c4ef3e7a1f47321d1d46d414f4a09 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Fri, 15 Sep 2017 00:23:31 +0900 Subject: [PATCH 2/2] change the event name for app start from MAIN_FOCUSED to APP_STARTED --- browser/main/lib/AwsMobileAnalyticsConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/lib/AwsMobileAnalyticsConfig.js b/browser/main/lib/AwsMobileAnalyticsConfig.js index 6e6cefed..70df7b7d 100644 --- a/browser/main/lib/AwsMobileAnalyticsConfig.js +++ b/browser/main/lib/AwsMobileAnalyticsConfig.js @@ -18,7 +18,7 @@ function initAwsMobileAnalytics () { AWS.config.credentials.get((err) => { if (!err) { console.log('Cognito Identity ID: ' + AWS.config.credentials.identityId) - recordDynamicCustomEvent('MAIN_FOCUSED') + recordDynamicCustomEvent('APP_STARTED') recordStaticCustomEvent() } })