diff --git a/package.json b/package.json index dec18b2a65..7d6c97c391 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dev": "yarn turbo dev" }, "devDependencies": { + "@vercel/analytics": "^0.1.8", "husky": "^8.0.3", "lint-staged": "^13.0.0", "prettier": "2.8.3", diff --git a/packages/website/src/pages/_app.tsx b/packages/website/src/pages/_app.tsx index b1c4b43dc8..c65c7b6c4e 100644 --- a/packages/website/src/pages/_app.tsx +++ b/packages/website/src/pages/_app.tsx @@ -1,5 +1,6 @@ import type { AppProps } from 'next/app' import { ThemeProvider } from 'next-themes' +import { Analytics } from '@vercel/analytics/react' import Layout from 'src/components/Layout' import 'src/utils/theme/theme.css' @@ -8,6 +9,7 @@ const App = (props: AppProps) => ( + ) diff --git a/yarn.lock b/yarn.lock index f1c7cd38d0..a7e3413102 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2520,6 +2520,15 @@ __metadata: languageName: node linkType: hard +"@vercel/analytics@npm:^0.1.8": + version: 0.1.8 + resolution: "@vercel/analytics@npm:0.1.8" + peerDependencies: + react: ^16.8||^17||^18 + checksum: e837f66494372d557e32383e7ab7192a40da242a16d4f650f61b6e0c5ea282b2a37120ec125d3c5d5e3228c3d1957f48c93d299b4b466169e9d7a853a8014c3a + languageName: node + linkType: hard + "abab@npm:^2.0.6": version: 2.0.6 resolution: "abab@npm:2.0.6" @@ -4811,6 +4820,7 @@ __metadata: version: 0.0.0-use.local resolution: "gitmoji@workspace:." dependencies: + "@vercel/analytics": ^0.1.8 husky: ^8.0.3 lint-staged: ^13.0.0 prettier: 2.8.3