From 66f3ce2cb290608259e82ab3499eb6dbaa2e052d Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Tue, 12 Sep 2017 19:43:59 +0900 Subject: [PATCH] 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) {