aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/delayApp
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/delayApp')
-rw-r--r--src/features/delayApp/Component.js9
-rw-r--r--src/features/delayApp/index.js7
2 files changed, 3 insertions, 13 deletions
diff --git a/src/features/delayApp/Component.js b/src/features/delayApp/Component.js
index fcc27c75c..81f89bc52 100644
--- a/src/features/delayApp/Component.js
+++ b/src/features/delayApp/Component.js
@@ -5,9 +5,6 @@ import { defineMessages, intlShape } from 'react-intl';
5import injectSheet from 'react-jss'; 5import injectSheet from 'react-jss';
6 6
7import { Button } from '@meetfranz/forms'; 7import { Button } from '@meetfranz/forms';
8import { gaEvent } from '../../lib/analytics';
9
10// import Button from '../../components/ui/Button';
11 8
12import { config } from '.'; 9import { config } from '.';
13import styles from './styles'; 10import styles from './styles';
@@ -32,7 +29,7 @@ const messages = defineMessages({
32 }, 29 },
33 text: { 30 text: {
34 id: 'feature.delayApp.text', 31 id: 'feature.delayApp.text',
35 defaultMessage: '!!!Franz will continue in {seconds} seconds.', 32 defaultMessage: '!!!Ferdi will continue in {seconds} seconds.',
36 }, 33 },
37}); 34});
38 35
@@ -78,12 +75,8 @@ export default @inject('stores', 'actions') @injectSheet(styles) @observer class
78 75
79 if (!hadSubscription) { 76 if (!hadSubscription) {
80 actions.user.activateTrial({ planId: defaultTrialPlan }); 77 actions.user.activateTrial({ planId: defaultTrialPlan });
81
82 gaEvent('DelayApp', 'subscribe_click', 'Delay App Feature');
83 } else { 78 } else {
84 actions.ui.openSettings({ path: 'user' }); 79 actions.ui.openSettings({ path: 'user' });
85
86 gaEvent('DelayApp', 'subscribe_click', 'Delay App Feature');
87 } 80 }
88 } 81 }
89 82
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js
index 5b28fb7c8..51bd887a2 100644
--- a/src/features/delayApp/index.js
+++ b/src/features/delayApp/index.js
@@ -3,10 +3,9 @@ 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, gaPage } from '../../lib/analytics';
7import { getUserWorkspacesRequest } from '../workspaces/api'; 6import { getUserWorkspacesRequest } from '../workspaces/api';
8 7
9const debug = require('debug')('Franz:feature:delayApp'); 8const debug = require('debug')('Ferdi:feature:delayApp');
10 9
11export const config = { 10export const config = {
12 delayOffset: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.delayOffset, 11 delayOffset: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.delayOffset,
@@ -29,7 +28,7 @@ export default function init(stores) {
29 let shownAfterLaunch = false; 28 let shownAfterLaunch = false;
30 let timeLastDelay = moment(); 29 let timeLastDelay = moment();
31 30
32 window.franz.features.delayApp = { 31 window.ferdi.features.delayApp = {
33 state, 32 state,
34 }; 33 };
35 34
@@ -64,8 +63,6 @@ export default function init(stores) {
64 debug(`App will be delayed for ${config.delayDuration / 1000}s`); 63 debug(`App will be delayed for ${config.delayDuration / 1000}s`);
65 64
66 setVisibility(true); 65 setVisibility(true);
67 gaPage('/delayApp');
68 gaEvent('DelayApp', 'show', 'Delay App Feature');
69 66
70 67
71 setTimeout(() => { 68 setTimeout(() => {