diff --git a/src/components/analytics.tsx b/src/components/analytics.tsx new file mode 100644 index 0000000..47cfd61 --- /dev/null +++ b/src/components/analytics.tsx @@ -0,0 +1,15 @@ +"use client"; +import { useRouter_UNSTABLE } from "waku"; + +export const Analytics = () => { + const router = useRouter_UNSTABLE(); + console.log(router.path); + return ( + + ); +}; diff --git a/src/page-components/layout.tsx b/src/page-components/layout.tsx index 4656198..f39968f 100644 --- a/src/page-components/layout.tsx +++ b/src/page-components/layout.tsx @@ -4,6 +4,7 @@ import type { ReactNode } from "react"; import { Header } from "../components/header"; import { Footer } from "../components/footer"; +import { Analytics } from "../components/analytics"; type RootLayoutProps = { children: ReactNode }; @@ -19,6 +20,7 @@ export async function RootLayout({ children }: RootLayoutProps) { {children}