1.0.0 • Published 2 years ago

zz-medvue-growingio v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

vue-growingio

vuejs growingio埋点插件

1. 安装

npm install vue-growingio --save

通过es6模块加载

import growingio from 'vue-growingio'

使用 vue-growingio 插件

Vue.use(growingio, 'YOUR_SITEID_HERE')

通过传递 options 参数进行更多设置

Vue.use(growingio, options)

范例

Vue.use(growingio, {
  siteId: 'YOUR_SITEID_HERE',
  config: {
    hashtag: true
  }
})

options

参数必添默认说明备注
siteId绑定要接受API请求的统计代码siteid
configobject若是路由模式为hash,需要加上 {hashtag: true}

2. growingio API

官方文档