Skip to content

Commit 3f6095b

Browse files
committed
➕ Add Analytics
1 parent fe48c8a commit 3f6095b

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

nuxt.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export default {
121121
['@nuxtjs/dotenv', { filename: `.env.${environment}` }],
122122
'nuxt-svg-loader',
123123
['nuxt-i18n', i18nConfig],
124+
['@nuxtjs/google-analytics', { id: process.env.GAID }],
124125
],
125126
/*
126127
** Axios module configuration
@@ -132,16 +133,6 @@ export default {
132133
families: ['Roboto&display=swap', 'NotoSansJP&&display=swap'],
133134
},
134135
},
135-
env: {
136-
APIKEY: process.env.APIKEY,
137-
AUTHDOMAIN: process.env.AUTHDOMAIN,
138-
DATABASEURL: process.env.DATABASEURL,
139-
PROJECTID: process.env.PROJECTID,
140-
STORAGEBUCKET: process.env.STORAGEBUCKET,
141-
MESSAGINGSENDERID: process.env.MESSAGINGSENDERID,
142-
APPID: process.env.APPID,
143-
MEASUREMENTID: process.env.MEASUREMENTID,
144-
},
145136
manifest: {
146137
name: 'おうちで時間割',
147138
short_name: 'おうちで時間割',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@nuxt/typescript-runtime": "^2.0.0",
3131
"@nuxtjs/axios": "^5.12.2",
3232
"@nuxtjs/dotenv": "^1.4.1",
33+
"@nuxtjs/google-analytics": "^2.4.0",
3334
"@nuxtjs/pwa": "^3.0.2",
3435
"@nuxtjs/style-resources": "^1.0.0",
3536
"@types/node": "^14.11.2",

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,6 +2809,13 @@
28092809
eslint-plugin-unicorn "^21.0.0"
28102810
eslint-plugin-vue "^6.2.2"
28112811

2812+
"@nuxtjs/google-analytics@^2.4.0":
2813+
version "2.4.0"
2814+
resolved "https://registry.yarnpkg.com/@nuxtjs/google-analytics/-/google-analytics-2.4.0.tgz#3bb9f398a05cc23340d1f423f8d8653dc4114f46"
2815+
integrity sha512-rDQTwHIjyjVrx8GywHPuWykJ3jRFGaHl5Iqji/y8tQWUc0yGEeHxOoR0yimzxnTS1Ph2/PubQYpgnVeEPEdL/A==
2816+
dependencies:
2817+
vue-analytics "^5.22.1"
2818+
28122819
"@nuxtjs/proxy@^2.0.1":
28132820
version "2.0.1"
28142821
resolved "https://registry.yarnpkg.com/@nuxtjs/proxy/-/proxy-2.0.1.tgz#2469b6e316311aa8c60d348502a54bfe6d5536aa"
@@ -14679,6 +14686,11 @@ vm-browserify@^1.0.1:
1467914686
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
1468014687
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
1468114688

14689+
vue-analytics@^5.22.1:
14690+
version "5.22.1"
14691+
resolved "https://registry.yarnpkg.com/vue-analytics/-/vue-analytics-5.22.1.tgz#9d6b32da56daee1b9dfb23a267b50349a03f710f"
14692+
integrity sha512-HPKQMN7gfcUqS5SxoO0VxqLRRSPkG1H1FqglsHccz6BatBatNtm/Vyy8brApktZxNCfnAkrSVDpxg3/FNDeOgQ==
14693+
1468214694
vue-class-component@^7.2.6:
1468314695
version "7.2.6"
1468414696
resolved "https://registry.yarnpkg.com/vue-class-component/-/vue-class-component-7.2.6.tgz#8471e037b8e4762f5a464686e19e5afc708502e4"

0 commit comments

Comments
 (0)