plugin-baidu-tongji

Gungnir
2020-03-26
2 min

npm github license

@renovamen/vuepress-plugin-baidu-tongji 插件,用于在 VuePress 中引入百度统计。修改自 @vuepress/plugin-google-analytics

# 安装

yarn add @renovamen/vuepress-plugin-baidu-tongji
# or
npm install @renovamen/vuepress-plugin-baidu-tongji

# 配置

需要去百度统计官网上申请一个跟踪代码,然后在 .vuepress/config.js 中配置:

module.exports = {
  plugins: [
    [
      '@renovamen/vuepress-plugin-baidu-tongji', {
        'ba': 'your-tracking-code'
      }
    ]
  ]
}

# 开源协议

MIT