Skip to content

Commit

Permalink
add cloudflare analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanjugand committed Apr 24, 2023
1 parent 033f047 commit 0d05dc0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default defineNuxtConfig({
'@nuxtjs/i18n',
'@nuxtjs/robots',
'@vueuse/nuxt',
'@pinia/nuxt'
'@pinia/nuxt',
'nuxt-cloudflare-analytics'
],

plugins: [
Expand Down Expand Up @@ -94,6 +95,10 @@ export default defineNuxtConfig({
}
},

cloudflareAnalytics: {
token: process.env.CLOUDFLARE_ANALYTICS_TOKEN
},

googleFonts: {
families: {
Roboto: [300, 400, 500]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@nuxtjs/robots": "3.0.0",
"@pinia/nuxt": "0.4.9",
"date-fns": "2.29.3",
"nuxt-cloudflare-analytics": "1.0.8",
"v-wave": "1.5.0",
"vue-typical": "2.1.0"
}
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4555,6 +4555,13 @@ nuxi@3.4.2:
optionalDependencies:
fsevents "~2.3.2"

nuxt-cloudflare-analytics@1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/nuxt-cloudflare-analytics/-/nuxt-cloudflare-analytics-1.0.8.tgz#30e55db459d4792686eef457280194dc50922367"
integrity sha512-gUBcxHfvR06tBNDszTj/cMx8EGwtNFqICk7IBM66JIebe/VG0HgDF6AFJfqqOFG5ACk6ApdAxREHhvnmgUSudA==
dependencies:
"@nuxt/kit" "^3.0.0"

nuxt@3.4.2:
version "3.4.2"
resolved "https://registry.yarnpkg.com/nuxt/-/nuxt-3.4.2.tgz#d5238373df8132b568ddee7e5fc251e7ede1a895"
Expand Down

0 comments on commit 0d05dc0

Please sign in to comment.