Skip to content

Introduce data tracking #1

@Th0rgal

Description

@Th0rgal

To enable detailed analytics on user engagement and app usage, we need to track each query made by users. This will involve storing a document in our MongoDB database every time a query is executed.

Implementation Details

  • Data Structure: Each document stored should contain user_id and timestamp.
  • Database: MongoDB will be used to store this data (we know it and it works well).
  • Schema Example: { "user_id": "<user_id_here>", "timestamp": "<ISO_date_time_here>" }

Tasks

  1. Backend Update:

    • Modify the query handling mechanism to include a step for data logging.
    • Ensure the logging process is efficient and does not significantly impact query response times.
    • Implement a simple and effective schema to facilitate easy storage and retrieval of query data.
  2. Data Privacy Compliance:

    • Verify that this data collection process complies with our privacy policy and any relevant data protection regulations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions