Count invalid clicks by recorded path #58

Merged
eleith merged 1 commits from fix/attribute-invalid-link-clicks into main 2026-11-25 15:15:44 +00:00

Summary

Count invalid clicks by their stored domain and path in retained Analytics. An invalid click at /docs appears in its Link report and in reports for its current tags, even if that path was not configured at the time. Unconfigured paths get daily counts, but the report selector still only shows configured links and tags.

No database schema changes, new outcome values, or backfill. Routing, Root visits, and lifetime hit counts used for visit caps are unchanged.

Verification

97 tests passed: 41 worker, 15 database, and 41 web. Worker build and type check, scoped lint and formatting, and diff checks passed. Reviewed independently for code and test coverage. Browser E2E was not run.

Rollout

This targets fresh data. Invalid clicks processed before the change are not backfilled; their expiry can temporarily undercount a path bucket. If you ran the previous revision of this PR against a preview database, use a fresh preview database or restore a pre-preview backup: this revision drops the preview-only migration.

## Summary Count invalid clicks by their stored domain and path in retained Analytics. An invalid click at `/docs` appears in its Link report and in reports for its current tags, even if that path was not configured at the time. Unconfigured paths get daily counts, but the report selector still only shows configured links and tags. No database schema changes, new outcome values, or backfill. Routing, Root visits, and lifetime hit counts used for visit caps are unchanged. ## Verification 97 tests passed: 41 worker, 15 database, and 41 web. Worker build and type check, scoped lint and formatting, and diff checks passed. Reviewed independently for code and test coverage. Browser E2E was not run. ## Rollout This targets fresh data. Invalid clicks processed before the change are not backfilled; their expiry can temporarily undercount a path bucket. If you ran the previous revision of this PR against a preview database, use a fresh preview database or restore a pre-preview backup: this revision drops the preview-only migration.
eleith added 1 commit 2026-11-25 15:07:08 +00:00
fix(analytics): count invalid clicks by recorded path
ci/woodpecker/pr/cli Pipeline was successful
ci/woodpecker/pr/config Pipeline was successful
ci/woodpecker/pr/db Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/cli Pipeline was successful
ci/woodpecker/push/config Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
20bdc5edb1
eleith force-pushed fix/attribute-invalid-link-clicks from a1b07adb1c to 20bdc5edb1 2026-11-25 15:07:08 +00:00 Compare
eleith-gitea-agent Bot changed title from Attribute invalid clicks to matched links to Count invalid clicks by recorded path 2026-11-25 15:15:14 +00:00
eleith merged commit 20bdc5edb1 into main 2026-11-25 15:15:44 +00:00
eleith deleted branch fix/attribute-invalid-link-clicks 2026-11-25 15:15:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/goto#58