diff --git a/README.md b/README.md index 9e3b25d..9ccc136 100644 --- a/README.md +++ b/README.md @@ -274,7 +274,7 @@ function TrackPageView() { if (!pathname) return; trackPageview({ - url: pathname + searchParams.toString(), + url: pathname + searchParams?.toString(), referrer: document.referrer }); }, [pathname, searchParams]); @@ -306,7 +306,7 @@ export default function RootLayout({ children }: { children: ReactNode }) { - {children} + {children} );