vuepress-plugin-baidu-google-analytics
v1.0.2
Published
Google-analytics and Baidu-tongji plugin for vuepress
Downloads
35
Maintainers
Readme
vuepress-plugin-baidu-google-analytics
Google analytics and Baidu tongji plugin for vuepress
Install
yarn add -D vuepress-plugin-baidu-google-analytics
# OR
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.