Feature(s) impacted
Hi,
I am trying to add Mixpanel to my Forest Admin. I have Mixpanel working and i can use Mixpanel API to get events. I followed this tutorial : Mixpanel - Developer guide but my front don’t display Mixpanel data, I only have “related data”.
Similar issue with Stripe (solved with random commands…) :Integrating stripe, nothing new to the dashboard
Observed behavior
Expected behavior
Failure Logs
I don’t have any errors in logs. MIXPANEL_API_KEY and MIXPANEL_SECRET_KEY are not null. Where can I push some console.log to see Forest request to Mixpanel ?
Here my forestadmin.js. Unique identifier in Mixpanel is the email of the user. I have a model user with the property email.
...
module.exports = async function forestadmin(app) {
app.use(await Liana.init({
configDir: path.join(__dirname, '../forest'),
envSecret: process.env.FOREST_ENV_SECRET,
authSecret: process.env.FOREST_AUTH_SECRET,
schemaDir: process.env.FOREST_SCHEMA_DIR,
objectMapping,
connections,
integrations: {
mixpanel: {
apiKey: process.env.MIXPANEL_API_KEY,
apiSecret: process.env.MIXPANEL_SECRET_KEY,
mapping: 'user.email',
mixpanel: require('mixpanel-data-export')
},
},
}));
...