Skip to content

Commit

Permalink
add analytics to site
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Apr 28, 2023
1 parent 5f2f2e8 commit cc00353
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

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

6 changes: 5 additions & 1 deletion website/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Inter, Alice } from '@next/font/google'
import { Analytics } from '@vercel/analytics/react'
import React from 'react'
import clsx from 'clsx'
import './style.css'
Expand Down Expand Up @@ -27,7 +28,10 @@ export default function RootLayout({ children }: LayoutProps): JSX.Element {
return (
<html>
<head />
<body className={bodyClassName}>{children}</body>
<body className={bodyClassName}>
{children}
<Analytics />
</body>
</html>
)
}
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"@next/font": "^13.1.1",
"@react-spring/web": "^9.5.5",
"@vercel/analytics": "^1.0.0",
"clsx": "^1.2.1",
"copy-to-clipboard": "^3.3.3",
"next": "13.1.1",
Expand Down

0 comments on commit cc00353

Please sign in to comment.