From edc23a96e337f47c58ccd7160862983590a5ba43 Mon Sep 17 00:00:00 2001 From: Naoya Yasuda <43776161+yanskun@users.noreply.github.com> Date: Sat, 21 Oct 2023 21:59:35 +0900 Subject: [PATCH] chore: add gatag --- nuxt.config.ts | 7 ++++++- package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 857757e..a6cac37 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,12 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ devtools: { enabled: true }, - modules: ['@vueuse/nuxt', '@nuxt/content', '@nuxtjs/tailwindcss'], + modules: [ + '@vueuse/nuxt', + '@nuxt/content', + ['@nuxtjs/google-gtag', { id: 'G-8E7TW1CHNY' }], + '@nuxtjs/tailwindcss' + ], content: { documentDriven: true, highlight: { diff --git a/package.json b/package.json index bae485a..04eeac6 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "devDependencies": { "@nuxt/content": "^2.8.5", "@nuxtjs/eslint-config-typescript": "^12.1.0", + "@nuxtjs/google-gtag": "^1.0.4", "@nuxtjs/tailwindcss": "^6.8.0", "@typescript-eslint/eslint-plugin": "^6.8.0", "@typescript-eslint/parser": "^6.8.0", diff --git a/yarn.lock b/yarn.lock index 9689c96..dc37f25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1079,6 +1079,11 @@ eslint-plugin-vue "^9.7.0" local-pkg "^0.4.2" +"@nuxtjs/google-gtag@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@nuxtjs/google-gtag/-/google-gtag-1.0.4.tgz#57562d8ec4c7694573e77edf72097da4a34b0d68" + integrity sha512-0Xgbx1uQ9pKeV2QdU9xoxJVdgH66qyGQJ0l8pzVxz5X476qvJunj6fbcjWk0gT+MEX/VOAhfT/zw0Z1z9q9oNg== + "@nuxtjs/mdc@^0.2.1": version "0.2.3" resolved "https://registry.yarnpkg.com/@nuxtjs/mdc/-/mdc-0.2.3.tgz#bc20f8d374087d859270aab8a3a5275ef399c754"