File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { ReactNode } from "react" ;
2
+ import { Analytics } from "@vercel/analytics/react" ;
2
3
import { baseOptions } from "@/app/layout.config" ;
3
4
import { CustomDocsLayout } from "@/components/CustomDocsLayout" ;
4
5
import { Footer } from "@/components/Footer" ;
@@ -11,6 +12,7 @@ export default function Layout({ children }: { children: ReactNode }) {
11
12
{ children }
12
13
</ CustomDocsLayout >
13
14
< Footer />
15
+ < Analytics />
14
16
</ >
15
17
) ;
16
18
}
Original file line number Diff line number Diff line change 1
1
import type { ReactNode } from "react" ;
2
+ import { Analytics } from "@vercel/analytics/react" ;
2
3
import { baseOptions } from "@/app/layout.config" ;
3
4
import { CustomDocsLayout } from "@/components/CustomDocsLayout" ;
4
5
import { Footer } from "@/components/Footer" ;
@@ -36,6 +37,7 @@ export default function Layout({ children }: { children: ReactNode }) {
36
37
{ children }
37
38
</ CustomDocsLayout >
38
39
< Footer />
40
+ < Analytics />
39
41
</ >
40
42
) ;
41
43
}
Original file line number Diff line number Diff line change 1
1
import { Banner } from "fumadocs-ui/components/banner" ;
2
2
import { RootProvider } from "fumadocs-ui/provider" ;
3
+ import { Analytics } from "@vercel/analytics/react" ;
3
4
import { Metadata } from "next" ;
4
5
import type { ReactNode } from "react" ;
5
6
@@ -29,6 +30,7 @@ export default function Layout({ children }: { children: ReactNode }) {
29
30
</ a >
30
31
</ Banner >
31
32
< RootProvider > { children as any } </ RootProvider >
33
+ < Analytics />
32
34
</ body >
33
35
</ html >
34
36
) ;
You can’t perform that action at this time.
0 commit comments