carlos / platform Public

analytics-agents: the Bots note says what bots are left out of (page views and visitors, not data served)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 9e23ed3099680b5cec37e6e2bbdb072f940e7340 parent 8380291
2 files changed, +2 −2
  • internal/console/analyticspages_test.go +1 −1
  • internal/console/templates/app_analytics.html +1 −1

CI cancelled — superseded by a newer push — run details

diff --git a/internal/console/analyticspages_test.go b/internal/console/analyticspages_test.go
index 268629b43..1d85b1216 100644
--- a/internal/console/analyticspages_test.go
+++ b/internal/console/analyticspages_test.go
@@ -140,7 +140,7 @@ func TestAnalyticsAgentCards(t *testing.T) {
c := newBrowser(t)
signUp(t, fx, c, "code-analytics-agents-browser")
_, _, body := get(t, c, fx.u("/apps/titogo/analytics"))
- for _, want := range []string{">Browsers</h3>", ">Devices</h3>", "Desktop", ">Bots</h3>", "Googlebot", "An unnamed crawler is a browser that read pages faster than a person does."} {
+ for _, want := range []string{">Browsers</h3>", ">Devices</h3>", "Desktop", ">Bots</h3>", "Googlebot", "They are not counted as page views or visitors."} {
if !strings.Contains(body, want) {
t.Errorf("tab missing %q", want)
}
diff --git a/internal/console/templates/app_analytics.html b/internal/console/templates/app_analytics.html
index 588c434c3..296a13cd2 100644
--- a/internal/console/templates/app_analytics.html
+++ b/internal/console/templates/app_analytics.html
@@ -90,7 +90,7 @@ When analytics is on, the edge counts HTML page views and daily visitors. No Jav
<section class="an-card" aria-labelledby="an-bots">
<h3 id="an-bots">Bots</h3>
{{template "sharelist" .Bots}}
- <p class="small">Requests from bots and crawlers, left out of every number above. An unnamed crawler is a browser that read pages faster than a person does.</p>
+ <p class="small">Requests from bots and crawlers. They are not counted as page views or visitors. An unnamed crawler is a browser that read pages faster than a person does.</p>
</section>
{{end}}
</div>{{end}}