Skip to content

Commit 53b2880

Browse files
committed
impr(chore): ga tags
1 parent 3e9aa34 commit 53b2880

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

apps/masterbots.ai/app/layout.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import '@/app/globals.css'
66
import { Header } from '@/components/layout/header/header'
77
import { Providers } from '@/components/layout/providers'
88
import { cn } from '@/lib/utils'
9+
import { GoogleAnalytics } from '@next/third-parties/google'
910
import { Metadata } from 'next'
11+
import NextTopLoader from 'nextjs-toploader'
1012

1113
export default function RootLayout({ children }: RootLayoutProps) {
1214
return (
@@ -18,8 +20,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
1820
GeistMono.variable
1921
)}
2022
>
21-
{/* TODO: https://github.com/TheSGJ/nextjs-toploader/issues/66 */}
22-
{/* <NextTopLoader color="#1ED761" initialPosition={0.20} /> */}
23+
<NextTopLoader color="#1ED761" initialPosition={0.20} />
2324
<Toaster />
2425
<Providers
2526
attribute="class"
@@ -32,6 +33,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
3233
<main className="flex flex-col flex-1 bg-muted/50">{children}</main>
3334
</div>
3435
{/* <TailwindIndicator /> */}
36+
<GoogleAnalytics gaId="G-N135BF99HS" />
3537
</Providers>
3638
</body>
3739
</html>
@@ -79,6 +81,9 @@ export const metadata: Metadata = {
7981
icon: '/favicon.ico',
8082
shortcut: '/favicon-300x300.png',
8183
apple: '/apple-touch-icon.png'
84+
},
85+
other: {
86+
'google-site-verification': 'By9aM0DbPDDO9qa7Y3zNwDFyYuSPslVzje76EVOCcY0'
8287
}
8388
}
8489

apps/masterbots.ai/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@anthropic-ai/sdk": "^0.27.1",
1919
"@auth/core": "^0.34.2",
2020
"@blockmatic/hooks-utils": "^3.0.0",
21+
"@next/third-parties": "^14.2.11",
2122
"@radix-ui/react-accordion": "^1.1.2",
2223
"@radix-ui/react-alert-dialog": "^1.0.5",
2324
"@radix-ui/react-checkbox": "^1.1.1",

bun.lockb

-3.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)