From 38c63e20356d7f311026af5ea73a4c616ffc300e Mon Sep 17 00:00:00 2001 From: vivek-nexus Date: Sun, 16 Feb 2025 09:34:52 +0530 Subject: [PATCH] Update layout.tsx --- src/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index bdc0365..ecf7013 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -50,7 +50,7 @@ export default function RootLayout({ } const body = document.querySelector('body') - if (body) { + if (body && !shouldCaptureAnalytics()) { // Create an Intersection Observer to detect when the body is in view const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => {