Skip to content

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

Add data-web-vitals attribute to layout components for enhanced performance tracking

Bill Yangc00f00daf23a
diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx
index 2044f5a90..6191e4221 100644
--- a/client/src/app/layout.tsx
+++ b/client/src/app/layout.tsx
@@ -46,6 +46,7 @@ export default function RootLayout({
src="https://demo.rybbit.io/api/script.js"
data-site-id="22"
strategy="afterInteractive"
+ data-web-vitals="true"
/>
</>
)}
diff --git a/docs/src/app/layout.jsx b/docs/src/app/layout.jsx
index 4da779aac..cfbdf46c3 100644
--- a/docs/src/app/layout.jsx
+++ b/docs/src/app/layout.jsx
@@ -166,6 +166,7 @@ export default async function RootLayout({ children }) {
data-site-id="21"
defer
data-enable-replay="true"
+ data-web-vitals="true"
{...(isDev && {
"data-api-key": process.env.NEXT_PUBLIC_RYBBIT_API_KEY,
})}