feat: add bot traffic filtering and engaged sessions metric#3073
Open
MillenniumFalconMechanic wants to merge 2 commits into
Open
feat: add bot traffic filtering and engaged sessions metric#3073MillenniumFalconMechanic wants to merge 2 commits into
MillenniumFalconMechanic wants to merge 2 commits into
Conversation
Update analytics library to main (bot-filtering merged). Regenerate site with suspicious page path filtering and engaged sessions replacing total sessions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the static analytics site output to reduce bot noise and align displayed session metrics with GA4 “engaged sessions”, along with bumping the analytics generator dependency to the merged upstream library.
Changes:
- Switch the “sessions” stat card to display “Engaged Sessions” using GA4’s
engagedSessions(with fallback tosessions). - Regenerate static analytics JSON outputs with suspicious/bot-like page paths removed from top pages.
- Update analytics generator dependency to use
DataBiosphere/data-browsermain.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| analytics/site/index.html | Updates stat cards, table rendering behavior, and event detail table structure. |
| analytics/site/data/pageviews.json | Regenerated top pages data with bot/suspicious paths removed. |
| analytics/site/data/meta.json | Adds engaged_sessions metadata and updates generation timestamp. |
| analytics/site/data/event_charts.json | Regenerated event chart series data. |
| analytics/site/data/event_atlas_downloads_detail.json | Regenerated downloads detail data (now aggregated differently). |
| analytics/site/data/custom_events.json | Regenerated custom event summary counts. |
| analytics/requirements.txt | Updates analytics library source reference to data-browser main. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The atlas library branch (mim/3069-atlas-analytics-library) has been rebased onto data-browser main, combining bot-filtering/engaged sessions with click_url support, collapsible tables, and per-card chart titles. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Ticket
Closes #3070
Summary
main(feat: add bot traffic filtering and engaged sessions metric to static analytics data-browser#4838 merged), replacing feature branch reference/robots.txt,/),/index.html, broken markdown links,/openapi.json) from the top pages table — 7 paths / 11 pageviews filteredTest plan
python generate_static_site.pyand verify site generates successfully/robots.txt,/)) are absent from Top Pages tablecd site && python -m http.server 8080🤖 Generated with Claude Code