vuepress-plugin-baidu-tongji-analytics
v1.0.2
Published
baidu tongji analytics plugin for vuepress
Downloads
65
Maintainers
Readme
vuepress-plugin-baidu-tongji-analytics
适用于 vuepress 的百度统计分析插件
Install
yarn add vuepress-plugin-baidu-tongji-analytics
# OR
npm install vuepress-plugin-baidu-tongji-analytics
open npm : https://www.npmjs.com/package/vuepress-plugin-baidu-tongji-analytics
Usage
module.exports = {
plugins: [
['vuepress-plugin-baidu-tongji-analytics', {
key: 'xxxxx'
}]
]
}
Options
key: 在百度统计中心申请的 key
- Type: string
- Default: undefined
open: 是否打开统计功能
- Type: boolean
- Default: true
dev: 是否在开发模式下生效
- Type: boolean
- Default: false
想在你本地预览笔记的时候也生效统计功能,则设置为 true
FAQ
百度统计中心,检查代码安装失败?
这个原因很多种,常见的如下:
- 亲测,
**.github.io
域名会检测失败,原因应该是限制了程序的抓取
如果是部署在自己服务器上,出现这种问题,请提交 issues,我会帮你解决
- 亲测,