Skip to content

Commit

Permalink
added vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Jan 8, 2023
1 parent 451f421 commit d3d8a56
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"start": "next start"
},
"dependencies": {
"@vercel/analytics": "^0.1.6",
"framer-motion": "^8.2.4",
"next": "latest",
"react": "18.2.0",
Expand Down
8 changes: 7 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { Analytics } from "@vercel/analytics/react";
import type { AppProps } from "next/app";
import "../styles/globals.css";

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
return (
<>
<Component {...pageProps} />
<Analytics />
</>
);
}

export default MyApp;

0 comments on commit d3d8a56

Please sign in to comment.