dOrgTech / homebase-app

Homebase is a web application that enables users to create and manage/use DAOs on the Tezos blockchain.
https://tezos-homebase.io/
MIT License
45 stars 12 forks source link

homebase-app: Implementation and Configuration of Event Tracking with Mixpanel #743

Open benefacto opened 9 months ago

benefacto commented 9 months ago

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:

  1. Event Identification: Review the document provided by the business to understand and list all the events that need to be tracked.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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:

benefacto commented 9 months ago

It seems like Mixpanel is not tracking any events as this is never present in the code: mixpanel.track("An event");

benefacto commented 9 months ago

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

benefacto commented 9 months ago

Updated issue description to reflect this fact

benefacto commented 8 months ago

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)

benefacto commented 8 months ago

Andrei to provide which user actions to track; Ben to figure out how to track performance

benefacto commented 8 months ago

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)

benefacto commented 8 months ago

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

EightRice commented 8 months ago

the events are actually being sent to Mixpanel (for the most part).