aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/delayApp/index.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-07 22:25:05 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-07 22:25:05 +0100
commit7971227445e644b536f94208f43881fcd07bcb05 (patch)
treebf6ca7b811e06f49d9fa1722c32d95e7a886f46f /src/features/delayApp/index.js
parentReplace jshashes with node crypto module (diff)
downloadferdium-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.js2
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';
3import DelayAppComponent from './Component'; 3import DelayAppComponent from './Component';
4 4
5import { DEFAULT_FEATURES_CONFIG } from '../../config'; 5import { DEFAULT_FEATURES_CONFIG } from '../../config';
6import { gaEvent } from '../../lib/analytics';
6 7
7const debug = require('debug')('Franz:feature:delayApp'); 8const 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;