Skip to content

Commit

Permalink
chore: add gatag
Browse files Browse the repository at this point in the history
  • Loading branch information
yanskun committed Oct 21, 2023
1 parent 8c3eafd commit edc23a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit edc23a9

Please sign in to comment.