Skip to content

Commit

Permalink
feat: added analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
StereoPT committed Jul 3, 2024
1 parent 56035cb commit cfa7cd7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
26 changes: 26 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 @@ -11,6 +11,7 @@
"dependencies": {
"@hookform/resolvers": "^3.6.0",
"@react-pdf/renderer": "^3.4.4",
"@vercel/analytics": "^1.3.1",
"clsx": "^2.1.1",
"jotai": "^2.8.3",
"next": "14.2.4",
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Theme } from 'react-daisyui';
import '@/styles/globals.css';

import type { AppProps } from 'next/app';
import { Analytics } from '@vercel/analytics/react';

type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
getLayout?: (page: ReactElement) => ReactNode;
Expand Down Expand Up @@ -85,6 +86,7 @@ Menu design software"
</Head>
<Theme dataTheme="emerald">
{getLayout(<Component {...pageProps} />)}
<Analytics />
</Theme>
</>
);
Expand Down

0 comments on commit cfa7cd7

Please sign in to comment.