Skip to content

Commit e93b5ff

Browse files
authored
docs: Next/analytics (#619)
* add site analytics * fix analytics
1 parent 509db29 commit e93b5ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// import "../custom.css";
2+
import { Analytics } from "@vercel/analytics/react";
23
import { SessionProvider } from "next-auth/react";
34
import type { AppProps } from "next/app";
45
import { type ReactNode } from "react";
@@ -17,6 +18,7 @@ export default function Nextra({ Component, pageProps }: NextraAppProps) {
1718
<>
1819
<SessionProvider>
1920
<Component {...pageProps} />
21+
<Analytics />
2022
</SessionProvider>
2123
</>
2224
);

0 commit comments

Comments
 (0)