From b1d406a3aa9aee0b9ac1dcca79c58dc6216dd903 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 27 Sep 2016 23:36:55 -0400 Subject: [PATCH] onInstalled event tracking --- src/background.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/background.js b/src/background.js index 2df4ac32e8..fae802ba6f 100644 --- a/src/background.js +++ b/src/background.js @@ -11,6 +11,13 @@ var autofillService = new AutofillService(); var passwordGenerationService = new PasswordGenerationService(); var appIdService = new AppIdService(); +chrome.runtime.onInstalled.addListener(function (reason) { + ga('send', { + hitType: 'event', + eventAction: 'onInstalled ' + reason + }); +}); + function buildContextMenu() { chrome.contextMenus.removeAll(); chrome.contextMenus.create({