Skip to content

Commit

Permalink
feat: Add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
gorzelinski committed Oct 9, 2024
1 parent abc7af3 commit 0b56806
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from 'next'
import { cookies } from 'next/headers'
import { getCookie } from 'cookies-next'
import { WebSite, WithContext } from 'schema-dts'
import { Analytics } from '@vercel/analytics/react'
import { PageProps, Theme } from '@/types'
import { COOKIES, metadataBase } from '@/constants'
import { Locale, i18n } from '@/i18n.config'
Expand Down Expand Up @@ -115,6 +116,7 @@ export default async function RootLayout({
<Main>{children}</Main>
<Footer lang={lang} dictionary={dictionary} />
</Background>
<Analytics />
</body>
</html>
)
Expand Down
26 changes: 26 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 @@ -14,6 +14,7 @@
},
"dependencies": {
"@formatjs/intl-localematcher": "^0.5.2",
"@vercel/analytics": "^1.3.1",
"cookies-next": "^4.2.1",
"eslint-config-prettier": "^9.0.0",
"negotiator": "^0.6.3",
Expand Down

0 comments on commit 0b56806

Please sign in to comment.