Skip to content

Latest commit

 

History

History

baidu-tongji

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@renovamen/vuepress-plugin-baidu-tongji@next

npm docs license

Plugin @renovamen/vuepress-plugin-baidu-tongji@next for adding 百度统计 to VuePress 2. It is edited from @vuepress/plugin-google-analytics.

 

Install

# 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

 

Usage

const { baiduTongjiPlugin } = require("@renovamen/vuepress-plugin-baidu-tongji");

module.exports = {
  plugins: [
    baiduTongjiPlugin({
      "id": "your-tracking-code"
    })
  ]
}

id is your tracking code offered by 百度统计.

 

License

MIT