Skip to content

Commit

Permalink
Update layout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-nexus committed Feb 16, 2025
1 parent b842ebc commit 38c63e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 38c63e2

Please sign in to comment.