@gridsome/plugin-google-analytics

Google Analytics plugin for Gridsome

Usage no npm install needed!

<script type="module">
  import gridsomePluginGoogleAnalytics from 'https://cdn.skypack.dev/@gridsome/plugin-google-analytics';
</script>

README

@gridsome/plugin-google-analytics

Google Analytics plugin for Gridsome

See VueAnalytics for possible options.

Install

  • yarn add @gridsome/plugin-google-analytics
  • npm install @gridsome/plugin-google-analytics

Usage

Add the below config in your gridsome.config.js

module.exports = {
  plugins: [
    {
      use: '@gridsome/plugin-google-analytics',
      options: {
        id: 'UA-XXXXXXXXX-X'
      }
    }
  ]
}