abusedmedia / vuepress-plugin-plausible-analytics

VuePress plugin to add analytics from plausible.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

VuePress plugin to add analytics from plausible.io

License:MIT License


Languages

Language:JavaScript 100.0%