Skip to content

feat(analytics): Add search analytics #245

Description

@zeemscript

Description

Implement search analytics to understand what users are looking for on the platform. Track popular search queries and identify zero-result searches to improve content discovery and inform content creation decisions.

Acceptance Criteria

  • Log all search queries with timestamps
  • Identify and track zero-result searches separately
  • Provide endpoint for top search queries by frequency
  • Include filters for date ranges and result counts

Files to Create

  • src/routes/analytics/search.ts - Search analytics endpoints
  • src/services/analytics/search-analytics-service.ts - Search query tracking and aggregation
  • src/middleware/analytics/search-logger.ts - Middleware to log search events

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions