Skip to content

Grant Search and Filter Analytics#1239

Merged
R2ZER0 merged 1 commit intolivefrom
rg/search-and-filter-analytics
Mar 26, 2026
Merged

Grant Search and Filter Analytics#1239
R2ZER0 merged 1 commit intolivefrom
rg/search-and-filter-analytics

Conversation

@R2ZER0
Copy link
Copy Markdown
Contributor

@R2ZER0 R2ZER0 commented Mar 6, 2026

General analytics code improvements to be more explicit (in code) about what gets tracked how, and adding metadata about searches.

This PR:

  • Moves analytics-specific JavaScript to a seperate template file
  • Explitily tracks Searches on GrantNav, rather than letting Matomo (unreliably) try to infer searches vs pageviews
  • Explicitly handles tracking cookie consent
  • Tracks clicks of the Custom CSV modal
  • Enable the heartbeat timer, so we know how long users spent on various pages
  • Improves the experience for locally testing analytics

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 6, 2026

Pull Request Test Coverage Report for Build 23517065588

Details

  • 2 of 8 (25.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 72.329%

Changes Missing Coverage Covered Lines Changed/Added Lines %
grantnav/settings_dev_analytics.py 0 6 0.0%
Totals Coverage Status
Change from base Build 23483222677: -0.2%
Covered Lines: 1435
Relevant Lines: 1984

💛 - Coveralls

@R2ZER0 R2ZER0 force-pushed the rg/search-and-filter-analytics branch from 42bfd55 to 9b5e9ad Compare March 24, 2026 23:16
@R2ZER0 R2ZER0 changed the title WIP: Grant Search and Filter Analytics Grant Search and Filter Analytics Mar 24, 2026
@R2ZER0 R2ZER0 marked this pull request as ready for review March 24, 2026 23:17
This commit:
 * Moves analytics-specific JavaScri to a seperate template file
 * Explitily tracks Searches on GrantNav, rather than letting Matomo (unreliably) try to infer searches vs pageviews
 * Explicitly handles tracking cookie consent
 * Tracks clicks of the Custom CSV modal
 * Enable the heartbeat timer, so we know how long users spent on various pages
 * Improves the experience for locally testing analytics
@R2ZER0 R2ZER0 force-pushed the rg/search-and-filter-analytics branch from 9b5e9ad to c3cb6fd Compare March 24, 2026 23:24
Comment thread grantnav/frontend/templates/components/download-data.html
@R2ZER0 R2ZER0 merged commit 396fc4a into live Mar 26, 2026
6 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.

4 participants