Skip to content

Commit

Permalink
Enable Web Analytics in Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
omgitsjan committed Oct 5, 2023
1 parent 54873dd commit 2c4c7db
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@
"overrides": {
"cheerio": "1.0.0-rc.10"
}
},
"dependencies": {
"@vercel/analytics": "^1.0.2"
}
}
5 changes: 5 additions & 0 deletions plugins/analytics.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { inject } from '@vercel/analytics';

export default defineNuxtPlugin(() => {
inject();
});
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c4c7db

Please sign in to comment.