From 04851b4baa13fe01cf2fd58efbba6cc5804dabdb Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Mon, 22 May 2017 14:40:18 -0500 Subject: [PATCH] add jitsi regional information to all analytics events via permanent properties if available ignore listing on modules/analytics/analytics.js to avoid es6 linting errors --- .jshintignore | 1 + modules/analytics/analytics.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.jshintignore b/.jshintignore index 92a5192db..a207503c0 100644 --- a/.jshintignore +++ b/.jshintignore @@ -16,6 +16,7 @@ react/ # The following are checked by ESLint with the minimum configuration which does # not supersede JSHint but take advantage of advanced language features such as # Facebook Flow which are not supported by JSHint. +modules/analytics/analytics.js modules/translation/translation.js analytics.js diff --git a/modules/analytics/analytics.js b/modules/analytics/analytics.js index e83681163..adcbbe0dc 100644 --- a/modules/analytics/analytics.js +++ b/modules/analytics/analytics.js @@ -111,7 +111,8 @@ class Analytics { handlers => { const permanentProperties = { roomName: APP.conference.roomName, - userAgent: navigator.userAgent + userAgent: navigator.userAgent, + ...window.jitsiRegionInfo }; const { group, server } = APP.store.getState()['features/jwt'];