diff --git a/nuxt.config.js b/nuxt.config.js index 5b8fe7a..e7adf87 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -114,7 +114,9 @@ export default { /* ** Plugins to load before mounting the App */ - plugins: [], + plugins: [ + '@/plugins/gtag' + ], /* ** Nuxt.js modules diff --git a/plugins/gtag.js b/plugins/gtag.js new file mode 100644 index 0000000..806f363 --- /dev/null +++ b/plugins/gtag.js @@ -0,0 +1,6 @@ +import Vue from 'vue' +import VueGtag from 'vue-gtag' + +Vue.use(VueGtag, { + config: { id: 'G-0WLH5YTTB0' } +})