diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-01-07 22:25:05 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-01-07 22:25:05 +0100 |
commit | 7971227445e644b536f94208f43881fcd07bcb05 (patch) | |
tree | bf6ca7b811e06f49d9fa1722c32d95e7a886f46f /src/features/delayApp/index.js | |
parent | Replace jshashes with node crypto module (diff) | |
download | ferdium-app-7971227445e644b536f94208f43881fcd07bcb05.tar.gz ferdium-app-7971227445e644b536f94208f43881fcd07bcb05.tar.zst ferdium-app-7971227445e644b536f94208f43881fcd07bcb05.zip |
Add analytics events for app delay
Diffstat (limited to 'src/features/delayApp/index.js')
-rw-r--r-- | src/features/delayApp/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js index d5c544b78..3412ad5d1 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js | |||
@@ -3,6 +3,7 @@ import moment from 'moment'; | |||
3 | import DelayAppComponent from './Component'; | 3 | import DelayAppComponent from './Component'; |
4 | 4 | ||
5 | import { DEFAULT_FEATURES_CONFIG } from '../../config'; | 5 | import { DEFAULT_FEATURES_CONFIG } from '../../config'; |
6 | import { gaEvent } from '../../lib/analytics'; | ||
6 | 7 | ||
7 | const debug = require('debug')('Franz:feature:delayApp'); | 8 | const debug = require('debug')('Franz:feature:delayApp'); |
8 | 9 | ||
@@ -50,6 +51,7 @@ export default function init(stores) { | |||
50 | debug(`App will be delayed for ${config.delayDuration / 1000}s`); | 51 | debug(`App will be delayed for ${config.delayDuration / 1000}s`); |
51 | 52 | ||
52 | setVisibility(true); | 53 | setVisibility(true); |
54 | gaEvent('delayApp', 'show', 'Delay App Feature'); | ||
53 | 55 | ||
54 | timeLastDelay = moment(); | 56 | timeLastDelay = moment(); |
55 | shownAfterLaunch = true; | 57 | shownAfterLaunch = true; |