diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index d86c1c91..e5e9608a 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -7,7 +7,8 @@ export default defineNuxtConfig({ '@nuxthq/studio', '@nuxtjs/fontaine', '@nuxtjs/google-fonts', - 'nuxt-og-image' + 'nuxt-og-image', + 'nuxt-cloudflare-analytics' ], hooks: { // Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need) @@ -34,6 +35,10 @@ export default defineNuxtConfig({ routeRules: { '/api/search.json': { prerender: true }, }, + cloudflareAnalytics: { + token: '469b1f7049f14941acef0d0262a07ab3', + scriptPath: false + }, devtools: { enabled: true }, diff --git a/docs/package.json b/docs/package.json index 89174a23..8b9ad993 100644 --- a/docs/package.json +++ b/docs/package.json @@ -17,6 +17,7 @@ "@nuxtjs/fontaine": "^0.4.1", "@nuxtjs/google-fonts": "^3.1.3", "nuxt": "^3.10.2", + "nuxt-cloudflare-analytics": "^1.0.8", "nuxt-og-image": "^2.2.4" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 464b950e..bb20f151 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -126,6 +126,9 @@ importers: nuxt: specifier: ^3.10.2 version: 3.10.2(@types/node@20.11.19)(eslint@8.56.0)(rollup@3.29.4)(typescript@5.3.3)(vite@5.1.3)(vue-tsc@1.8.27) + nuxt-cloudflare-analytics: + specifier: ^1.0.8 + version: 1.0.8(rollup@3.29.4) nuxt-og-image: specifier: ^2.2.4 version: 2.2.4(@nuxt/devtools@1.0.8)(@vue/compiler-core@3.4.19)(nuxt@3.10.2)(postcss@8.4.35)(rollup@3.29.4)(vite@5.1.3)(vue@3.4.19)(webpack@5.90.3) @@ -7863,6 +7866,16 @@ packages: - supports-color dev: false + /nuxt-cloudflare-analytics@1.0.8(rollup@3.29.4): + resolution: {integrity: sha512-gUBcxHfvR06tBNDszTj/cMx8EGwtNFqICk7IBM66JIebe/VG0HgDF6AFJfqqOFG5ACk6ApdAxREHhvnmgUSudA==} + engines: {npm: '>= 4.0.0'} + dependencies: + '@nuxt/kit': 3.10.2(rollup@3.29.4) + transitivePeerDependencies: + - rollup + - supports-color + dev: false + /nuxt-component-meta@0.6.3(rollup@3.29.4): resolution: {integrity: sha512-GdqnSMC1vqabry7WSj3GWA2LZ1gBiWeS2lj943c9TjkL9SN/rABEFXVZA6RO4sOTKF1qV947UGi27PdRd7u+tA==} hasBin: true