vuepress-plugin-plausible-analytics
VuePress plugin to add analytics from plausible.io
Install
Run command:
yarn add -D vuepress-plugin-plausible-analytics
Usage
Add in file .vuepress/config.js
:
module.exports = {
plugins: [
["plausible-analytics", {
domain: 'yourdomain.com'
}]
]
}
Configuration
Pass apiHost
to serve plausible.js with a custom domain:
module.exports = {
plugins: [
["plausible-analytics", {
domain: 'yourdomain.com',
apiHost: 'stats.yourdomain.com'
}]
]
}
License
MIT