Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce data tracking #1

Open
Th0rgal opened this issue Jan 28, 2024 · 0 comments
Open

Introduce data tracking #1

Th0rgal opened this issue Jan 28, 2024 · 0 comments
Labels
🍾 Priority feature A feature that is a priority

Comments

@Th0rgal
Copy link
Member

Th0rgal commented Jan 28, 2024

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.
@Th0rgal Th0rgal added the 🍾 Priority feature A feature that is a priority label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍾 Priority feature A feature that is a priority
Projects
None yet
Development

No branches or pull requests

1 participant