From 286c09166819839650fc5c9ad7286086f8b466d6 Mon Sep 17 00:00:00 2001 From: deanoemcke Date: Fri, 24 Aug 2018 23:33:51 -0400 Subject: [PATCH] Small cleanups --- src/js/gsAnalytics.js | 7 ++++++- src/js/suspended.js | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/js/gsAnalytics.js b/src/js/gsAnalytics.js index ea02d6f7..5e970670 100644 --- a/src/js/gsAnalytics.js +++ b/src/js/gsAnalytics.js @@ -28,7 +28,12 @@ var gsAnalytics = (function() { dimension3: gsStorage.getOption(gsStorage.SUSPEND_TIME) + '', dimension4: gsStorage.getOption(gsStorage.NO_NAG) + '', }); - ga('send', 'pageview'); + ga('send', 'pageview', { + dimension1: chrome.runtime.getManifest().version + '', + dimension2: gsStorage.getOption(gsStorage.SCREEN_CAPTURE) + '', + dimension3: gsStorage.getOption(gsStorage.SUSPEND_TIME) + '', + dimension4: gsStorage.getOption(gsStorage.NO_NAG) + '', + }); } return { diff --git a/src/js/suspended.js b/src/js/suspended.js index cb06ec55..7eef4eca 100644 --- a/src/js/suspended.js +++ b/src/js/suspended.js @@ -358,10 +358,6 @@ }; } - function hideNag() { - chrome.extension.getBackgroundPage().gsStorage.setOption('gsNoNag', true); - } - function loadDonationPopupTemplate() { showingNag = true;