facebook twitter hatena line email

Javascript/vue/vuepress/GoogleAnalytics

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

GoogleAnalytics

$ yarn add -D @vuepress/plugin-google-analytics

docs/.vuepress/config.js

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

参考:https://vuepress.vuejs.org/plugin/official/plugin-google-analytics.html#install