@vuepress/plugin-google-analytics

Google analytics plugin

Install

yarn add -D @vuepress/plugin-google-analytics
# OR npm install -D @vuepress/plugin-google-analytics

Usage

module.exports = {
  plugins: [
    [ 
      '@vuepress/google-analytics',
      {
        'ga': '' // UA-00000000-0
      }
    ]  
  ] 
}

Options

ga

  • Type: string
  • Default: undefined

Provide the Google Analytics ID to enable integration.