diff options
author | 2019-02-21 11:39:05 +0100 | |
---|---|---|
committer | 2019-02-21 11:39:05 +0100 | |
commit | 1a19c28614d174550f97f4b13056cbe57ac04aa8 (patch) | |
tree | 876bf787f3375165b0433a009fafe5f42225c4ba | |
parent | Merge branch 'master' into develop (diff) | |
download | ferdium-app-1a19c28614d174550f97f4b13056cbe57ac04aa8.tar.gz ferdium-app-1a19c28614d174550f97f4b13056cbe57ac04aa8.tar.zst ferdium-app-1a19c28614d174550f97f4b13056cbe57ac04aa8.zip |
Add pageview event
-rw-r--r-- | src/features/delayApp/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js index 28aa50eb2..48aac34b6 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js | |||
@@ -3,7 +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 | import { gaEvent, gaPage } from '../../lib/analytics'; |
7 | 7 | ||
8 | const debug = require('debug')('Franz:feature:delayApp'); | 8 | const debug = require('debug')('Franz:feature:delayApp'); |
9 | 9 | ||
@@ -50,6 +50,7 @@ export default function init(stores) { | |||
50 | debug(`App will be delayed for ${config.delayDuration / 1000}s`); | 50 | debug(`App will be delayed for ${config.delayDuration / 1000}s`); |
51 | 51 | ||
52 | setVisibility(true); | 52 | setVisibility(true); |
53 | gaPage('/delayApp'); | ||
53 | gaEvent('delayApp', 'show', 'Delay App Feature'); | 54 | gaEvent('delayApp', 'show', 'Delay App Feature'); |
54 | 55 | ||
55 | timeLastDelay = moment(); | 56 | timeLastDelay = moment(); |