From 586a6950b2aeb85fb7e16123d374c175f4b9d153 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 20 Apr 2017 11:04:45 -0400 Subject: [PATCH] fix(GUI): send an "elevation cancelled" analytics event (#1310) If the user cancels the elevation dialog, then no event is emitted, making it hard to track down what happened after the flash button was pressed. Signed-off-by: Juan Cruz Viotti --- lib/gui/pages/main/controllers/flash.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gui/pages/main/controllers/flash.js b/lib/gui/pages/main/controllers/flash.js index 2f02c759..5481e798 100644 --- a/lib/gui/pages/main/controllers/flash.js +++ b/lib/gui/pages/main/controllers/flash.js @@ -68,6 +68,10 @@ module.exports = function( ImageWriterService.flash(image.path, drive).then(() => { if (flashState.wasLastFlashCancelled()) { + AnalyticsService.logEvent('Elevation cancelled', { + image, + drive + }); return; }