Skip to content

Commit

Permalink
add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey committed Nov 2, 2022
1 parent 561d94d commit 46983f3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -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 <Component {...pageProps} />;
return (
<>
<Component {...pageProps} />
<Analytics />
</>
);
}

export default MyApp;
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

1 comment on commit 46983f3

@vercel
Copy link

@vercel vercel bot commented on 46983f3 Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.