From fd00a4ae0e925ddf2df92706d345d4cd69e990c2 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 13 Apr 2016 10:05:53 -0400 Subject: [PATCH] Add a Mixpanel event when the application starts (#311) Fixes: https://github.com/resin-io/etcher/issues/310 Signed-off-by: Juan Cruz Viotti --- lib/browser/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/browser/app.js b/lib/browser/app.js index f06f6841..4c3d5c9a 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -74,6 +74,10 @@ const app = angular.module('Etcher', [ 'Etcher.Utils.Dropzone' ]); +app.run(function(AnalyticsService) { + AnalyticsService.logEvent('Application start'); +}); + app.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/main');