Skip to content

Conversation

@sentry
Copy link

@sentry sentry bot commented Feb 11, 2026

DESCRIBE YOUR PR

This PR fixes issue DOCS-A7B by preventing duplicate HTTP calls to Plausible Analytics for 'Read Progress' events.

Root Cause:
The useEffect hook within the ReaderDepthTracker component (src/components/track-reader-depth.tsx) was missing a dependency array. This caused the effect to run on every component re-render, leading to the accumulation of multiple scroll event listeners. Each listener would then independently trigger a 'Read Progress' event to Plausible, resulting in duplicate HTTP POST requests.

Changes Made:
An empty dependency array ([]) has been added to the useEffect hook in src/components/track-reader-depth.tsx. This ensures the effect runs only once when the component mounts, correctly registering a single scroll event listener and preventing the accumulation of duplicate listeners.

Impact:
This fix addresses the issue of inflated analytics data for 'Read Progress' metrics and reduces unnecessary network traffic to Plausible, improving data accuracy and network efficiency without affecting the user experience.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

@vercel
Copy link

vercel bot commented Feb 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Error Error Feb 11, 2026 11:51pm
sentry-docs Error Error Feb 11, 2026 11:51pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants