diff --git a/package.json b/package.json index 24397fe..993dc3e 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@types/remark-prism": "^1.3.0", + "@vercel/analytics": "^0.1.3", "clsx": "^1.1.1", "date-fns": "^2.28.0", "gray-matter": "^4.0.3", diff --git a/pages/_app.tsx b/pages/_app.tsx index 2ee146a..20a6dfe 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,9 +1,15 @@ import '../styles/globals.css'; import 'prism-theme-night-owl'; +import { Analytics } from '@vercel/analytics/react'; import type { AppProps } from 'next/app'; function MyApp({ Component, pageProps }: AppProps) { - return ; + return ( + <> + + + + ); } export default MyApp; diff --git a/yarn.lock b/yarn.lock index 979e11a..882ee04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -504,6 +504,11 @@ "@typescript-eslint/types" "5.5.0" eslint-visitor-keys "^3.0.0" +"@vercel/analytics@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-0.1.3.tgz#7d0b7a35a692f16b823f2d22fdd95a955893420b" + integrity sha512-zJuEwzvi0bBmWrMrj9jvyMS+X6iUdW3m/y5P7aOLwJQKHsJyfpdINo/4Rv+wxubz3gl4nRqIQdtOFCe1P1ErXQ== + abab@^2.0.3, abab@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"