add ga
This commit is contained in:
parent
65ac600b54
commit
27725ac9d7
|
@ -56,6 +56,7 @@
|
|||
"simplemde": "1.11.2",
|
||||
"sortablejs": "1.7.0",
|
||||
"vue": "2.5.17",
|
||||
"vue-analytics": "5.16.0",
|
||||
"vue-count-to": "1.0.13",
|
||||
"vue-i18n": "7.3.2",
|
||||
"vue-router": "3.0.1",
|
||||
|
|
|
@ -21,6 +21,13 @@ import './mock' // simulation data
|
|||
|
||||
import * as filters from './filters' // global filters
|
||||
|
||||
import VueAnalytics from 'vue-analytics'
|
||||
|
||||
Vue.use(VueAnalytics, {
|
||||
id: 'UA-109340118-1',
|
||||
router
|
||||
})
|
||||
|
||||
Vue.use(Element, {
|
||||
size: Cookies.get('size') || 'medium', // set element-ui default size
|
||||
i18n: (key, value) => i18n.t(key, value)
|
||||
|
|
Loading…
Reference in New Issue