diff options
author | vantezzen <properly@protonmail.com> | 2019-08-21 09:39:39 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-21 09:39:39 +0200 |
commit | c4768a221f93d534f4d0454414cdf073af8a2356 (patch) | |
tree | 77fdf9eb3cbfa72c8fe40e45c88af61299004609 /src/stores/AppStore.js | |
parent | Update dev-app-update.yml (diff) | |
download | ferdium-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.js | 12 |
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'; | |||
17 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 17 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
18 | import { isMac } from '../environment'; | 18 | import { isMac } from '../environment'; |
19 | import locales from '../i18n/translations'; | 19 | import locales from '../i18n/translations'; |
20 | import { gaEvent, gaPage, statsEvent } from '../lib/analytics'; | ||
21 | import { onVisibilityChange } from '../helpers/visibility-helper'; | 20 | import { onVisibilityChange } from '../helpers/visibility-helper'; |
22 | import { getLocale } from '../helpers/i18n-helpers'; | 21 | import { 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() { |