Skip to content

Commit

Permalink
Add Vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bluprince13 committed May 27, 2024
1 parent 0057172 commit c923203
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@mui/material": "^5.1.0",
"@mui/styles": "^5.1.0",
"@next/mdx": "14.2.3",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.11",
"a11y-react-emoji": "1.2.0",
"comma-number": "2.1.0",
Expand Down Expand Up @@ -79,4 +80,4 @@
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
}
}
}
2 changes: 2 additions & 0 deletions src/app/AppBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import CssBaseline from '@mui/material/CssBaseline'
import theme from '@Modules/theme'
import '@Styles/globals.css'
import { SpeedInsights } from '@vercel/speed-insights/next'
import { Analytics } from "@vercel/analytics/react"

import { StateProvider } from '@Modules/store'
import { GoogleAnalytics } from '@Components/GoogleAnalytics'
Expand All @@ -28,6 +29,7 @@ export const AppBody = ({ children }: { children: React.ReactNode }) => {
return (
<>
<GoogleAnalytics />
<Analytics />
<StyledEngineProvider injectFirst>
<ThemeProvider theme={theme}>
<CssBaseline />
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,13 @@
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==

"@vercel/analytics@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.3.1.tgz#e2b1deac1b5d14fa2e4fe36186ac5054c6385ae4"
integrity sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==
dependencies:
server-only "^0.0.1"

"@vercel/speed-insights@^1.0.11":
version "1.0.11"
resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.0.11.tgz#44e436bdf19d445fd34f2e335f5bc9f44b86f9de"
Expand Down Expand Up @@ -8580,6 +8587,11 @@ serve-static@1.15.0:
parseurl "~1.3.3"
send "0.18.0"

server-only@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/server-only/-/server-only-0.0.1.tgz#0f366bb6afb618c37c9255a314535dc412cd1c9e"
integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==

set-function-length@^1.2.1:
version "1.2.2"
resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449"
Expand Down

1 comment on commit c923203

@vercel
Copy link

@vercel vercel bot commented on c923203 May 27, 2024

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.