Skip to content

fix: debounce analytics search tracking to capture final query - #132

Merged
its-mash merged 2 commits into
mainfrom
fix/search-analytics-debounce
Feb 20, 2026
Merged

fix: debounce analytics search tracking to capture final query#132
its-mash merged 2 commits into
mainfrom
fix/search-analytics-debounce

Conversation

@its-mash

Copy link
Copy Markdown
Member

Summary

  • Search analytics was firing on every 300ms keystroke debounce, recording partial queries (g, gt, githu, github)
  • Split into separate debounces: 300ms for UI filtering, 1500ms for analytics tracking
  • Only the final query is sent to PostHog

Test plan

  • Type a search query in the registry — only the final term appears in PostHog, not intermediate keystrokes

The 300ms debounce meant every keystroke was tracked (g, gt, githu,
github). Use a separate 1500ms debounce for analytics so only the
final query is sent to PostHog.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
Scheduled workflow runs daily at 06:00 UTC, queries GitHub Releases
API for download counts per version/platform, and sends them to
PostHog as release_downloads events. Can also be triggered manually.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash
its-mash merged commit 0f17ddb into main Feb 20, 2026
13 checks passed
@its-mash
its-mash deleted the fix/search-analytics-debounce branch February 20, 2026 21:56
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.

1 participant