forked from Nutlope/turboseek
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Context
Currently, the feed displays data from the Qdrant database and reflects user history only if that data is already recorded. As clarified in recent PRs (see commits 47c03b6 and 89ec292), the feed code now reliably queries and displays from Qdrant, but does not actively track user page visits. Visit tracking and feed display logic are separate concerns.
Request
This issue proposes two major feature additions vital for high-quality user analytics and SEO:
1. Real-time visit tracking on all pages
- Goal: Whenever a user visits any page, their activity should be recorded and stored in Qdrant's
user_historycollection. - Implementation Steps:
- Add a client-side tracking hook/component that triggers on every page navigation (e.g. using Next.js router events).
- Expose an API endpoint to receive and persist each page visit into Qdrant
user_history. - Ensure that user/session identification is robust, including for guest users.
- Integrate the tracking logic tightly with Next.js routing so that visit recording occurs for every meaningful navigation.
- Notes:
- This should be layered to allow future expansion (custom events, anonymous telemetry, batch recording, etc).
- Feed display code is already ready to display recorded visits once data exists in Qdrant.
2. Dynamic <title> tag updates
- Goal: Ensure that page
<title>is set contextually for every route, reflecting actual content (not just static text). - Implementation Steps:
- Leverage Next.js head management API (e.g.
next/heador built-in route-level metadata). - Provide logic for dynamic title generation based on page context or URL.
- Leverage Next.js head management API (e.g.
Scope, Review, and PR Structure
- These features (tracking + SEO) are out of scope for basic feed display/query fixes and should be implemented in a dedicated PR.
- Care should be taken to respect existing feed code (see commits 47c03b6, 89ec292), which expects the data pipeline to be actively collecting visits.
Reference
- Original request derived from https://gh.io/copilot-coding-agent-docs
This implementation must:
- Track visits on all pages, for all user/session types
- Wire tracking logic into Next.js routing
- Record visit data to Qdrant's
user_historycollection via new/existing API - Update page
<title>for each route based on context/URL - Place new logic in a separate PR from feed display/query fixes
This issue supersedes simple feed fixes and initiates full data collection + SEO improvements.
Copilot
Metadata
Metadata
Assignees
Labels
No labels