Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vercel Analytics #532

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions screen2.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@mui/material": "^6.1.5",
"@mui/material-nextjs": "^6.1.5",
"@parcel/watcher": "^2.4.1",
"@vercel/analytics": "^1.4.1",
"@visx/visx": "^3.12.0",
"@weng-lab/genomebrowser": "^0.0.13",
"@weng-lab/psychscreen-ui-components": "^2.0.8",
Expand Down
2 changes: 2 additions & 0 deletions screen2.0/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ResponsiveAppBar from "./header"
import { Footer } from "./footer"
import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter'
import { CssBaseline, ThemeProvider } from "@mui/material"
import { Analytics } from "@vercel/analytics/react"
import theme from "../theme"

const inter = Inter({ subsets: ["latin"] })
Expand Down Expand Up @@ -32,6 +33,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
</ThemeProvider>
</AppRouterCacheProvider>
</ApolloWrapper>
<Analytics />
</body>
</html>
)
Expand Down
31 changes: 31 additions & 0 deletions screen2.0/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2812,6 +2812,36 @@ __metadata:
languageName: node
linkType: hard

"@vercel/analytics@npm:^1.4.1":
version: 1.4.1
resolution: "@vercel/analytics@npm:1.4.1"
peerDependencies:
"@remix-run/react": ^2
"@sveltejs/kit": ^1 || ^2
next: ">= 13"
react: ^18 || ^19 || ^19.0.0-rc
svelte: ">= 4"
vue: ^3
vue-router: ^4
peerDependenciesMeta:
"@remix-run/react":
optional: true
"@sveltejs/kit":
optional: true
next:
optional: true
react:
optional: true
svelte:
optional: true
vue:
optional: true
vue-router:
optional: true
checksum: 10/c28e6824cccc9be7917f88d744492e03189d7b9f840430d90c016956c713bb61b94955ec0181a80177ef96c3b239fd8ebb9e9f3eb715b3bdf76b2630cb405dad
languageName: node
linkType: hard

"@visx/annotation@npm:3.12.0":
version: 3.12.0
resolution: "@visx/annotation@npm:3.12.0"
Expand Down Expand Up @@ -8286,6 +8316,7 @@ __metadata:
"@types/node": "npm:^22"
"@types/react": "npm:^18.3.1"
"@types/react-dom": "npm:^18.3.1"
"@vercel/analytics": "npm:^1.4.1"
"@visx/visx": "npm:^3.12.0"
"@weng-lab/genomebrowser": "npm:^0.0.13"
"@weng-lab/psychscreen-ui-components": "npm:^2.0.8"
Expand Down
Loading