aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-21 09:39:39 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-21 09:39:39 +0200
commitc4768a221f93d534f4d0454414cdf073af8a2356 (patch)
tree77fdf9eb3cbfa72c8fe40e45c88af61299004609 /src/stores/AppStore.js
parentUpdate dev-app-update.yml (diff)
downloadferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.gz
ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.zst
ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.zip
Remove analytics
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 2ac306a2a..be49d2453 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -17,7 +17,6 @@ import Request from './lib/Request';
17import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; 17import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config';
18import { isMac } from '../environment'; 18import { isMac } from '../environment';
19import locales from '../i18n/translations'; 19import locales from '../i18n/translations';
20import { gaEvent, gaPage, statsEvent } from '../lib/analytics';
21import { onVisibilityChange } from '../helpers/visibility-helper'; 20import { onVisibilityChange } from '../helpers/visibility-helper';
22import { getLocale } from '../helpers/i18n-helpers'; 21import { getLocale } from '../helpers/i18n-helpers';
23 22
@@ -172,13 +171,6 @@ export default class AppStore extends Store {
172 171
173 debug('Window is visible/focused', isVisible); 172 debug('Window is visible/focused', isVisible);
174 }); 173 });
175
176 // analytics autorun
177 reaction(() => this.stores.router.location.pathname, (pathname) => {
178 gaPage(pathname);
179 });
180
181 statsEvent('app-start');
182 } 174 }
183 175
184 @computed get cacheSize() { 176 @computed get cacheSize() {
@@ -266,8 +258,6 @@ export default class AppStore extends Store {
266 } catch (err) { 258 } catch (err) {
267 console.warn(err); 259 console.warn(err);
268 } 260 }
269
270 gaEvent('App', enable ? 'enable autostart' : 'disable autostart');
271 } 261 }
272 262
273 @action _openExternalUrl({ url }) { 263 @action _openExternalUrl({ url }) {
@@ -277,8 +267,6 @@ export default class AppStore extends Store {
277 if (isValidExternalURL(url)) { 267 if (isValidExternalURL(url)) {
278 shell.openExternal(url); 268 shell.openExternal(url);
279 } 269 }
280
281 gaEvent('External URL', 'open', parsedUrl.host);
282 } 270 }
283 271
284 @action _checkForUpdates() { 272 @action _checkForUpdates() {