Skip to content

Commit 6380cc6

Browse files
authored
docs: add analytics back to website (#1887)
1 parent 5d57092 commit 6380cc6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

docs/app/docs/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { ReactNode } from "react";
2+
import { Analytics } from "@vercel/analytics/react";
23
import { baseOptions } from "@/app/layout.config";
34
import { CustomDocsLayout } from "@/components/CustomDocsLayout";
45
import { Footer } from "@/components/Footer";
@@ -11,6 +12,7 @@ export default function Layout({ children }: { children: ReactNode }) {
1112
{children}
1213
</CustomDocsLayout>
1314
<Footer />
15+
<Analytics />
1416
</>
1517
);
1618
}

docs/app/examples/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { ReactNode } from "react";
2+
import { Analytics } from "@vercel/analytics/react";
23
import { baseOptions } from "@/app/layout.config";
34
import { CustomDocsLayout } from "@/components/CustomDocsLayout";
45
import { Footer } from "@/components/Footer";
@@ -36,6 +37,7 @@ export default function Layout({ children }: { children: ReactNode }) {
3637
{children}
3738
</CustomDocsLayout>
3839
<Footer />
40+
<Analytics />
3941
</>
4042
);
4143
}

docs/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Banner } from "fumadocs-ui/components/banner";
22
import { RootProvider } from "fumadocs-ui/provider";
3+
import { Analytics } from "@vercel/analytics/react";
34
import { Metadata } from "next";
45
import type { ReactNode } from "react";
56

@@ -29,6 +30,7 @@ export default function Layout({ children }: { children: ReactNode }) {
2930
</a>
3031
</Banner>
3132
<RootProvider>{children as any}</RootProvider>
33+
<Analytics />
3234
</body>
3335
</html>
3436
);

0 commit comments

Comments
 (0)