やりたいこと vue.jsで構築したサービスにgoogle analyticsを簡単に入れたい 使用するライブラリ vue-gtag 実装 ライブラリのインストール import Vue from 'vue' import App from './App.vue' import router from "./router"; + import VueGtag from "vue-gtag"; + Vue.use(VueGtag, { + config: { id: "UA-xxxxx-xxx" } + }); new Vue({ router, render: h => h(App) }).$mount('#app')