Skip to content

Commit

Permalink
feat: @vercel/analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
lcandy2 committed Sep 9, 2023
1 parent 9cb3c2c commit 8b190cf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 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 @@ -13,6 +13,7 @@
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.7",
"@vercel/analytics": "^1.0.2",
"aes-js": "^3.1.2",
"axios": "^1.5.0",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js.map

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

2 changes: 2 additions & 0 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ThemeWrapper from '../components/ThemeWrapper';
import { useEffect } from 'react';
import serviceWorker from '../lib/serviceWorker';
import Gtag from '../lib/gtag'
import { Analytics } from '@vercel/analytics/react';

function MyApp({ Component, pageProps }) {
useEffect(() => {
Expand All @@ -18,6 +19,7 @@ function MyApp({ Component, pageProps }) {
<Navigation />
<Box flexGrow={1} display="flex" flexDirection="column">
<Component {...pageProps} />
<Analytics />
</Box>
<Footer />
</Box>
Expand Down

0 comments on commit 8b190cf

Please sign in to comment.