Skip to content

chore: update analytics to April 2026, add HCA hostname filter#4814

Merged
MillenniumFalconMechanic merged 1 commit intomainfrom
mim/4809-april-analytics
May 7, 2026
Merged

chore: update analytics to April 2026, add HCA hostname filter#4814
MillenniumFalconMechanic merged 1 commit intomainfrom
mim/4809-april-analytics

Conversation

@MillenniumFalconMechanic
Copy link
Copy Markdown
Contributor

Ticket

Closes #4809

Summary

  • Update CURRENT_MONTH to 2026-04 in all four analytics constants files (AnVIL Explorer, AnVIL Catalog, HCA, LungMAP)
  • Add HCA_BROWSER_ONLY_FILTER to HCA static site generator to exclude HCA Data Portal events from the HCA Data Explorer dashboard
  • Regenerate all three static analytics sites and redeploy gh-pages with April 2026 data

Test plan

  • Verify all three dashboards show "April 2026" as the report month
  • Verify HCA numbers match GA4 when filtered to explore.data.humancellatlas.org
  • Verify AnVIL and LungMAP numbers are unchanged from expected values

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# CHANGE THESE VALUES TO GENERATE NEW REPORTS
# The date of the current month to report on (yyyy-mm)
CURRENT_MONTH = "2026-03"
CURRENT_MONTH = "2026-04"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated all four constants files from 2026-03 to 2026-04 for the April report period.

],
title_resolver=resolve_project_titles,
base_dimension_filter=HCA_BROWSER_ONLY_FILTER,
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added HCA_BROWSER_ONLY_FILTER (filters by hostName == explore.data.humancellatlas.org) to exclude HCA Data Portal events from the HCA Data Explorer dashboard. This filter was already defined in constants.py and used by the sheets report, but was not being passed to the static site generator.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the static GA4 analytics dashboards to report April 2026 data, and scopes HCA dashboard reporting to the HCA Data Explorer hostname to exclude HCA Data Portal traffic.

Changes:

  • Bumped CURRENT_MONTH / PARENT_FOLDER_NAME to April 2026 across analytics constants files.
  • Added a GA4 hostName base dimension filter to the HCA static site generator (explore.data.humancellatlas.org).
  • Regenerated and committed updated April 2026 static site data under gh-pages/ for AnVIL Explorer, HCA Explorer, and LungMAP.

Reviewed changes

Copilot reviewed 35 out of 39 changed files in this pull request and generated no comments.

Show a summary per file
File Description
gh-pages/lungmap/data/pageviews.json Regenerated LungMAP pageview metrics for April 2026.
gh-pages/lungmap/data/outbound_links.json Regenerated LungMAP outbound link click metrics for April 2026.
gh-pages/lungmap/data/monthly_traffic.json Added April 2026 monthly traffic row for LungMAP.
gh-pages/lungmap/data/meta.json Updated LungMAP report metadata to April 2026 bounds and totals.
gh-pages/lungmap/data/filter_selected.json Regenerated LungMAP “filter_selected” event breakdown for April 2026.
gh-pages/lungmap/data/file_downloads.json Updated LungMAP file download aggregation for April 2026.
gh-pages/lungmap/data/file_download_events.json Updated LungMAP file download event details/totals for April 2026.
gh-pages/lungmap/data/event_dataset_file_manifest_requested_detail.json Updated LungMAP dataset manifest request details for April 2026.
gh-pages/lungmap/data/event_dataset_bulk_download_requested_detail.json Updated LungMAP bulk download request details for April 2026.
gh-pages/lungmap/data/event_dataset_analyze_in_terra_requested_detail.json Updated LungMAP “analyze in Terra” request details for April 2026.
gh-pages/lungmap/data/custom_events.json Updated LungMAP custom event totals and month-over-month deltas for April 2026.
gh-pages/hca-explorer/data/monthly_traffic.json Added April 2026 monthly traffic row for HCA Explorer.
gh-pages/hca-explorer/data/meta.json Updated HCA Explorer report metadata to April 2026 bounds and totals.
gh-pages/hca-explorer/data/file_downloads.json Updated HCA Explorer file download aggregation for April 2026.
gh-pages/hca-explorer/data/file_download_events.json Updated HCA Explorer file download event details/totals for April 2026.
gh-pages/hca-explorer/data/event_dataset_file_manifest_requested_detail.json Updated HCA Explorer dataset manifest request details for April 2026.
gh-pages/hca-explorer/data/event_dataset_bulk_download_requested_detail.json Updated HCA Explorer bulk download request details for April 2026.
gh-pages/hca-explorer/data/event_dataset_analyze_in_terra_requested_detail.json Updated HCA Explorer “analyze in Terra” request details for April 2026.
gh-pages/hca-explorer/data/custom_events.json Updated HCA Explorer custom event totals and month-over-month deltas for April 2026.
gh-pages/anvil-explorer/data/outbound_links.json Updated AnVIL Explorer outbound link click metrics for April 2026.
gh-pages/anvil-explorer/data/monthly_traffic.json Added April 2026 monthly traffic row for AnVIL Explorer.
gh-pages/anvil-explorer/data/meta.json Updated AnVIL Explorer report metadata to April 2026 bounds and totals.
gh-pages/anvil-explorer/data/file_downloads.json Updated AnVIL Explorer file download aggregation for April 2026.
gh-pages/anvil-explorer/data/file_download_events.json Updated AnVIL Explorer file download event details/totals for April 2026.
gh-pages/anvil-explorer/data/event_dataset_file_manifest_requested_detail.json Updated AnVIL Explorer dataset manifest request details for April 2026.
gh-pages/anvil-explorer/data/event_dataset_bulk_download_requested_detail.json Updated AnVIL Explorer bulk download request details for April 2026.
gh-pages/anvil-explorer/data/event_dataset_analyze_in_terra_requested_detail.json Updated AnVIL Explorer “analyze in Terra” request details for April 2026.
gh-pages/anvil-explorer/data/custom_events.json Updated AnVIL Explorer custom event totals and month-over-month deltas for April 2026.
gh-pages/anvil-explorer/data/access_requests.json Updated AnVIL Explorer access request click aggregation for April 2026.
analytics/lungmap-analytics/sheets/constants.py Updated LungMAP report month/folder name constants to April 2026.
analytics/hca-explorer-sheets/generate_static_site.py Applied HCA_BROWSER_ONLY_FILTER as a base GA4 dimension filter for all HCA Explorer queries.
analytics/hca-explorer-sheets/constants.py Updated HCA Explorer report month/folder name constants to April 2026.
analytics/anvil-explorer-sheets/constants.py Updated AnVIL Explorer report month/folder name constants to April 2026.
analytics/anvil-catalog-sheets/constants.py Updated AnVIL Catalog report month/folder name constants to April 2026.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MillenniumFalconMechanic MillenniumFalconMechanic merged commit e25e581 into main May 7, 2026
7 checks passed
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.

Update static analytics sites to April 2026

3 participants