Skip to content

Commit 0666b6b

Browse files
committed
Fix analytics
Signed-off-by: Finnian Anderson <[email protected]>
1 parent 051bb74 commit 0666b6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ import Meta from 'vue-meta'
77
import VueAnalytics from 'vue-analytics'
88

99
Vue.config.productionTip = false
10+
const isProd = process.env.NODE_ENV === 'production'
1011

1112
Vue.use(require('vue-moment'))
1213
Vue.use(Meta)
1314
Vue.use(VueAnalytics, {
14-
id: 'UA-73944565-5'
15+
id: 'UA-73944565-5',
16+
router,
17+
debug: {
18+
enabled: !isProd,
19+
sendHitTask: isProd
20+
}
1521
})
1622

1723
/* eslint-disable no-new */

0 commit comments

Comments
 (0)