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
This commit is contained in:
Aaron van Meerten 2017-05-22 14:40:18 -05:00
parent 23fea490aa
commit 04851b4baa
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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'];