Skip to content

Commit 94104fe

Browse files
Copilotmgifford
andauthored
Add analytics.usa.gov links and references to README and report pages
Agent-Logs-Url: https://github.com/mgifford/daily-dap/sessions/bf868894-66ed-4e86-a714-53ebb429e557 Co-authored-by: mgifford <[email protected]>
1 parent ca12179 commit 94104fe

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ This project provides a daily, repeatable quality signal by:
1515
- aggregating quality and impact metrics,
1616
- publishing dated static reports and trend history.
1717

18-
## DAP and related resources
18+
## Analytics program and related resources
1919

20+
The traffic data used by this project comes from the **Digital Analytics Program (DAP)**, a U.S.
21+
government service that collects website usage data across participating federal agencies.
22+
The aggregated results are publicly available at [analytics.usa.gov](https://analytics.usa.gov/).
23+
24+
- Analytics.USA.gov (public-facing traffic dashboard): https://analytics.usa.gov/
2025
- Digital Analytics Program (DAP): https://digital.gov/guides/dap/
21-
- Analytics.USA.gov overview: https://analytics.usa.gov/
2226
- DAP data endpoint configured in this repo: `src/config/prevalence.yaml`
2327
- ScanGov (accessibility scanner): https://github.com/GSA/scan-gov
2428
- Lighthouse: https://developer.chrome.com/docs/lighthouse/overview/
@@ -127,6 +131,7 @@ This project is transparent about how AI tools have been used throughout its dev
127131
| Claude (Anthropic) | claude-sonnet-4.6 | CivicActions brand alignment: updated CSS color tokens (primary red #D83933, dark blue #162E51, secondary blue #1A4480), font stack (Public Sans), footer attribution, and tests in render-pages.js and index.html |
128132
| Claude (Anthropic) | claude-sonnet-4.6 | CI/CD improvements: added dedicated CI workflow for tests on PRs, upgraded accessibility scanner to v3, removed redundant push trigger from scan-github-pages workflow, added open-issues gate to prevent alert fatigue |
129133
| Claude (Anthropic) | claude-sonnet-4.6 | Added content density (Words-per-Megabyte) feature: integrated @mozilla/readability and jsdom to extract main-content word counts, compute WpM efficiency ratio, flag low-density pages (<200 WpM), and render a Content Density section in daily reports |
134+
| Claude (Anthropic) | claude-sonnet-4.6 | Added analytics.usa.gov links and references to README.md and report pages (renderDapContextSection and dashboard "What is DAP?" section) to better surface the public-facing traffic data site alongside the Digital Analytics Program documentation |
130135
| Claude (Anthropic) | claude-sonnet-4.6 | Improved test coverage: added 119 tests across 5 new test files for previously untested modules (slow-risk, logging, axe-fpc-mapping, build-daily-report, archive-writer); exported 3 helper functions from archive-writer.js for testability |
131136
| Claude (Anthropic) | claude-sonnet-4.6 | Added axe-core WCAG 2.2 AA accessibility tests for generated HTML: new tests/unit/axe-html-accessibility.test.js checks every render function using a minimal fixture report; fixed aria-prohibited-attr violations (aria-label on role-less spans) in render-pages.js |
132137

src/publish/render-pages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ function renderDapContextSection() {
23972397
return `
23982398
<section aria-labelledby="dap-context-heading">
23992399
<h2 id="dap-context-heading">About These Reports${renderAnchorLink('dap-context-heading', 'About These Reports')}</h2>
2400-
<p>The <a href="https://digital.gov/guides/dap" target="_blank" rel="noreferrer"><strong>Digital Analytics Program (DAP)</strong></a> is a U.S. government analytics service that collects website traffic data across participating federal agencies. DAP tracks page views, visitor counts, and usage patterns for hundreds of government websites, providing transparency into how the public engages with federal digital services.</p>
2400+
<p>The <a href="https://digital.gov/guides/dap" target="_blank" rel="noreferrer"><strong>Digital Analytics Program (DAP)</strong></a> is a U.S. government analytics service that collects website traffic data across participating federal agencies. DAP tracks page views, visitor counts, and usage patterns for hundreds of government websites, providing transparency into how the public engages with federal digital services. The traffic data is publicly available at <a href="https://analytics.usa.gov/" target="_blank" rel="noreferrer">analytics.usa.gov</a>.</p>
24012401
<p>This report measures the <strong>quality and accessibility</strong> of the top 100 most-visited U.S. government URLs as reported by DAP. Each day, Lighthouse scans are run against these URLs to measure:</p>
24022402
<ul>
24032403
<li><strong>Performance</strong> - How fast pages load for users (scores 0-100, higher is better)</li>
@@ -3207,7 +3207,7 @@ export function renderDashboardPage({ latestReport, historyIndex = [], archiveUr
32073207
32083208
<section aria-labelledby="about-heading">
32093209
<h2 id="about-heading">What is DAP?${renderAnchorLink('about-heading', 'What is DAP?')}</h2>
3210-
<p>The <a href="https://digital.gov/guides/dap" target="_blank" rel="noreferrer"><strong>Digital Analytics Program (DAP)</strong></a> is a U.S. government analytics service that tracks website traffic across hundreds of participating federal agencies. It measures page views, visitor counts, and usage patterns for government websites, providing transparency into how the public engages with federal digital services.</p>
3210+
<p>The <a href="https://digital.gov/guides/dap" target="_blank" rel="noreferrer"><strong>Digital Analytics Program (DAP)</strong></a> is a U.S. government analytics service that tracks website traffic across hundreds of participating federal agencies. It measures page views, visitor counts, and usage patterns for government websites, providing transparency into how the public engages with federal digital services. The traffic data is publicly available at <a href="https://analytics.usa.gov/" target="_blank" rel="noreferrer">analytics.usa.gov</a>.</p>
32113211
<p>This dashboard uses DAP traffic data to identify the <strong>most-visited government URLs</strong> and measures their quality daily. Each scan covers:</p>
32123212
<ul>
32133213
<li><strong>Accessibility</strong> &mdash; WCAG compliance measured by Lighthouse and axe-core (0&ndash;100, higher is better)</li>

0 commit comments

Comments
 (0)