Mixpanel token should be saved on JS front

Created on 3 April 2024, 3 months ago
Updated 5 April 2024, 3 months ago

Problem/Motivation

You can't directly use the mix panel token on the front end / Client side since it is a Drupal config entity and will be available only when tracking is done on the server side.
Since Mixpanel tracking can be done in multiple ways the token should also be available for both (Client and Server Side Implementations). This would allow the user to directly use the token from js variables on the Client Side and the config entity on the Server Side.

Steps to reproduce

Proposed resolution

Simply when we enter the token in the config setting form we can add a check to store it in drupalSettings which would then be available on all pages.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

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.69.0 2024