Open benefacto opened 9 months ago
It seems like Mixpanel is not tracking any events as this is never present in the code: mixpanel.track("An event");
Confirmed that Mixpanel is setup on the front end, just not tracking anything. Found this document that appears to delineate what it was intended to track: https://docs.google.com/document/d/1vZ0-9zLu1B1D8zaBVKySt8y-9xvg0FcP1gDhDoUjrxg/edit?usp=sharing
Updated issue description to reflect this fact
There is code that is generating events already but not working; need to dive deeper with Manank on this. Andrei may have the login. (have access now)
Andrei to provide which user actions to track; Ben to figure out how to track performance
Performance-Related Events to Implement
Homebase https://github.com/dOrgTech/homebase-app/tree/master/src/services
baseDAO-dockerized: https://github.com/dOrgTech/baseDAO-dockerized/blob/master/src/controllers/steps.ts
homebase-lite-backend: https://github.com/dOrgTech/homebase-lite-backend/tree/main/routes (all routes via Express middleware)
FYI, @EightRice , while I was digging into the code I noticed that some user events are already being tracker: https://github.com/search?q=repo%3AdOrgTech%2Fhomebase-app%20mixpanel.track&type=code You can see them here: https://mixpanel.com/project/2578633/view/3118029/app/events
the events are actually being sent to Mixpanel (for the most part).
Description: The existing integration of Mixpanel in the Homebase-App is incomplete, specifically in the area of event tracking. Although the Mixpanel package is installed, it has not been configured to track any specific events. The objective is to design and implement methods for tracking events that have been identified as important by the business, as detailed in the provided document (link).
The task involves a blend of front-end and back-end development work to ensure comprehensive and accurate tracking of user interactions and other relevant events within the homebase stack.
Tasks:
Event Identification: Review the document provided by the business to understand and list all the events that need to be tracked.
Design Event Tracking Methods: Develop a strategy for tracking these events, considering where and how they occur within the application. This step involves deciding on the triggers for event tracking and the data to be collected for each event.
Front-End Implementation: Implement the tracking mechanisms on the front end. This involves coding the necessary triggers in the user interface components where the events occur, ensuring that the right data is captured.
Back-End Integration: Set up the necessary back-end processes for event tracking. This may include configuring the server-side Mixpanel API, handling data transmission, and ensuring secure and efficient data flow from the front end to Mixpanel.
Testing and Verification: Thoroughly test the implemented tracking methods to ensure that events are being captured accurately and consistently. Verify that the data transmitted to Mixpanel is correct and usable for analytics.
Documentation and Guidelines: Update the project documentation to include details about the event tracking implementation. Create guidelines for any future modifications or additions to the tracking setup.
Expected Outcome: A fully operational event tracking system within the homebase stack, accurately capturing and transmitting data to Mixpanel for effective analytics and insights.
Additional Notes: