From b9457a06810e0c3ea50aab3a7192a449ad5f7c32 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 29 May 2017 19:15:52 +0100 Subject: [PATCH] Track Notifier events so we know what % have toolbar/enabled/etc Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Notifier.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Notifier.js b/src/Notifier.js index eeedbcf365..e89947e958 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -18,6 +18,7 @@ limitations under the License. import MatrixClientPeg from './MatrixClientPeg'; import PlatformPeg from './PlatformPeg'; import TextForEvent from './TextForEvent'; +import Analytics from './Analytics'; import Avatar from './Avatar'; import dis from './dispatcher'; import sdk from './index'; @@ -121,6 +122,9 @@ const Notifier = { setEnabled: function(enable, callback) { const plaf = PlatformPeg.get(); if (!plaf) return; + + Analytics.trackEvent('Notifier', 'Set Enabled', enable); + // make sure that we persist the current setting audio_enabled setting // before changing anything if (global.localStorage) { @@ -199,6 +203,8 @@ const Notifier = { setToolbarHidden: function(hidden, persistent = true) { this.toolbarHidden = hidden; + Analytics.trackEvent('Notifier', 'Set Toolbar Hidden', hidden); + // XXX: why are we dispatching this here? // this is nothing to do with notifier_enabled dis.dispatch({