mixpanel debug option should allow logs.

Created on 8 April 2024, about 1 year ago

Problem/Motivation

We have a debug option with the settings form but right now it is of no use . Usually debug option helps a lot while developing mixpanel functions in FE as well as BE since for every small function going to mixpanel platform can be a hectic task instead we just show it somewhere on the site makes more sense.

Steps to reproduce

NONE

Proposed resolution

We can resolve this for Server side as well as Client Side
For Client Side: We can simply add the debug radio option is clicked or not that data in drupalSettings as we did for mixpanel Token.
For Server Side: For this we can create a table for logs in database and simply show the table through view in Drupal Site at a particular page.
The logs for client side will be displayed in console panel on browser and for server side it will be visible in logs .

Remaining tasks

1. Building a database table where all logs can be stored.
2. check if the debug option in settings form is true all mixpanel.track functions properties should be stored in the database logs as a BLOB.
3. clear the table after a regular interval so that the database is not full due to this.
4. this log page should be visible to admin users only.

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India Vighneshh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024