Skip to content

Commit 1c2b6b0

Browse files
committed
Add build module for google analytics
1 parent a0fad04 commit 1c2b6b0

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

frontend/nuxt.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export default {
5555
'@nuxtjs/axios',
5656
'@nuxtjs/eslint-module'
5757
],
58+
59+
buildModules: [
60+
['@nuxtjs/google-analytics', {
61+
id: 'UA-125643874-2'
62+
}]
63+
],
5864
/*
5965
** Axios module configuration
6066
** See https://axios.nuxtjs.org/options

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"devDependencies": {
3232
"@nuxtjs/eslint-config": "^0.0.1",
3333
"@nuxtjs/eslint-module": "^0.0.1",
34+
"@nuxtjs/google-analytics": "^2.2.1",
3435
"@vue/test-utils": "^1.0.0-beta.27",
3536
"axios-mock-adapter": "^1.17.0",
3637
"babel-core": "7.0.0-bridge.0",

frontend/yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,13 @@
11191119
dependencies:
11201120
eslint-loader "^2.1.2"
11211121

1122+
"@nuxtjs/google-analytics@^2.2.1":
1123+
version "2.2.1"
1124+
resolved "https://registry.yarnpkg.com/@nuxtjs/google-analytics/-/google-analytics-2.2.1.tgz#c5bcf486fe04168d4bb044e6f3fe317d7a3a8d50"
1125+
integrity sha512-li2Xd9G1v6+wdAiAM+G7USTrQ+/ND/fmf02cKs5IRLbKxba+RHDePKu4s5kvWyrgeczgZRaL+Tm4s24mGDYS6g==
1126+
dependencies:
1127+
vue-analytics "^5.17.2"
1128+
11221129
"@nuxtjs/proxy@^1.3.3":
11231130
version "1.3.3"
11241131
resolved "https://registry.yarnpkg.com/@nuxtjs/proxy/-/proxy-1.3.3.tgz#3de3d9f073e8e57167168100940be2a824a220e0"
@@ -9780,6 +9787,11 @@ vm-browserify@^1.0.1:
97809787
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019"
97819788
integrity sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==
97829789

9790+
vue-analytics@^5.17.2:
9791+
version "5.17.5"
9792+
resolved "https://registry.yarnpkg.com/vue-analytics/-/vue-analytics-5.17.5.tgz#4c03806755132801d4469e220cbf82353c2252db"
9793+
integrity sha512-BIrnsHy4nf82htNofSnm4B2SaWNlDDmBZsCq0YhSdWLk203qSXBD+z1RrGrE9KAH7YcbH9HE+aBCV9eXWBC02g==
9794+
97839795
vue-chartjs@^3.4.2:
97849796
version "3.4.2"
97859797
resolved "https://registry.yarnpkg.com/vue-chartjs/-/vue-chartjs-3.4.2.tgz#0323e6a99a10a68f38d426899c3994f48596fd23"

0 commit comments

Comments
 (0)