From 1c2b6b0cf48cb2d94654e0c0007b6163df2b3a14 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 15 Nov 2019 07:10:04 +0900 Subject: [PATCH] Add build module for google analytics --- frontend/nuxt.config.js | 6 ++++++ frontend/package.json | 1 + frontend/yarn.lock | 12 ++++++++++++ 3 files changed, 19 insertions(+) diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index 70c3edd1..7eb38ec8 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -55,6 +55,12 @@ export default { '@nuxtjs/axios', '@nuxtjs/eslint-module' ], + + buildModules: [ + ['@nuxtjs/google-analytics', { + id: 'UA-125643874-2' + }] + ], /* ** Axios module configuration ** See https://axios.nuxtjs.org/options diff --git a/frontend/package.json b/frontend/package.json index 0ca76578..6e33e548 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -31,6 +31,7 @@ "devDependencies": { "@nuxtjs/eslint-config": "^0.0.1", "@nuxtjs/eslint-module": "^0.0.1", + "@nuxtjs/google-analytics": "^2.2.1", "@vue/test-utils": "^1.0.0-beta.27", "axios-mock-adapter": "^1.17.0", "babel-core": "7.0.0-bridge.0", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index d21ff28d..66e7a533 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -1119,6 +1119,13 @@ dependencies: eslint-loader "^2.1.2" +"@nuxtjs/google-analytics@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@nuxtjs/google-analytics/-/google-analytics-2.2.1.tgz#c5bcf486fe04168d4bb044e6f3fe317d7a3a8d50" + integrity sha512-li2Xd9G1v6+wdAiAM+G7USTrQ+/ND/fmf02cKs5IRLbKxba+RHDePKu4s5kvWyrgeczgZRaL+Tm4s24mGDYS6g== + dependencies: + vue-analytics "^5.17.2" + "@nuxtjs/proxy@^1.3.3": version "1.3.3" resolved "https://registry.yarnpkg.com/@nuxtjs/proxy/-/proxy-1.3.3.tgz#3de3d9f073e8e57167168100940be2a824a220e0" @@ -9780,6 +9787,11 @@ vm-browserify@^1.0.1: resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" integrity sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw== +vue-analytics@^5.17.2: + version "5.17.5" + resolved "https://registry.yarnpkg.com/vue-analytics/-/vue-analytics-5.17.5.tgz#4c03806755132801d4469e220cbf82353c2252db" + integrity sha512-BIrnsHy4nf82htNofSnm4B2SaWNlDDmBZsCq0YhSdWLk203qSXBD+z1RrGrE9KAH7YcbH9HE+aBCV9eXWBC02g== + vue-chartjs@^3.4.2: version "3.4.2" resolved "https://registry.yarnpkg.com/vue-chartjs/-/vue-chartjs-3.4.2.tgz#0323e6a99a10a68f38d426899c3994f48596fd23"