Skip to content

Commit

Permalink
chore(fix): gatag
Browse files Browse the repository at this point in the history
  • Loading branch information
yanskun committed Oct 21, 2023
1 parent edc23a9 commit 17ddaa1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
9 changes: 6 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@vueuse/nuxt',
'@nuxt/content',
['@nuxtjs/google-gtag', { id: 'G-8E7TW1CHNY' }],
'@nuxtjs/tailwindcss'
'@nuxtjs/tailwindcss',
'@vueuse/nuxt',
'nuxt-gtag'
],
content: {
documentDriven: true,
highlight: {
theme: 'monokai'
}
},
gtag: {
id: 'G-8E7TW1CHNY'
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"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",
Expand All @@ -20,6 +19,7 @@
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-vue": "^9.17.0",
"nuxt": "^3.7.4",
"nuxt-gtag": "^1.1.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
}
Expand Down
16 changes: 10 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
which "^3.0.1"
ws "^8.14.2"

"@nuxt/[email protected]", "@nuxt/kit@^3.5.3", "@nuxt/kit@^3.7.4":
"@nuxt/[email protected]", "@nuxt/kit@^3.5.3", "@nuxt/kit@^3.7.1", "@nuxt/kit@^3.7.4":
version "3.8.0"
resolved "https://registry.yarnpkg.com/@nuxt/kit/-/kit-3.8.0.tgz#cd8a32981c2fe151e0acde7145f7e4ca38920f24"
integrity sha512-oIthQxeMIVs4ESVP5FqLYn8tj0S1sLd+eYreh+dNYgnJ2pTi7+THR12ONBNHjk668jqEe7ErUJ8UlGwqBzgezg==
Expand Down Expand Up @@ -1079,11 +1079,6 @@
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"
Expand Down Expand Up @@ -6570,6 +6565,15 @@ nuxi@^3.9.1:
optionalDependencies:
fsevents "~2.3.3"

nuxt-gtag@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/nuxt-gtag/-/nuxt-gtag-1.1.1.tgz#2af82e4ca7907658814d44ad6ed8a49c9e5484de"
integrity sha512-AkTK++e4vFHyoc04GcRx7dQvx9xchVLav/YAP3aM6oL/ZkZtW50M0/2re4zmPWjeu36ckbpcOHJrj+zptQIMyw==
dependencies:
"@nuxt/kit" "^3.7.1"
defu "^6.1.2"
pathe "^1.1.1"

nuxt@^3.7.4:
version "3.8.0"
resolved "https://registry.yarnpkg.com/nuxt/-/nuxt-3.8.0.tgz#e7149ed7a08dea1349881262adc0bd7559783036"
Expand Down

0 comments on commit 17ddaa1

Please sign in to comment.