Plugin @renovamen/vuepress-plugin-baidu-tongji@next
for adding 百度统计 to VuePress 2. It is edited from @vuepress/plugin-google-analytics.
# pnpm
pnpm install @renovamen/vuepress-plugin-baidu-tongji@next
# yarn
yarn add @renovamen/vuepress-plugin-baidu-tongji@next
# npm
npm install @renovamen/vuepress-plugin-baidu-tongji@next
const { baiduTongjiPlugin } = require("@renovamen/vuepress-plugin-baidu-tongji");
module.exports = {
plugins: [
baiduTongjiPlugin({
"id": "your-tracking-code"
})
]
}
id
is your tracking code offered by 百度统计.