Skip to content

Commit

Permalink
feat: Add Google Tag Manager for tracking page views
Browse files Browse the repository at this point in the history
  • Loading branch information
Vette1123 committed Sep 23, 2024
1 parent b415cc8 commit 688432c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import '@/styles/globals.css'
import type { Metadata } from 'next'
import { QueryProvider } from '@/providers/query-provider'
import { ToastProvider } from '@/providers/toast-provider'
import { GoogleTagManager } from '@next/third-parties/google'
import { Analytics } from '@vercel/analytics/react'

import { siteConfig } from '@/config/site'
Expand Down Expand Up @@ -96,6 +97,7 @@ export default function RootLayout({ children, modal }: RootLayoutProps) {
<ToastProvider />
<Analytics mode="production" />
<Footer />
<GoogleTagManager gtmId={process.env.GTM_ID as string} />
{modal && modal}
</div>
</div>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"prettier:check": "prettier --check ."
},
"dependencies": {
"@next/third-parties": "^14.2.13",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-dialog": "^1.1.1",
Expand Down

0 comments on commit 688432c

Please sign in to comment.