Mixpanel integration don't update front

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

image

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')
      },
    },
  }));
...

Hello @Hugo_Langlais,

Thanks for you message and sorry for the inconvenience.

Did you try to specify some customProperties?
And you did try to restart your server, right?
Can you see any trace of mixPanel in your forestadmin-schema.json file?

Thanks.

Hi,
I tryed with custom properties, nothing change
I restarted my server of course
Mixpanel isn’t in my shema, this seems be the main reason. How can I add it ?

Thanks

Hi

In the documentation I see that the mapping parameter should be an array, but it is not in the code sample that you sent.

Can you try this?

Hi,

I used an array first and it wasn’t working so I switched without array, not working too. I just tryed again with array with no results…