Skip to content

Commit

Permalink
feat: setup google analytics tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TopETH committed May 8, 2024
1 parent 4b739c2 commit 53a4b42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/masterbots.ai/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { cn } from '@/lib/utils'
import { GlobalStoreProvider } from '@/hooks/use-global-store'
import { getChatbots } from '@/services/hasura'
import { Metadata } from 'next/types'
import { GoogleAnalytics } from '@next/third-parties/google'

async function getCookieData(): Promise<{ hasuraJwt; userProfile }> {
const hasuraJwt = cookies().get('hasuraJwt')?.value || ''
Expand Down Expand Up @@ -58,6 +59,9 @@ export default async function RootLayout({ children }: RootLayoutProps) {
<DynamicCmdK />
</Providers>
</GlobalStoreProvider>

<GoogleAnalytics gaId="G-78N0Z7NPQJ" />

</body>
</html>
)
Expand Down
1 change: 1 addition & 0 deletions apps/masterbots.ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"dependencies": {
"@blockmatic/hooks-utils": "^3.0.0",
"@hookform/resolvers": "^3.3.4",
"@next/third-parties": "^14.2.3",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
Expand Down

0 comments on commit 53a4b42

Please sign in to comment.