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