feat: RUM Visits metric (replaces Avg Claps/Article card) - #137
Merged
Conversation
RUM can't report unique visitors (no persistent per-user identity), but it can report Visits = sessions that started from outside the site (bundles with an 'enter' checkpoint), weighted. Aggregate that per path and site-wide alongside page views. Replace the "Avg Claps / Article" stat card with a "Visits" card fed from RUM. Drop the now-unused avg/median claps computation and median helper. Card tooltip clarifies it counts sessions, not unique people. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Visits metric from RUM and swaps it into the "Avg Claps / Article" card slot, per request.
Why Visits, not unique visitors
RUM is privacy-preserving and keeps no persistent per-user identity, so true unique visitors isn't computable (the RUM Explorer doesn't offer it either). The closest honest metric is Visits = sessions: bundles with an
entercheckpoint (an arrival from outside the site), weighted — versus internal page-to-page navigation. A returning person counts as multiple visits, so it's labelled as sessions, not unique people (card tooltip says so).Changes
visitsper path and site-wide.median()helper.Verification
avgClaps/medianreferences; inline script passesnode --check.🤖 Generated with Claude Code