Skip to content

Commit

Permalink
Add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Nov 4, 2023
1 parent 8208bbf commit 843361a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
27 changes: 27 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 @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@vercel/analytics": "^1.1.1",
"emoji-picker-react": "^4.5.14",
"next": "13.5.6",
"react": "^18",
Expand Down
6 changes: 4 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Html, Head, Main, NextScript } from 'next/document'
import { Html, Head, Main, NextScript } from "next/document";
import { Analytics } from "@vercel/analytics/react";

export default function Document() {
return (
Expand All @@ -7,7 +8,8 @@ export default function Document() {
<body>
<Main />
<NextScript />
<Analytics />
</body>
</Html>
)
);
}
1 change: 1 addition & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Head from "next/head";

import { Inter } from "next/font/google";
import styles from "@/styles/Home.module.css";
import dynamic from "next/dynamic";
Expand Down

0 comments on commit 843361a

Please sign in to comment.