Google-analytics and Baidu-tongji plugin for vuepress
npm install vuepress-plugin-baidu-google-analytics

!npm
Google analytics and Baidu tongji plugin for vuepress
``bash`
yarn add -D vuepress-plugin-baidu-google-analyticsOR
npm install -D vuepress-plugin-baidu-google-analytics
`javascript`
module.exports = {
plugins: [
['vuepress-plugin-baidu-google-analytics', {
hm: 'abcdefghijklmnopqrstuvwxyz123456',
ga: 'abcdefghijklmnopqrstuvwxyz123456',
ignore_hash: false
}]
]
}
- Type: stringundefined
- Default:
Provide the Baidu Tongji ID to enable Baidu Tongji.
- Type: stringundefined
- Default:
Provide the Google Analytics ID to enable Google Analytics.
- Type: booleanfalse
- Default:
If enable, same page with different hash (after #`) will not be count multiple times.