Skip to content

Commit

Permalink
chore(analytics): add Next analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarchen committed Jun 24, 2024
1 parent 58aa970 commit 74de480
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {
"@headlessui/react": "^2.0.4",
"@vercel/analytics": "^1.3.1",
"aos": "^2.3.4",
"clsx": "^2.1.1",
"framer-motion": "^4.1.17",
Expand Down
26 changes: 26 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 src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FC, PropsWithChildren } from 'react'
import { Metadata } from 'next'

import { WEBSITE_URL } from '@/constants/globals'
import { Analytics } from "@vercel/analytics/react"

import './globals.css'
import 'aos/dist/aos.css'
Expand Down Expand Up @@ -52,7 +53,10 @@ const RootLayout: FC<Props> = ({ children }) => {
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"
/>
</head>
<body>{children}</body>
<body>
{children}
<Analytics />
</body>
</html>
)
}
Expand Down

0 comments on commit 74de480

Please sign in to comment.