diff options
Diffstat (limited to 'src/features/delayApp')
-rw-r--r-- | src/features/delayApp/Component.js | 9 | ||||
-rw-r--r-- | src/features/delayApp/index.js | 5 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/features/delayApp/Component.js b/src/features/delayApp/Component.js index 6344edb89..c61cb06c9 100644 --- a/src/features/delayApp/Component.js +++ b/src/features/delayApp/Component.js | |||
@@ -5,9 +5,6 @@ import { defineMessages, intlShape } from 'react-intl'; | |||
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet from 'react-jss'; |
6 | 6 | ||
7 | import { Button } from '@meetfranz/forms'; | 7 | import { Button } from '@meetfranz/forms'; |
8 | import { gaEvent } from '../../lib/analytics'; | ||
9 | |||
10 | // import Button from '../../components/ui/Button'; | ||
11 | 8 | ||
12 | import { config } from '.'; | 9 | import { config } from '.'; |
13 | import styles from './styles'; | 10 | import 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 c0029873a..4f793f16c 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js | |||
@@ -3,7 +3,6 @@ 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, gaPage } from '../../lib/analytics'; | ||
7 | 6 | ||
8 | const debug = require('debug')('Franz:feature:delayApp'); | 7 | const debug = require('debug')('Franz:feature:delayApp'); |
9 | 8 | ||
@@ -28,7 +27,7 @@ export default function init(stores) { | |||
28 | let shownAfterLaunch = false; | 27 | let shownAfterLaunch = false; |
29 | let timeLastDelay = moment(); | 28 | let timeLastDelay = moment(); |
30 | 29 | ||
31 | window.franz.features.delayApp = { | 30 | window.ferdi.features.delayApp = { |
32 | state, | 31 | state, |
33 | }; | 32 | }; |
34 | 33 | ||
@@ -57,8 +56,6 @@ export default function init(stores) { | |||
57 | debug(`App will be delayed for ${config.delayDuration / 1000}s`); | 56 | debug(`App will be delayed for ${config.delayDuration / 1000}s`); |
58 | 57 | ||
59 | setVisibility(true); | 58 | setVisibility(true); |
60 | gaPage('/delayApp'); | ||
61 | gaEvent('DelayApp', 'show', 'Delay App Feature'); | ||
62 | 59 | ||
63 | timeLastDelay = moment(); | 60 | timeLastDelay = moment(); |
64 | shownAfterLaunch = true; | 61 | shownAfterLaunch = true; |