Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update layout component to support dynamic script namespace configuration

Bill Yang19d1c569879a
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx
index 4cba7f8de..87d9be443 100644
--- a/docs/src/app/layout.tsx
+++ b/docs/src/app/layout.tsx
@@ -76,7 +76,7 @@ export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en" suppressHydrationWarning>
<Script src="https://demo.rybbit.com/api/script.js" data-site-id="21" />
- <Script src="https://demo.rybbit.com/api/script.js" data-site-id="13b023d1a7895" data-namespace="rybbit_demo" />
+ <Script src="https://demo.rybbit.com/api/script.js?ns=demo" data-site-id="13b023d1a7895" data-namespace="rybbit_demo" />
<body className={`flex flex-col min-h-screen ${inter.variable} font-sans`}>
<RootProvider
theme={{