Skip to content

Commit

Permalink
feat: add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcaiana committed Dec 19, 2022
1 parent 58280a5 commit 8f1e3d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"vitest-github-actions-reporter": "^0.9.0"
},
"dependencies": {
"@vercel/analytics": "^0.1.6",
"algoliasearch": "^4.14.2",
"vue-gtag": "^2.0.1"
}
Expand Down
6 changes: 6 additions & 0 deletions plugins/vercel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { inject } from '@vercel/analytics'

export default defineNuxtPlugin((nuxtApp) => {
//@ts-ignore
nuxtApp.vueApp.use(inject())
})
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,11 @@
"@unhead/schema" "1.0.13"
hookable "^5.4.2"

"@vercel/analytics@^0.1.6":
version "0.1.6"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-0.1.6.tgz#a1ce184168d8f5ec02e35ec954d84ee68ea01f4b"
integrity sha512-zNd5pj3iDvq8IMBQHa1YRcIteiw6ZiPB8AsONHd8ieFXlNpLqhXfIYnf4WvTfZ7S1NSJ++mIM14aJnNac/VMXQ==

"@vercel/nft@^0.22.1":
version "0.22.6"
resolved "https://registry.yarnpkg.com/@vercel/nft/-/nft-0.22.6.tgz#edb30d300bb809c0945ea4c7b87e56f634885541"
Expand Down

0 comments on commit 8f1e3d9

Please sign in to comment.